Hello,
using a Ribbonbar, I want to keep a mark of the last used button.
How to keep a button as marked until another one is pressed ?
The borderchange-logic workes only inside a group.
Trying, to paint the border of a Button inside another group, doesn't work.
I need : scrolling a Border on Button-action inside the Ribbonbar.
The border of the last used button must stay visible.

The Border stays visible, until another Button is pressed ( works only inside a Group ! ).


@ 5, 10 ADD BUTTON oBtn3[1] GROUP oGroup3A BITMAP c_path + "\Images\Clock.Bmp" ;
SIZE 115, 55 PROMPT " &1." + CRLF + " Action" MOSTLEFT ROUND ;
LINECOLORS 0, 255 ;
ACTION ( MsgAlert( "Button 1", "Action ") )
oBtn3[1]:cToolTip = { "Define" + CRLF + "1. Button","1. Button", 1, CLR_BLACK, 14089979 }
oBtn3[1]:SetFont( oFont1 )
oBtn3[1]:SetColor( 0, )
oBtn3[1]:bGotFocus := {|| oBtn3[2]:lBorder := .F., ;
oBtn3[1]:lBorder := .T. }
@ 5, 140 ADD BUTTON oBtn3[2] GROUP oGroup3A BITMAP c_path + "\Images\Home.Bmp" ;
SIZE 115, 55 PROMPT " &2." + CRLF + " Action" MOSTLEFT ROUND ;
LINECOLORS 0, 255 ;
ACTION ( MsgAlert( "Button 2", "Action ") )
oBtn3[2]:cToolTip = { "Define" + CRLF + "2. Button","2. Button", 1, CLR_BLACK, 14089979 }
oBtn3[2]:SetFont( oFont1 )
oBtn3[2]:SetColor( 0, )
oBtn3[2]:bGotFocus := {|| oBtn3[1]:lBorder := .F., ;
oBtn3[2]:lBorder := .T. }
Best Regards
Uwe
using a Ribbonbar, I want to keep a mark of the last used button.
How to keep a button as marked until another one is pressed ?
The borderchange-logic workes only inside a group.
Trying, to paint the border of a Button inside another group, doesn't work.
I need : scrolling a Border on Button-action inside the Ribbonbar.
The border of the last used button must stay visible.

The Border stays visible, until another Button is pressed ( works only inside a Group ! ).


@ 5, 10 ADD BUTTON oBtn3[1] GROUP oGroup3A BITMAP c_path + "\Images\Clock.Bmp" ;
SIZE 115, 55 PROMPT " &1." + CRLF + " Action" MOSTLEFT ROUND ;
LINECOLORS 0, 255 ;
ACTION ( MsgAlert( "Button 1", "Action ") )
oBtn3[1]:cToolTip = { "Define" + CRLF + "1. Button","1. Button", 1, CLR_BLACK, 14089979 }
oBtn3[1]:SetFont( oFont1 )
oBtn3[1]:SetColor( 0, )
oBtn3[1]:bGotFocus := {|| oBtn3[2]:lBorder := .F., ;
oBtn3[1]:lBorder := .T. }
@ 5, 140 ADD BUTTON oBtn3[2] GROUP oGroup3A BITMAP c_path + "\Images\Home.Bmp" ;
SIZE 115, 55 PROMPT " &2." + CRLF + " Action" MOSTLEFT ROUND ;
LINECOLORS 0, 255 ;
ACTION ( MsgAlert( "Button 2", "Action ") )
oBtn3[2]:cToolTip = { "Define" + CRLF + "2. Button","2. Button", 1, CLR_BLACK, 14089979 }
oBtn3[2]:SetFont( oFont1 )
oBtn3[2]:SetColor( 0, )
oBtn3[2]:bGotFocus := {|| oBtn3[1]:lBorder := .F., ;
oBtn3[2]:lBorder := .T. }
Best Regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.
