Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image disabled isn't grayed like in a command button
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00236660
Message ID:
00243888
Views:
40
Use the image Edit utility and create a black and white version of your .bmp or .ico. and change on runtime.

If object.enabled = .t.
object.picture = 'color_picture.bmp'
else
object.picture = 'nocolor_picture.bmp'
endif



>>If I set to .F. the .Enabled property of a Image Control, the picture is NOT grayed.
>>
>>I draw the grayed image and create a class based on Image with the .DisabledPicture and .EnabledPicture properties and with the method Assign for the Enabled property. In this method I set the .Picture property to .EnabledPicture or .DisabledPicture.
>>
>>Until here all is OK. BUT.....
>>
>>If I change the windows color, at Control Panel / Screen Properties, and set back color to Very Light Blue (for example), my disabled image is GRAYed and NOT DARK BLUE. Am I clear ???
>>
>>How can I solve this question ???? I need to do it.
>>
>>Thanks In Advance
Dominican Republic, a Paradise in America
Previous
Reply
Map
View

Click here to load this message in the networking platform