This is a bit embarrassing... because I am not sure how to ask the question I want answered... But I can describe the problem.
I have some code which I have put in the RIGHT CLICK event of a Text Box...It lets me Right Click and Copy or Paste (thanks to those who helped me develop that)
Now (belatedly) I have decided to put this Right Click code in all the text boxes on the Form. Is there an easier way to do this other than copy and paste into the right click code box for each text box ?
*** I am also thinking of coding a colour change when the box has focus... hence the same issue of copying to many text boxes.
OR Can I define my own text box with that pre-programmed (Now am really showing my ignorance.
Thanks in advance...
John Fox
I have some code which I have put in the RIGHT CLICK event of a Text Box...It lets me Right Click and Copy or Paste (thanks to those who helped me develop that)
Code:
LOCAL lEsc
lESC = SET("ESCAPE")
DEFINE POPUP myPop SHORTCUT RELATIVE FROM MROW(),MCOL()
DEFINE BAR 1 OF myPop PROMPT "Copy"
DEFINE BAR 2 OF myPop PROMPT "Paste"
ON SELECTION POPUP myPop DEACTIVATE POPUP
ACTIVATE POPUP myPop
DO CASE
CASE BAR() = 1
Sys(1500, '_MED_COPY', '_MEDIT')
CASE BAR() = 2
Sys(1500, '_MED_PASTE', '_MEDIT')
ENDCASE
**
RELEASE POPUP myop
SET ESCAPE &lESC
Now (belatedly) I have decided to put this Right Click code in all the text boxes on the Form. Is there an easier way to do this other than copy and paste into the right click code box for each text box ?
*** I am also thinking of coding a colour change when the box has focus... hence the same issue of copying to many text boxes.
OR Can I define my own text box with that pre-programmed (Now am really showing my ignorance.
Thanks in advance...
John Fox