Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » standard button width in wizards and dialogs?
standard button width in wizards and dialogs? [message #336816] Sat, 04 July 2009 13:12 Go to next message
Christoph Höger is currently offline Christoph Höger
Messages: 40
Registered: July 2009
Member
Hi,

when using jdt I noticed that buttons have a common width, which is
broader than the minimum width would be.
Is there a default width value for buttons in eclipse or is that jdt
specific?
And what value would that be?

And finally (although more SWT related) would I get this by setting the
width hint of my layoutData objects?

regards

Christoph
Re: standard button width in wizards and dialogs? [message #336836 is a reply to message #336816] Mon, 06 July 2009 15:14 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

See org.eclipse.jface.dialogs.DialogPage.setButtonLayoutData(But ton),
org.eclipse.jface.dialogs.Dialog.createButton(Composite, int, String,
boolean), and
org.eclipse.jface.dialogs.Dialog.setButtonLayoutData(Button) for where
eclipse sets the widths for most wizard pages and dialogs.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:remove toolbar/menu entries contributed by other plugins
Next Topic:Compile & Build Eclipse from Sourcecode does NOT work!!
Goto Forum:
  


Current Time: Wed Oct 22 10:00:53 GMT 2014

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

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