Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to add a BindEvent to _med_cut or _med_co
Message
From
10/10/2014 13:06:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01609134
Message ID:
01609155
Views:
82
>Here's the scenario:
>
>On a standard VFP form, a user highlights text from an editbox and chooses to copy or cut the text to the clipboard.
>
>At this point I need to be able to enable (or make visible) a command button, whose click event will act on whatever's in _cliptext.
>
>Is there a way to add a BINDEVENT to the _med_cut and/or _med_paste functions (i.e., to make the command button visible)?
>
>Any guidance you can provide would be appreciated.

I can't think of a direct way to do this, but how about something like this:

Instead of having the menu items (and thus, the keyboard shortcuts) go directly to the _med_xxx functions, have them call code, which then uses SYS(1500) to execute the relevant menu item and also calls your routine that enables controls.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform