Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Highlight default button?
Highlight default button? [message #1100580] Tue, 03 September 2013 05:38 Go to next message
André Wegmüller is currently offline André Wegmüller
Messages: 7
Registered: September 2012
Junior Member
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?

*1: docs.oracle.com/javase/tutorial/figures/uiswing/components/NameChooserMetal.png
*2: help.eclipse.org/kepler/topic/org.eclipse.wb.swing.doc.user/html/wizards/swing/images/automatic_data_binding2.gif
Re: Highlight default button? [message #1107284 is a reply to message #1100580] Thu, 12 September 2013 03:31 Go to previous message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 649
Registered: October 2011
Senior Member
Having the "default-button" information in the Scout Model could be nice.
I still need some time to figure out why the Scout committer didn't consider it at the time (maybe there is a good reason, maybe not)

Previous Topic:RadioButtonGroup with LookupCall
Next Topic:Maximal Rows/Columns Java Heap Space Problem
Goto Forum:
  


Current Time: Fri Aug 01 02:01:25 EDT 2014

Powered by FUDForum. Page generated in 0.02373 seconds