Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I fire off a system menu command with a program?
Message
 
À
08/01/2000 22:57:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00314980
Message ID:
00315086
Vues:
31
>>This is actually two questions that are closely related.
>>
>>1) The system menu is will documented. I would like to use the edit menu selection's cut and paste options from within my program on edit boxes and such.
>
>
>You should be able to use the KEYBOARD command to emulate the keystrokes for the repsective menu item's shortcut keys.
>
>KEYBOARD '{CTRL+C}'
>KEYBOARD '{CTRL+V}'

You can also use the SYS(1500) command.

Copy is SYS(1500, "_MED_COPY","_MEDIT")
Paste is SYS(1500,"_MED_PASTE","_MEDIT")

Note that the bars need to be defined (but not necessarily visible)

>
>>2) Along the same lines. I would like to be able to exit a form/prg etc. and have the system menu remain as it was when the menu selection was made. My program is very large and when returning from a selection the menu is back at the main line at the top causing the user to have to go 3-4 levels deep to get back to the area they were working on when they just wanted to get to the next selection.
>
>I don't think this is possible, without again resorting to KEYBOARD commands to simulate the user using the shortcut keys to open the menus back up. Eeeuw.

I agree -- except for the last word. KEYBOARD is a perfectly acceptable way of doing this - in fact I think it is the best thing that KEYBOARD does.

Cheers,

Andrew


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform