Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CmdButton.Picture = only an icon (no captioning)
Message
From
07/04/1999 14:42:32
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00206033
Message ID:
00206107
Views:
26
>On my main form for an application, I have several cmdButtons which, in turn, call other forms for going into the various modules of the application.
>
>Each cmdButton is a custom-made icon (using the Picture property and specifying an .ico file for the Picture).
>
>In the previous version of this program, the cmdButtons just had plain text Captions on them (no Picture property), and there was a default key in the text -- such as --
>
>
>\<1 - Daily Production
>\<2 - Daily Report
>
>
>I have put a lbl next to each cmdButton to provide the text description.
>
>Now that we have these cool-looking icons for the cmdButtons (with no Caption property), is there still a way I can have the shortcut keystrokes available for the users. TIA, Chuck

Not that I know of, but you can implement a handy workaround:

create separate buttons on the form with only the caption you want:

"\<2" etc, and in their click event, call the click events of the picture buttons. Just move the buttons off screen to get them out of site. Only downside to this is the picture buttons will not visible depress when the shortcuts are used.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform