Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Highlight default button?
Highlight default button? [message #1100580] Tue, 03 September 2013 09:38 Go to next message
Andre Wegmueller is currently offline Andre WegmuellerFriend
Messages: 204
Registered: September 2012
Location: Baden-Dättwil, Switzerla...
Senior 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: http://docs.oracle.com/javase/tutorial/figures/uiswing/components/NameChooserMetal.png
*2: http://help.eclipse.org/kepler/topic/org.eclipse.wb.swing.doc.user/html/wizards/swing/images/automatic_data_binding2.gif

---
Edit 08.10.2014: add html-links


Eclipse Scout Homepage | Documentation | GitHub

[Updated on: Wed, 08 October 2014 16:14] by Moderator

Report message to a moderator

Re: Highlight default button? [message #1107284 is a reply to message #1100580] Thu, 12 September 2013 07:31 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
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)

Re: Highlight default button? [message #1404559 is a reply to message #1107284] Mon, 04 August 2014 07:58 Go to previous message
Rene Eigenheer is currently offline Rene EigenheerFriend
Messages: 109
Registered: July 2009
Senior Member
Hi Jeremy

Did you find the reason ?

-Rene
Previous Topic:Summary row in table
Next Topic:Renaming and plugin.xml
Goto Forum:
  


Current Time: Tue Apr 23 17:29:36 GMT 2024

Powered by FUDForum. Page generated in 0.03345 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top