Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How change backcolor of a COMMAND BUTTON?

Status
Not open for further replies.

mkendi

Programmer
Oct 21, 2000
82
TR
The Command Button has no BackColor property. How do I change this property?
 
Hi mkendi,

The command button color cannot be changed directly from VFP. These follow WINDOWS SYSTEM property.

However, you can create an image (Picture - plain color strip with your text) and apply that using the Picture class of the Button. This will help to make the button appear with a different color.

Another way is to use a container and imitate that as if it is your command button. But you can still use its click event etc. and do waht ever you like (alomost similar to command button), but some limitations could be there.

:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
mkendi

If you do a search on that in this forum, you'll find that there isn't any solution (including using an API call). I could suggest 2 things.
[ol][li]You could use a colored bitmap and add you caption to it and place it in the picture property of the command button.[/li]
[li] Or wait for VFP8.0 which incorporated this new feature[/li] Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top