Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to HIDE menu but keep CTRL-KEYS functioning in memor
Message
De
18/10/1998 19:16:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
18/10/1998 01:01:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00146939
Message ID:
00147980
Vues:
64
>>case nKeyCode ...(crtl+x)
>> _cliptext=this.SelText
>> this.SelText=""
>>Case (ctrl+c)
>> _cliptext=this.SelText
>>Case (ctrl+v)
>> this.SelText= _cliptext
>>Case....
>>
>>Just like that. No need for menus.
>
>But menus make this behavior universal for all entry controls, with no code to be dispersed in every instance or class definition. I have used your method when I want this behavior on a limited scale, but it's not very practical for an entire app, or even an entire form.

Sure; I'd do this somewhere upstream in a text/editbox class code to avoid the clutter. The original poster asked for an idea how to do this without including the menus. Well, what's the third way? I mean, this is VFP, you can do it three ways or no way.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform