Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KEYBOARD SHORTCUTS
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00024459
Message ID:
00024573
Vues:
38
>>>I'm using pictures instead of caption. will it still work using \ ?
>>
>>Interesting question. If there is no caption, obviously, the shortcut will not work. But, if you have both, picture and caption in your button, and set ForeColor property for the button to grey, the shortcut will work, and you see just a picture on your button. The disadvantage is that the picture will not be centered in the button, because of the invisible caption presence.
>>There are some workarounds, for example having two sets of buttons, one overlapping another. Button on top (Cmd1) has just a pictiure, and button Cmd2 has a caption with / and left angle bracket in proper place for the shortcut (sorry, it disappeared from my answer, because it was understood as HTML tag), and Cmd2.click() calls This.Parent.Cmd1.click()
>>It is possible to use invisible button as button with caption, but it does not prevent from focus rectangle appearing in place of invisible button.
>>So, better just overlap them.
>>Well, that's just from the top of my head, there should be other workarounds also.
>>
>>Nick
>
>On key labels also work.

That's right, but I am trying to avoid using ON KEY LABEL in VFP -
it is not very OOP way... :)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform