Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Button on Shortcut
Message
De
25/09/2014 11:29:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01608261
Message ID:
01608268
Vues:
45
Create a custom menu that gets added when the form is active and removed when it's not active. Put the shortcut in the menu.


>I have a form with Text Boxes and some Commandbuttons
>I want to set up a Key (preferabley a One Click Key e.g. PgDn rather than Ctlr + another key) so that when the user clicks the key , it runs the Click Event of one of the CommandButtons
>
>My first option was to use On Key Label Do MyRoutine
>Procedure Myroutine
>Thisform.MyCommand.Click()
>
>and have this on the Init of the form, and an On Key Label on a close of the form
>
>I am concerned that if from within the form, another Form is called it would then probably throw up an error
>
>I have lots of exits within the form and don't want to have to recode them all.
>Is there any command which tests for the presence of a control, so I can code around it e.g.
>
>Procedure MyRoutine
>If MyCommand Exists
> Thisform.MyCommand.Click()
>Else
> Do Nothing
>Endif
>
>Tia
>Gerard
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform