Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Still trying to change a cmdButton Backcolor.
Message
 
To
29/12/2001 10:44:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00599107
Message ID:
00599121
Views:
19
>>If you wish - try using a container with label and invisible command button in it. You will need additional programming. Check your previous thread (Different Command Button Color)
>
>Zlatin,
>
>Here is the dilemma I am facing. I tried placing a cmdButton inside a container class. However, I still don't understand how to change the backcolor of the cmdButton. I can change the backcolor of the container.

Eric,

The mistake in thinking you may be making, is that you try to use the CommandButton control. Though you can (invisible), my solution isn't about a CommandButton at all. Just Containers, and at your wish a Label in it, an Image, and Shapes to finish it off.
Always think of making according objects transparent or just not, and remember that everything which is not transparent, masks the underlaying objects.
Also don't forget to "click through" a top-level object to the lower ones (when the click is needed there).

You may need some MouseDown and MouseUp methods to control the "depth" of the Containers, in order to show the pressed button (i.e. shift the position of the underlaying Container).

HTH,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform