Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the Command Button background
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00346739
Message ID:
00347497
Views:
22
>>>>>Unfortunately, in VFP 6.0 SP3 you can't set its Backcolor property from the dialog. You can, however, set it in the control's Init method. Just do the following:
>>>>>
>>>>>_CLIPTEXT = TRANSFORM(GetColor())
>>>>>
>>>>>and paste it in the Init.
>>>>
>>>>
>>>>George, how does this work? There is no BackColor property to reference in the Init method.
>>>
>>>Fred, the MS Forms 2.0 Command Button has a BackColor property you can reference. The standard VFP button does not. Or do I misunderstand?
>>
>>OIC, I thought you were referencing the STANDARD CommandButton. My bad.
>
>No prob, Fred. If anyone's interested in why I didn't post this sooner, I simply don't believe in changing the background color of a command button. If youu want it to stand out, drop a bitmap on it that's appropriate. At least that's how I feel.

I agree. If you really, really want to have a different background, a BMP file allows you to be more expressive than words could ever be. (A picture is worth a 1000 words...)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform