Focus on Buttons
Posted: Wed Sep 22, 2004 5:32 pm
A button can have the flag #PB_Button_Default to mark it with a dark frame. When the Enter key is pressed, the #PB_EventType_LeftClick EventType() is triggered for this button.
However, when you move the focus by TAB key, the default button remains, and the Enter key will NOT work on the button that actually has the focus.
When you look at some other Windows programs (for example the StartMenu/RUN box) the default button marker (not only the focus marker) moves around with the TAB key, so that ENTER always works for the button that has the focus. If anything other than a button has the focus, the initially defined default button will have the dark frame again.
Since many users expect this behaviour, it would be nice if PureBasic supported this.
However, when you move the focus by TAB key, the default button remains, and the Enter key will NOT work on the button that actually has the focus.
When you look at some other Windows programs (for example the StartMenu/RUN box) the default button marker (not only the focus marker) moves around with the TAB key, so that ENTER always works for the button that has the focus. If anything other than a button has the focus, the initially defined default button will have the dark frame again.
Since many users expect this behaviour, it would be nice if PureBasic supported this.