Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why can't I change the background color of a CommandButt
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00197633
Message ID:
00197681
Views:
14
>>>How can I do this without fooling around with the ColorScheme & ColorSource properties (where you don't really have control of the colors)
>>>
>>>Thanx in advance!
>>
>>Hi Joe,
>>
>>This is in accordance with the establish Windows standards, which allow the user control over the appearance of windows, etc. You can, in VFP 6.0, however, use the Forms 2.0 Command Button ActiveX control. It allows you to specify teh background color.
>
>Ok...I found and placed a Forms 2.0 Command Button, however, when I try to change the BackColor or ForeColor all the options in the Properties dialog box are disabled!
>
>Any ideas what I'm doing wrong?
>
>Also, where can I find documentation for all these Forms 2.0 controls?
>
>Thanx,
Hi Joe,

Set the back ground color programmatically. For example, in the Init method of the command button: This.BackColor = 16711680 &&Bright blue, works just fine.

I'd search the MSDN Library. The documentation is pretty sparse.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform