Keyboard shortcuts on wxFrame not working

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.
Post Reply
AndrzejB
Earned some good credits
Earned some good credits
Posts: 105
Joined: Sun Nov 29, 2015 12:46 pm

Keyboard shortcuts on wxFrame not working

Post by AndrzejB »

On wxDialogs works changing focus of buttons by Tab. On wxFrame not, also not working Alt+Letter accelerations.
I can't use all wxDialogs instead of wxFrame because wxDialogs can't have menus.
How handle keyboard on wxFrame?
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Keyboard shortcuts on wxFrame not working

Post by ONEEYEMAN »

Hi,
For a TAB handling - put a wxPanel on the frame and make it cover all frame. Then make all controls a child of that panel.
For the ALT+letter - what kind? Can you show some code and explain what you are trying to do?

Thank you.
AndrzejB
Earned some good credits
Earned some good credits
Posts: 105
Joined: Sun Nov 29, 2015 12:46 pm

Re: Keyboard shortcuts on wxFrame not working

Post by AndrzejB »

Works, Alt+letter in "&New",&About,&Quit also works. Left Alt in Windows.
Post Reply