DropDown action with toggle button [message #293095] |
Tue, 18 October 2005 08:07 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: teber.gmx.net
Hy all,
I currently try to create an action
with a drop down list. My problem is
that for the button I need a "toggle"
and not a "push" behaviour.
So if I add the action with an actionset,
I can set the style either to "toggle" or
to "pulldown", but not to both. My first
idea was to split the action into two
separate ones. While the toggle button is
an easy one, the dropdown menu gives
me headache. If I use a ContributionItem
I can easily imlpement it, but cannot
place it next to my toggle button and if
I use the "pulldown" style of a normal
action I have the normal "push" button which
I do not need.
Any ideas?
Regards,
torsten
|
|
|
Re: DropDown action with toggle button [message #293101 is a reply to message #293095] |
Tue, 18 October 2005 12:50 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: douglas.pollock.magma.ca
torsten wrote:
> I currently try to create an action with a drop down list. My problem is
> that for the button I need a "toggle" and not a "push" behaviour. So if I
> add the action with an actionset, I can set the style either to "toggle"
> or to "pulldown", but not to both. My first idea was to split the action
> into two separate ones. While the toggle button is an easy one, the
> dropdown menu gives me headache. If I use a ContributionItem I can easily
> imlpement it, but cannot place it next to my toggle button and if I use
> the "pulldown" style of a normal action I have the normal "push" button
> which I do not need.
>
> Any ideas?
I'm afraid this just isn't really supported. Look at
ToolItem.createHandle(int) or the ToolItem class javadoc. Even if SWT
supported it, actionSets don't support it either. Which means you are
doubly screwed.
In 3.2, this might end up being possible by putting a custom widget into the
tool bar. But, that's not going to help you now. :(
sorry,
d.
|
|
|
Re: DropDown action with toggle button [message #293108 is a reply to message #293101] |
Tue, 18 October 2005 14:12 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: teber.gmx.net
Douglas Pollock wrote:
> I'm afraid this just isn't really supported. Look at
> ToolItem.createHandle(int) or the ToolItem class javadoc. Even if SWT
> supported it, actionSets don't support it either. Which means you are
> doubly screwed.
>
> In 3.2, this might end up being possible by putting a custom widget into the
> tool bar. But, that's not going to help you now. :(
>
>
thanx for your response douglas.
at least I can safe my time and do no further investigations on this
topic. so I'm thinking about an alternative way...
regards,
torsten
|
|
|
Powered by
FUDForum. Page generated in 0.03382 seconds