Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Push Button with drop down behaviour
Push Button with drop down behaviour [message #757744] Mon, 21 November 2011 13:02 Go to next message
Anonymous Programmer is currently offline Anonymous ProgrammerFriend
Messages: 4
Registered: November 2011
Junior Member
For a org.eclipse.swt.widgets.ToolItem there is the SWT.DROP_DOWN style to show a drop down button at the right side of a tool bar item.

Is there something similar for a normal push button (org.eclipse.swt.widgets.Button)?
Re: Push Button with drop down behaviour [message #758520 is a reply to message #757744] Wed, 23 November 2011 14:48 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Hi,

You can make a Button with just a down-arrow by creating it with styles
SWT.ARROW | SWT.DOWN. However there isn't a way to add a
platform-provided down-arrow to the right of your Button's image/text.
If you want the ToolBar functionality within a page then you can create
a ToolBar with a single ToolItem and place it wherever you want.

Grant


On 11/21/2011 8:02 AM, myacc0unt43clipse0rg wrote:
> For a org.eclipse.swt.widgets.ToolItem there is the SWT.DROP_DOWN style
> to show a drop down button at the right side of a tool bar item.
>
> Is there something similar for a normal push button
> (org.eclipse.swt.widgets.Button)?
Previous Topic:SWT Slider or Scale with 2 thumbs
Next Topic:Wait for Browser thread to return
Goto Forum:
  


Current Time: Sun Nov 23 16:12:36 GMT 2014

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

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