Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Button width and style
Button width and style [message #1585415] Mon, 26 January 2015 08:53 Go to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
From this original thread: SmartField and Suggestions while Typing

Peter Pfeifer wrote on Thu, 22 January 2015 19:34

index.php/fa/20509/0/

As you can see, "Add" and "Delete" Button are not the same size. And Im Struggling that those buttons should always have a fixed size and be right aligned, while the table should horizontally grow/shrink depending on the screen size.

Peter


I think that the Swing JButton created for the Scout Button does not fill the available space.

Out of the box, I am not aware of any possibility to influence this (maybe I am wrong).

index.php/fa/20575/0/

You see this well with the Layout Debugger (CTRL-SHIFT-F2).

The applications I know are using following semantic for buttons:
* We use button style for scout buttons that close the dialog (OK button, Cancel button...).
* We use link style for scout buttons that triggers other action (opening another dialog, creation a row in a table...). Those actions are very similar to context menu. This is useful when users are not really familiar to context menus.

This means it would look like this:

index.php/fa/20576/0/

In this PoC the enable/disable logic is not implemented. Of course "delete" should be only enabled when a row is selected in the "Children" table.
Re: Button width and style [message #1585686 is a reply to message #1585415] Mon, 26 January 2015 12:17 Go to previous message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 213
Registered: November 2014
Senior Member

Hi,

Jeremie Bresson wrote on Mon, 26 January 2015 08:53
* We use link style for scout buttons that triggers other action (opening another dialog, creation a row in a table...). Those actions are very similar to context menu. This is useful when users are not really familiar to context menus.


Thanks for this suggestion. I'll probably stick to this approach Smile

Peter

[Updated on: Tue, 27 January 2015 07:25] by Moderator

Report message to a moderator

Previous Topic:Close Timer and Custom Timer - How to use?
Next Topic:No way to hide search Form in SWING??
Goto Forum:
  


Current Time: Sat Apr 20 02:45:47 GMT 2024

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

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

Back to the top