You can change the Button-textcolor on any other Control-action :
// --------------------
FUNCTION SHOW_BTN(oWndMain)
@ 200, 200 BTNBMP oBtnA OF oWndMain ;
SIZE 80, 80 PIXEL ;
NOBORDER ;
ADJUST ;
PROMPT "&Exit" ;
FILENAME c_path + "\Images\Button1.Bmp" ;
ACTION oWndMain:End() ;
FONT oFont[2] ;
CENTER
oBtnA:lTransparent := .t.
oBtnA:cToolTip = { "Exit Dialog","Exit", 1, CLR_BLACK, 14089979 }
oBtnA:SetColor( 16776960, ) // Startup
// ------------------
From the Explorerbar ( Mainwindow )
( The Buttons
oBtnA.., oBtnB..., defined as STATIC )
oExBar = TExplorerBar():New(150, 0, 150, 830, oWndMain)
oPanel1 = oExBar:AddPanel( "One", c_path + "\Images\people.bmp" )
oPanel1:AddLink( "First item", { |o|
oBtnA:SetColor( 65535, ), oBtnA:Refresh() }, ;
c_path + "\Images\additem.bmp")
oPanel1:AddLink( "Second item", { |o|
oBtnA:SetColor( 11009871, ), oBtnA:Refresh() }, ;
c_path + "\Images\copy.bmp")
oPanel1:lSpecial = .T.
oPanel1:oFont := oFont[1]
RETURN NIL
Best Regards
Uwe