Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>I've created an application with many text boxes and I would like to be able to copy values (ctrl-c, ctrl-v) from one text box to another within the form. I thought that this behavior would be enabled by default, but if it is, then I've managed to turn it off...
>
>So, is there something that I need to do to enable this behavior?
>If not, any idea what I could have done to turn it off?
>
>As always, thanks,
>Marc Mandel
>
>BTW, I'm using vfp 5.0a on NT WS 4.0 sp3
Marc,
You can add a method to a class that will do the copy and paste for you. Point to it like this where oFun is the object you created that contains the methods when loading the form.
ON KEY LABEL CTRL+C oFun.JetCopy
ON KEY LABEL CTRL+V oFun.JetPaste
The syntax in each function is:
JetCopy Method
_CLIPTEXT = _SCREEN.ActiveForm.ActiveControl.SelText
JetPaste Method
_SCREEN.ActiveForm.ActiveControl.Value = _CLIPTEXT
Précédent
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