Hello,
I have small problem ( I'm wx Newby ) I'm workin on small editor in what I have wxStyledTextCtrl. how can I get an event or smth if Ctrl key is held down? I need it so I can enable/disable hotspot in StyledTextCtrl.
I know I can activate hotspot before hand and then read if (event.GetControl()) But I don't like it this way. I want first to get if ctrl key is pressed and then enable for the time being hotspot and when ctrl is released then disable.
(A screenshot of the FBIde is here: http://forums.wxwidgets.org/viewtopic.php?t=2109
Thanks in advance.
Getting pressed key.
Will wxGetKeyState help you? (use it with the following Keycodes)
Also, you might wanna look into catching some wxKeyEvents...