Hello,
is it possible to show METROBUTTONS disabled like BtnBmp ?
I can disable a metrobutton, but the color is still the same.
As a solution I changed the buttoncolor like
DEFINE METROBUTTON oSBtn[71] OF oMenu2 ;
[color=#0000FF:k3omthon]COLOR aVal[76], aVal[75] ;[/color:k3omthon]
FONT oTileFont ;
CAPTION "Benutzer" ;
ALIGN "TOPLEFT" ;
GROUP 1 ;
BITMAP c_Pfad1 + "Login.bmp" ;
BMPALIGN "MIDDLECENTER" ;
SIZE 50, 50 ;
BODYTEXT "Passwort" ;
TEXTALIGN "BOTTOMCENTER" ;
TEXTFONT oTileFont ;
ACTION LOGIN1()
oSBtn[71]:nClrCaption := aVal[77]
oSBtn[71]:bMMoved = { | nRow, nCol, nFlags | SHOW_FRAME( oSBtn, 71, nOld ), nOld := 71 }
IF aVal[131] = .F.
oSBtn[71]:Disable()
[color=#FF0000:k3omthon]oSBtn[71]:SetColor(12632256, 12632256)[/color:k3omthon]
ENDIF
[img:k3omthon]http://www.pflegeplus.com/IMAGES/Mdisabl1.jpg[/img:k3omthon]
regards
Uwe
↧