Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shortcut to command buton with no caption
Message
De
19/02/2002 20:09:23
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
19/02/2002 19:16:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00622269
Message ID:
00622294
Vues:
24
>Hi Hilmar
>
>That's a good idea, but I'd like to create a class to drop it into several forms. I know, however that still can be done through a class if I prepare the form class to do this when my set of buttons are present, but I wouldn't like to involve the form.
>
>I was thinking of adding lables with the required Shortcut on its caption and with its TabIndex property set in order t make the command button receiv the caption, then have the gotfocus event of the command button read the LastKey() and fire is click event if the short cut matches last key entered.
>
>Oscar Corte

As is quite often the case, it seems that here, too, Sergey has a better solution. Try it! i believe, too, that it would interfere less with your work with classes.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform