Using your latest BtnBmp replacement I have noticed that when you disable a BtnBmp even expressively adding the second and third parameter to the RESOURCE line, the 'disabled ( second image ) ' bitmap does not properly render... it ADDS its own grey properties to the Bitmap.
- Code: Select all Expand view
REDEFINE BTNBMP oBtnClock ID 180 PROMPT cClockText ;
RESOURCE "CLOCK","DCLOCK","DCLOCK" ;
ADJUST CENTER NOBORDER ;
of oWorkB ;
ACTION( oLbxB:SetFocus(),nClicks++,;
_BuildTimer( oBtnClock,cClockText,@nClicks,oWorkB,@oTmr,hDatas)) //,@cTime ) )
* oBtnClock:lTransparent := .t.
* oBtnClock:SetColor( 0, )
not disabled .. Clock.Bmp
Disabled .. DClock.Bmp
Actual dClock.Bmp
As you can see .. I specifically wanted "DCLOCK" as my disabled bitmap ... without any changes. Hopefully there is a quick fix NOT to add any grey desaturation if the second or third parameter is passed on the RESOURCE line.
I replaced the old BtnBmp class and got the desired 'disabled' rendering behavoir.
Just for a test, I changed "DCLOCK" to another 'color' Bitmap and it 'greyed' out the image as well, even though it was in color.
I have noticed that the disabled behavior does desaturate to grey ( unlike previous versions ) , no mater how the Bitmap is colored.
Thank you BOTH for your Help!
Rick Lipkin
ps .. I am overlaying the prompt over the bitmap .. I have rem'd out the prompt and it made no difference.