c++ - Handle EVT_CHAR in wxFrame or wxDialog -


as know, evt_char basic event don't propagate wxtoplevelwindow(wxframe , wxdialog).

but have wxdialog without wxwidgets controls on it, , need handle user keyboard input (handle evt_char event).

i saw wiki catch key events globally, it's not work on evt_char event evt_char event need translated user input

and have try have wxdialog hided children wxwindow foward evt_char parent wxdialog. works on windows platform, , not on osx target platform.

is there way implement ?

why need handle keyboard entry in dialog itself? there 2 typical cases know of: either want handle key presses in several different controls in same way, or need handle particular key press (e.g. wxk_f1) in controls. former can done binding same event handler several controls. latter -- using accelerator table entry key want handle specially.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -