|Highlight default button? [message #1100580]
||Tue, 03 September 2013 09:38
| André Wegmüller
Registered: September 2012
In Swing [*1] and SWT[*2] the default button is highlighted in the UI, so the user has a visual clue which button will be triggered when he/she presses the enter-key. In these UI-frameworks you must set the default-button programatically on the top-level frame (window, dialog, etc.).|
I noticed that in Scout the Ok-Button is triggered by default when a user presses the enter key. There is no "default-button" on the model-layer, but it's possible to implement an "enter-key" handler. IMHO this enter-key-handling does not set the default-button in the UI layer. Because of this, it is not possible to highlight the button in the UI, since the default-button is never set in the UI layer.
Is my observation correct? Is there a simple workaround to highlight the default-button as shown in the two screenshots above?
Powered by FUDForum
. Page generated in 0.09245 seconds