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 08:02 Go to next message
Anonymous Programmer is currently offline Anonymous Programmer
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 09:48 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
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: Thu Jul 24 23:47:28 EDT 2014

Powered by FUDForum. Page generated in 0.02212 seconds