I have never used button bars ( believe it or not ) and I have created a Bar with the 2007 clause .. I want to Disable the bar when I open a new detail window and I have successfully done that because the buttons definitely will not work .. but I was hoping the icons would grey out to visually show they are disabled but this is not the case.
The Icons used are alpha blend bitmaps .. don't know if that has any bearing on the subject .. just curious if there is a way when I oBar2:Disable() .. the bitmaps would 'grey out' ??
Thanks
Rick Lipkin
- Code: Select all Expand view
DEFINE BUTTONBAR oBar2 OF oWndMDI SIZE 100,80 3DLOOK 2007
oBar2:SetColor(0)
DEFINE BUTTON oBtn1 OF oBar2 FILENAME ( cDEFA+"\ICONS\HOMEADD.BMP" ) ;
MESSAGE "Add Property Info" ;
ACTION nil ; //_PropBrow( oWnd,oBar ) ;
PROMPT "Add Property Info"
oBtn1:cToolTip := { " " + CRLF + "Button 1", "1. Button", 1, CLR_BLACK, 14089979 }
DEFINE BUTTON oBtn2 OF oBar2 FILENAME ( cDEFA+"\ICONS\HOMEFIND.BMP" ) ;
MESSAGE "Find a Property" ;
ACTION( _PropFind( oRsProp ),oBrw:ReFresh(),SysReFresh() ) ;
PROMPT "Find a Property"
oBtn2:cToolTip := { " " + CRLF + "Button 2", "2. Button", 1, CLR_BLACK, 14089979 }
DEFINE BUTTON oBtn3 OF oBar2 FILENAME ( cDEFA+"\ICONS\CLOSE.BMP" ) ;
MESSAGE "Close Browse" ;
ACTION ( oWnd1:End() ) ;
PROMPT "Close Property"
oBtn3:cToolTip := { " " + CRLF + "Close Property Browse", "Close", 1, }