Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How to add Combo to Toolbar
How to add Combo to Toolbar [message #109961] Tue, 25 October 2005 18:37 Go to next message
Eclipse UserFriend
Originally posted by: lists.pakra.net

Hello,

how is it possible to add a Combo or Text widget to Toolbar in VE?

Thanks!
Re: How to add Combo to Toolbar [message #110006 is a reply to message #109961] Tue, 25 October 2005 22:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I'm assuming you are talking SWT.

No, but it is not the VE's fault. Toolbars in SWT can only take ToolItems.

I believe CoolBar can do this though.

Filipp Akinfiev wrote:
> Hello,
>
> how is it possible to add a Combo or Text widget to Toolbar in VE?
>
> Thanks!

--
Thanks,
Rich Kulp
Re: How to add Combo to Toolbar [message #110016 is a reply to message #110006] Tue, 25 October 2005 23:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lists.pakra.net

Thanks.

Rich Kulp wrote:

> I'm assuming you are talking SWT.
>
> No, but it is not the VE's fault. Toolbars in SWT can only take ToolItems.
>
> I believe CoolBar can do this though.
>
> Filipp Akinfiev wrote:
>> Hello,
>>
>> how is it possible to add a Combo or Text widget to Toolbar in VE?
>>
>> Thanks!
>
Re: How to add Combo to Toolbar [message #110047 is a reply to message #110016] Wed, 26 October 2005 07:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lists.pakra.net

hmmmm, in snippet58
( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet58.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup)
is possible to add a Combo to Toolbar, and then set Control to it....


Filipp Akinfiev wrote:

> Thanks.
>
> Rich Kulp wrote:
>
>> I'm assuming you are talking SWT.
>>
>> No, but it is not the VE's fault. Toolbars in SWT can only take
>> ToolItems.
>>
>> I believe CoolBar can do this though.
>>
>> Filipp Akinfiev wrote:
>>> Hello,
>>>
>>> how is it possible to add a Combo or Text widget to Toolbar in VE?
>>>
>>> Thanks!
>>
Re: How to add Combo to Toolbar [message #110060 is a reply to message #110047] Wed, 26 October 2005 13:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

That is actually not an allowed usage of ToolBar according to the
JavaDoc. They shouldn't of shown that. From the JavaDoc for ToolBar:

* Instances of this class support the layout of selectable
* tool bar items.
* <p>
* The item children that may be added to instances of this class
* must be of type <code>ToolItem</code>.
* </p><p>
* Note that although this class is a subclass of <code>Composite</code>,
* it does not make sense to add <code>Control</code> children to it,
* or set a layout on it.
* </p><p>

Filipp Akinfiev wrote:
> hmmmm, in snippet58
> ( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet58.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup)
> is possible to add a Combo to Toolbar, and then set Control to it....

--
Thanks,
Rich Kulp
Re: How to add Combo to Toolbar [message #110097 is a reply to message #110060] Wed, 26 October 2005 14:19 Go to previous message
Eclipse UserFriend
Originally posted by: lists.pakra.net

Ok, thanks for infos, i use allready a coolbar.
Filipp

Rich Kulp wrote:

> Hi,
>
> That is actually not an allowed usage of ToolBar according to the
> JavaDoc. They shouldn't of shown that. From the JavaDoc for ToolBar:
>
> * Instances of this class support the layout of selectable
> * tool bar items.
> * <p>
> * The item children that may be added to instances of this class
> * must be of type <code>ToolItem</code>.
> * </p><p>
> * Note that although this class is a subclass of <code>Composite</code>,
> * it does not make sense to add <code>Control</code> children to it,
> * or set a layout on it.
> * </p><p>
>
> Filipp Akinfiev wrote:
>> hmmmm, in snippet58
>>
( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet58.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup)
>> is possible to add a Combo to Toolbar, and then set Control to it....
>
Re: How to add Combo to Toolbar [message #611250 is a reply to message #109961] Tue, 25 October 2005 22:25 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I'm assuming you are talking SWT.

No, but it is not the VE's fault. Toolbars in SWT can only take ToolItems.

I believe CoolBar can do this though.

Filipp Akinfiev wrote:
> Hello,
>
> how is it possible to add a Combo or Text widget to Toolbar in VE?
>
> Thanks!

--
Thanks,
Rich Kulp
Re: How to add Combo to Toolbar [message #611251 is a reply to message #110006] Tue, 25 October 2005 23:36 Go to previous message
Filipp Akinfiev is currently offline Filipp AkinfievFriend
Messages: 6
Registered: July 2009
Junior Member
Thanks.

Rich Kulp wrote:

> I'm assuming you are talking SWT.
>
> No, but it is not the VE's fault. Toolbars in SWT can only take ToolItems.
>
> I believe CoolBar can do this though.
>
> Filipp Akinfiev wrote:
>> Hello,
>>
>> how is it possible to add a Combo or Text widget to Toolbar in VE?
>>
>> Thanks!
>
Re: How to add Combo to Toolbar [message #611254 is a reply to message #110016] Wed, 26 October 2005 07:52 Go to previous message
Filipp Akinfiev is currently offline Filipp AkinfievFriend
Messages: 6
Registered: July 2009
Junior Member
hmmmm, in snippet58
( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet58.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup)
is possible to add a Combo to Toolbar, and then set Control to it....


Filipp Akinfiev wrote:

> Thanks.
>
> Rich Kulp wrote:
>
>> I'm assuming you are talking SWT.
>>
>> No, but it is not the VE's fault. Toolbars in SWT can only take
>> ToolItems.
>>
>> I believe CoolBar can do this though.
>>
>> Filipp Akinfiev wrote:
>>> Hello,
>>>
>>> how is it possible to add a Combo or Text widget to Toolbar in VE?
>>>
>>> Thanks!
>>
Re: How to add Combo to Toolbar [message #611255 is a reply to message #110047] Wed, 26 October 2005 13:20 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

That is actually not an allowed usage of ToolBar according to the
JavaDoc. They shouldn't of shown that. From the JavaDoc for ToolBar:

* Instances of this class support the layout of selectable
* tool bar items.
* <p>
* The item children that may be added to instances of this class
* must be of type <code>ToolItem</code>.
* </p><p>
* Note that although this class is a subclass of <code>Composite</code>,
* it does not make sense to add <code>Control</code> children to it,
* or set a layout on it.
* </p><p>

Filipp Akinfiev wrote:
> hmmmm, in snippet58
> ( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet58.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup)
> is possible to add a Combo to Toolbar, and then set Control to it....

--
Thanks,
Rich Kulp
Re: How to add Combo to Toolbar [message #611258 is a reply to message #110060] Wed, 26 October 2005 14:19 Go to previous message
Filipp Akinfiev is currently offline Filipp AkinfievFriend
Messages: 6
Registered: July 2009
Junior Member
Ok, thanks for infos, i use allready a coolbar.
Filipp

Rich Kulp wrote:

> Hi,
>
> That is actually not an allowed usage of ToolBar according to the
> JavaDoc. They shouldn't of shown that. From the JavaDoc for ToolBar:
>
> * Instances of this class support the layout of selectable
> * tool bar items.
> * <p>
> * The item children that may be added to instances of this class
> * must be of type <code>ToolItem</code>.
> * </p><p>
> * Note that although this class is a subclass of <code>Composite</code>,
> * it does not make sense to add <code>Control</code> children to it,
> * or set a layout on it.
> * </p><p>
>
> Filipp Akinfiev wrote:
>> hmmmm, in snippet58
>>
( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet58.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup)
>> is possible to add a Combo to Toolbar, and then set Control to it....
>
Previous Topic:VE - Properties Don't Display
Next Topic:Composite Table
Goto Forum:
  


Current Time: Thu Sep 19 15:01:52 GMT 2024

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

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

Back to the top