Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to HIDE menu but keep CTRL-KEYS functioning in memor
Message
From
18/10/1998 19:16:10
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
18/10/1998 01:01:16
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00146939
Message ID:
00147980
Views:
62
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform