Question to TRBtn

Post Reply
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Question to TRBtn

Post by byte-one »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Question to TRBtn

Post by Antonio Linares »

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
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Re: Question to TRBtn

Post by byte-one »

Antonio, I us it as standalone-button!
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Question to TRBtn

Post by Antonio Linares »

Günther,

Please try this:

oRBtn:bGotFocus = { || MsgBeep() }

and let me know if it beeps
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Re: Question to TRBtn

Post by byte-one »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Question to TRBtn

Post by Antonio Linares »

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
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Re: Question to TRBtn

Post by byte-one »

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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: Question to TRBtn

Post by Otto »

Hallo Günther,
Ich habe für meinen Zweck die Klasse etwas geändert.
Siehe Forumsbeitrag:
http://forums.fivetechsupport.com/viewt ... tn#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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Re: Question to TRBtn

Post by byte-one »

Otto, wünsche auch euch ein schönes Weihnachtsfest. Werde wieder einmal vorbeischauen! LG Günther
Regards,
Günther
---------------------------------
office@byte-one.com
Post Reply