Re: Capturing Ctrl+c [message #79450] |
Sun, 26 February 2012 00:01 |
Percy Pugwash
Messages: 12 Registered: January 2012
|
Junior Member |
|
|
On Feb 26, 12:09 am, Percy Pugwash <percy.pugw...@gmail.com> wrote:
> I would like to be able to capture the content of a draw widget to
> clipboard. I plan to do this using the handy Coyote CLIPBOARD
> procedure.
>
> However, I'd really like to do this using the well-known Ctrl+c
> keyboard shortcut, and there seems to be a problem with this. Whether
> I set the draw widget's KEYBOARD_EVENTS keyword to 1 or 2, I don't
> seem to get an event generated by the Ctrl+c keyboard combination,
> even though I do get events for each key if pressed separately.
>
> Is this perhaps because Windows already intercepts this key
> combination, and prevents it reaching the draw widget? If so, is there
> anything I can do to get it back, since using this combination would
> be by far the most convenient way to introduce clipboard copy
> functionality.
>
> P
OK, I feel a bit silly now. The exact functionality I require is built
into IDL! I presume I just have to make sure that my draw widget is
the current window, and then Ctrl-C causes the contents of that Window
to be copied to the clipboard. Somehow I think I'd got into the habit
of thinking that things in IDL are usually a bit harder than that...
|
|
|