Toolbar:dynamic buttons [message #438297] |
Mon, 21 June 2004 08:39 |
Eclipse User |
|
|
|
Originally posted by: ihazan.cablemx.com
Hi All adn thanks for help in advance,
In my SWT Application i'm trying to add dynamically buttons in the toolbar
according to some selection in a TreeViewer,
i add the buttons but can't see them,
I try to invoke redraw() and update() on the toolbar but it doesn't help.
Is there any thing i misunderstood.
Regards,
Itzhak
|
|
|
|
Re: Toolbar:dynamic buttons [message #438328 is a reply to message #438304] |
Tue, 22 June 2004 12:09 |
Eclipse User |
|
|
|
Originally posted by: ihazan.cablemx.com
Thanks for answer , my problem was that i can't refresh the toolbar to see
the newly added buttons.
I found how to do it by calling
m_toolBar.getShell().layout();
I refreshes the toolbar and display the newly added buttons
Regards
Itzhak
"Steve Northover" <steve_northover@ca.ibm.com> wrote in message
news:cb6mmi$6h3$1@eclipse.org...
> Use ToolItem.dispose() to remove buttons and ToolItem(ToolBar, int, int)
to
> add them.
>
> "Itzhak Hazan" <ihazan@cablemx.com> wrote in message
> news:cb63fp$u0g$1@eclipse.org...
> > Hi All adn thanks for help in advance,
> >
> > In my SWT Application i'm trying to add dynamically buttons in the
toolbar
> > according to some selection in a TreeViewer,
> > i add the buttons but can't see them,
> > I try to invoke redraw() and update() on the toolbar but it doesn't
help.
> >
> > Is there any thing i misunderstood.
> >
> > Regards,
> > Itzhak
> >
> >
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02712 seconds