Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sizeable Image Button??
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Sizeable Image Button??
Miscellaneous
Thread ID:
00885858
Message ID:
00885858
Views:
52
I have a sort of popup control that I've created. It's basically a container with a textbox and a button. The tool is great for popping up something for user input and returning the results into the textbox ... date pickers, file pickers, etc.

However we just recently changed the default size of our textboxes and command buttons. If I resize the button to match our new default, the picture that was being displayed on the button does not resize with the button ... I have to go re-create the image. I'd like to have a button that scales the image to match in much the same way as the arrow on a combo box scales to the size of the button (which scales to the size of the combobox control.)

I tried creating my own image button ... a container with a button object and an image object. Then added code that when the container is resized, the button and image are resized accordingly. The image is set to isometric so it sizes the image.

All of this seems to work except that when I mouse over the control, the button changes its appearance in order to show the XP highlighting around the edge. This in turn makes the image disappear. Is there any way to keep this from happening or has anyone already created such a button so I don't have to keep messing with it?

Thanks so much for your help!
Next
Reply
Map
View

Click here to load this message in the networking platform