Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CmdButton.Picture = only an icon (no captioning)
Message
De
07/04/1999 14:42:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00206033
Message ID:
00206107
Vues:
27
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform