Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcut for Button but using Graphic Image
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01473346
Message ID:
01473441
Views:
89
This message has been marked as the solution to the initial question of the thread.
Hi Cecil,

>How does one have a shortcut key for a button if you are using a Graphic Image (Picture property)? Usually, you'd use the word, such as Cancel and make the first letter, let's say, into a shortcut key with the ALT key, as in backslash and the less than sign preceding the word "Cancel". But, you have to clear the word Cancel out of the Caption property if you want to use an image there. Is there another property to put in a shortcut key?

simply set image.PicturePosition = 14

This will display the picture only and hide any given text in the caption, however will react to hotkey definitions within the caption.
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform