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 09:38 Go to next message
Andre Wegmueller is currently offline Andre WegmuellerFriend
Messages: 32
Registered: September 2012
Location: Baden-Dättwil, Switzerla...
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?


Edit 08.10.2014: add html-links

[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: 1250
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
René  Eigenheer is currently offline René EigenheerFriend
Messages: 104
Registered: July 2009
Senior Member
Hi Jeremy

Did you find the reason ?

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

Current Time: Sun Apr 22 05:12:33 GMT 2018

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

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