I've ran into a weird problem regarding to shorcut menus. The code is posted
below. This shortcut menu shows Copy, Paste, Select All and so on. However,
they're ALWAYS active, no matter what. Normally, Copy option should be
active only if some text is selected in the control.
Anyone knows why?
DEFINE POPUP FoxShortcutMenu SHORTCUT RELATIVE FROM MROW(),MCOL()
DEFINE BAR _med_undo OF foxshortcutmenu PROMPT "\<Undo" ;
KEY CTRL+Z, "Ctrl+Z"
DEFINE BAR _med_redo OF foxshortcutmenu PROMPT "Re\<do" ;
KEY CTRL+R, "Ctrl+R"
DEFINE BAR _med_sp100 OF foxshortcutmenu PROMPT "\-"
DEFINE BAR _med_cut OF foxshortcutmenu PROMPT "Cu\<t" ;
KEY CTRL+X, "Ctrl+X"
DEFINE BAR _med_copy OF foxshortcutmenu PROMPT "\<Copy" ;
KEY CTRL+C, "Ctrl+C"
DEFINE BAR _med_paste OF foxshortcutmenu PROMPT "\<Paste" ;
KEY CTRL+V, "Ctrl+V"
DEFINE BAR _med_pstlk OF foxshortcutmenu PROMPT "Paste \<Special..."
DEFINE BAR _med_clear OF foxshortcutmenu PROMPT "Cle\<ar"
DEFINE BAR _med_sp200 OF foxshortcutmenu PROMPT "\-"
DEFINE BAR _med_slcta OF foxshortcutmenu PROMPT "Se\<lect All" ;
KEY CTRL+A, "Ctrl+A"
DEFINE BAR _med_sp300 OF foxshortcutmenu PROMPT "\-"
DEFINE BAR _med_find OF foxshortcutmenu PROMPT "\<Find..." ;
KEY CTRL+F, "Ctrl+F"
DEFINE BAR _med_repl OF foxshortcutmenu PROMPT "R\<eplace..." ;
KEY CTRL+L, "Ctrl+L"
ACTIVATE POPUP FoxShortcutMenu
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.