If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
mael15
Ultimate wxWidgets Guru
Posts: 543 Joined: Fri May 22, 2009 8:52 am
Location: Bremen, Germany
Post
by mael15 » Sun Jul 11, 2021 12:05 pm
hi everyone,
i am handling key events in a class that inherits from wxFrame with
Code: Select all
Bind(wxEVT_KEY_DOWN, &MainFrame::onKeyDown, this);
it is triggert by all kinds of keys, but not the WXK_RETURN. Is this something i have to activate like in wxTextCtrl with wxTE_PROCESS_ENTER?
doublemax
Moderator
Posts: 19164 Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2
Post
by doublemax » Sun Jul 11, 2021 12:09 pm
Try adding wxWANTS_CHARS style flag.
Use the source, Luke!
mael15
Ultimate wxWidgets Guru
Posts: 543 Joined: Fri May 22, 2009 8:52 am
Location: Bremen, Germany
Post
by mael15 » Sun Jul 11, 2021 1:12 pm
worked, thanx!