FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Question to TRBtn
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Question to TRBtn
Posted: Mon Dec 17, 2018 12:59 PM

These button shows no change in color or other modification if the focus is on it! Is this possible to make?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Question to TRBtn
Posted: Tue Dec 18, 2018 05:13 PM

Günther,

TRbtn objects usually don't get focus in a RibbonBar.

Are you using them somewhere else ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Question to TRBtn
Posted: Tue Dec 18, 2018 08:53 PM

Antonio, I us it as standalone-button!

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Question to TRBtn
Posted: Thu Dec 20, 2018 08:15 AM

Günther,

Please try this:

oRBtn:bGotFocus = { || MsgBeep() }

and let me know if it beeps

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Question to TRBtn
Posted: Thu Dec 20, 2018 11:53 AM

Antonio, I test with msginfo() and this are executed twice!
Another thing is, that with ENTER no evaluation of bAction proceeds. In the case of using this button outside from ribbon all functions of a normal button should possible!

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Question to TRBtn
Posted: Thu Dec 20, 2018 07:00 PM

Günther,

This class of buttons was specifically designed for RibbonBars.

Please provide a small self contained test PRG to try it, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Question to TRBtn
Posted: Sat Dec 22, 2018 06:32 PM

Antonio, i have tried to change the class for me but not good result. To much modifications are required.
Now i use TButtonBmp (expanded to use popup-menus) with skins. This is a good solution.
Thanks for your interest!

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Question to TRBtn
Posted: Sun Dec 23, 2018 05:38 PM

Hallo Günther,
Ich habe für meinen Zweck die Klasse etwas geändert.
Siehe Forumsbeitrag:

viewtopic.php?f=3t=25602hilit=TRBtn#p139741

Ich wünsche dir ein frohes Weihnachtsfest.
Wir sind intern schon am Organisieren der „2nd FWH + [x]Harbour 2019 international conference“ .
Ich hoffe, wir sehen uns dann wieder.

Mit lieben Grüßen
Otto

&&

Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Question to TRBtn
Posted: Mon Dec 24, 2018 09:48 AM

Otto, wünsche auch euch ein schönes Weihnachtsfest. Werde wieder einmal vorbeischauen! LG Günther

Regards,
Günther
---------------------------------
office@byte-one.com

Continue the discussion