Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making Cut and Paste work.
Message
De
17/07/1997 09:17:29
 
 
À
17/07/1997 08:52:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00040236
Message ID:
00040389
Vues:
31
>>>>Hi,
>>>> When I have a TEXTBOX on a form and it has focus
>>>>(so that I can enter data), how can I make the standard
>>>>Windows paste command (CONTROL-V) paste data into
>>>>the TEXTBOX.
>>>> For example, if I take the mouse and select some
>>>>text in a TEXBOX and then press CONTROL-C (to copy the text),
>>>>why can't I select another TEXTBOX and CONTROL-V (paste)
>>>>some text into it. It doesn't work right now.
>>>>
>>>>Please advise.
>>>>Thanks,
>>>>Terry Harris
>>>>terryy@aol.com
>>>
>>>You can just add appropriate standard Fox menu options (e.g. Cut,Copy,Paste,Undo) to application menu and Ctrl-C(V,etc.) will work Ok.
>>
>>Hi, Edward
>>Could you give me a detailed example of what the menu item would look like for COPY?
>
>Menu Designer Item:
>Prompt: Copy
>Result: Bar #
>Content: _MED_COPY
>Option/Shortcut: Ctrl+C


I have this code in my EDIT buttom.

if cntbar("_MEDIT") = 0
define popup _medit
endif
define bar _med_copy of _medit prompt "Copy" key "Ctrl+C"
define bar _med_paste of _medit prompt "Paste" key "Ctrl+V"
HTH - rob
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform