Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Toolbar:dynamic buttons
Toolbar:dynamic buttons [message #438297] Mon, 21 June 2004 08:39 Go to next message
Eclipse UserFriend
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 #438304 is a reply to message #438297] Mon, 21 June 2004 13:09 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
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
>
>
Re: Toolbar:dynamic buttons [message #438328 is a reply to message #438304] Tue, 22 June 2004 12:09 Go to previous messageGo to next message
Eclipse UserFriend
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
> >
> >
>
>
Re: Toolbar:dynamic buttons [message #438421 is a reply to message #438328] Wed, 23 June 2004 22:56 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
It should refresh automatically. Please enter a buglizard report with a
stand alone SWT program that shows the problem. Thanks!

"Itzhak Hazan" <ihazan@cablemx.com> wrote in message
news:cb944r$rhp$1@eclipse.org...
> 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
> > >
> > >
> >
> >
>
>
Previous Topic:FileDialog bug ?
Next Topic:how to implement owner-drawn items for listbox using swt?
Goto Forum:
  


Current Time: Wed Apr 24 15:46:14 GMT 2024

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

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

Back to the top