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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.