Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Getexpr & cut & paste
Use of cut and paste in the function getexpr
When the function getexpr is executed from the command window, the cut and paste commands work fine within the getexpr function.
When a custom menu is invoked, the cut and paste no longer work within getexpr. This is even true if the cut and paste macros are defined again just prior to calling getexpr.
To demonstrate:
In command window type 'getexpr to x' and the cut and paste work fine.
Then issue 'set sysmenu to' which is automatically issued by the menu.
Try the getexpr again and cut and paste no longer work.
If we issue set sysmenu to _medit, then the cut and paste with getexpr will work, but we can no longer get back to our menu.
As a work-around, I created a program to define the macro keys:
*-----------------------------------------------------------------
* -- Enable the cut and paste keys
*-----------------------------------------------------------------
DEFINE popup edit
DEFINE BAR _med_cut of edit PROMPT "Cut" KEY CTRL+X
DEFINE BAR _med_copy of edit PROMPT "Copy" KEY CTRL+C
DEFINE BAR _med_paste of edit PROMPT "Paste" KEY CTRL+V
and run this program. The control keys should be recognized even if the window is not opened.
Try the getexpr again and cut and paste still do not work.
My objective is to continue to use the VFP menu generator and to enable the cut and paste in getexpr. Any ideas would be appreciated.
Thanks,
Nancy
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement