On 02/07/2012 6:43 AM, Sean Farrow wrote:
> Hi Eric:
> Probably should have been clearer: what I need ot do is capture the user pressing a key, say ctrl+t and then give me either the scan code, or the text of the key, like the windows Hotkey control does.
> Cheers
> Sean.
>
> -----Original Message-----
> From:
wx-users@... [mailto:
wx-users@...] On Behalf Of Eric Jensen
> Sent: 30 June 2012 15:54
> To: Sean Farrow
> Subject: Re: hotkey control
>
> Hello Sean,
>
> Saturday, June 30, 2012, 4:37:21 PM, you wrote:
>
> SF> Hi:
> SF> Does wxWidgets have an equivalent to the windows Hotkey control?
>
> It's not 100% clear what you mean with this, but there is:
> wxWindow::RegisterHotKey:
>
http://docs.wxwidgets.org/stable/wx_wxwindow.html#wxwindowregisterhotkey>
> Eric
>
>
>
>
Just create an accelerator table with Identifiers and then bind either
one function binding to each key id or a single function bound to all or
a range of the keys you are interested in and use then information in
the event to decide which key you are processing.
Gadget/Steve
--
Please read
http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to
wx-users+unsubscribe@...
or visit
http://groups.google.com/group/wx-users