dantheinfoman
Programmer
Hi All,
In reference to the code I got from thread184-823135, I've been using this for a custom form for editing memo fields. It's great, it allows copy, paste, undo, redo - using keyboard shortcuts. However, the users are complaining that they can no longer auto-tab, meaning when they tab and hit Enter it just starts over to the far left, instead of indenting where the last line is.
The 'Properties" portion of this code is grayed out when I use this form. Any thoughts? Here's my code for the menu options:
Thanks for any thoughts on this,
Dan
In reference to the code I got from thread184-823135, I've been using this for a custom form for editing memo fields. It's great, it allows copy, paste, undo, redo - using keyboard shortcuts. However, the users are complaining that they can no longer auto-tab, meaning when they tab and hit Enter it just starts over to the far left, instead of indenting where the last line is.
The 'Properties" portion of this code is grayed out when I use this form. Any thoughts? Here's my code for the menu options:
Code:
DEFINE POPUP _medit MARGIN RELATIVE SHADOW
DEFINE PAD _msm_edit OF _MSYSMENU PROMPT "\<Edit" KEY ALT+E, "" MESSAGE "Edits text or current selection"
ON PAD _msm_edit OF _MSYSMENU ACTIVATE POPUP _medit
DEFINE BAR _med_undo OF _medit PROMPT "\<Undo" KEY CTRL+Z, "Ctrl+Z" MESSAGE "Undoes the last command or action"
DEFINE BAR _med_redo OF _medit PROMPT "Re\<do" KEY CTRL+Y, "Ctrl+Y" MESSAGE "Repeats the last command or action"
DEFINE BAR _med_sp100 OF _medit PROMPT "\-"
DEFINE BAR _med_cut OF _medit PROMPT "Cu\<t" KEY CTRL+X, "Ctrl+X" MESSAGE "Removes the selection and places it onto the Clipboard"
DEFINE BAR _med_copy OF _medit PROMPT "\<Copy" KEY CTRL+C, "Ctrl+C" MESSAGE "Copies the selection onto the Clipboard"
DEFINE BAR _med_paste OF _medit PROMPT "\<Paste" KEY CTRL+V, "Ctrl+V" MESSAGE "Pastes the contents of the Clipboard"
DEFINE BAR _med_clear OF _medit PROMPT "Cle\<ar" MESSAGE "Removes the selection and does not place it onto the Clipboard"
DEFINE BAR _med_sp200 OF _medit PROMPT "\-"
DEFINE BAR _med_slcta OF _medit PROMPT "Se\<lect All" KEY CTRL+A, "Ctrl+A" MESSAGE "Selects all text or items in the current window"
DEFINE BAR _med_sp300 OF _medit PROMPT "\-"
DEFINE BAR _med_find OF _medit PROMPT "\<Find..." KEY CTRL+F, "Ctrl+F" MESSAGE "Searches for specified text"
DEFINE BAR _med_finda OF _medit PROMPT "Find A\<gain" KEY CTRL+G, "Ctrl+G" MESSAGE "Repeats the last search"
DEFINE BAR _med_repl OF _medit PROMPT "R\<eplace..." KEY CTRL+L, "Ctrl+L" MESSAGE "Replaces specified text with different text"
DEFINE BAR _med_sp400 OF _medit PROMPT "\-"
DEFINE BAR _med_pref OF _medit PROMPT "Prope\<rties..." MESSAGE "Set editor properties"
Thanks for any thoughts on this,
Dan