Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » change toolbar image programatically
change toolbar image programatically [message #436457] Tue, 18 May 2004 19:52 Go to next message
Eclipse UserFriend
Originally posted by: bjin.tensilica.com

Does anyon know how can I change the image of a toolbar button depending on
the state of my application's data ?

TIA
Ben
Re: change toolbar image programatically [message #436564 is a reply to message #436457] Wed, 19 May 2004 09:55 Go to previous messageGo to next message
Eclipse UserFriend
Use ToolBar API? Sorry, your question isn't very good so neither is my
answer. ;-)

"bjin" <bjin@tensilica.com> wrote in message
news:c8e75t$phl$2@eclipse.org...
> Does anyon know how can I change the image of a toolbar button depending
on
> the state of my application's data ?
>
> TIA
> Ben
>
>
>
Re: change toolbar image programatically [message #436578 is a reply to message #436564] Wed, 19 May 2004 14:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bjin.tensilica.com

Well, your answer is kinda good to me. I want to be able to programatically
change one of the toolbar button's icon indicating different state of my one
of my data.

It seems like ApplicationWindow owns the toolbars. So, I suppose if I can
get the ApplicationWindow, then I can get the toolbar to get the icon and
change it, right ? But, how do I get the ApplicationWindow in the middle of
program execution ?

Am I on the right track ?

Thanks,
Ben



"Steve Northover" <steve_northover@ca.ibm.com> wrote in message
news:c8foi6$gjo$1@eclipse.org...
> Use ToolBar API? Sorry, your question isn't very good so neither is my
> answer. ;-)
>
> "bjin" <bjin@tensilica.com> wrote in message
> news:c8e75t$phl$2@eclipse.org...
> > Does anyon know how can I change the image of a toolbar button depending
> on
> > the state of my application's data ?
> >
> > TIA
> > Ben
> >
> >
> >
>
>
Re: change toolbar image programatically [message #436640 is a reply to message #436578] Fri, 21 May 2004 08:44 Go to previous message
Eclipse UserFriend
That's JFace and/or RCP. Ask on eclipse.platform.

"bjin" <bjin@tensilica.com> wrote in message
news:c8g7q3$6bn$1@eclipse.org...
> Well, your answer is kinda good to me. I want to be able to
programatically
> change one of the toolbar button's icon indicating different state of my
one
> of my data.
>
> It seems like ApplicationWindow owns the toolbars. So, I suppose if I can
> get the ApplicationWindow, then I can get the toolbar to get the icon and
> change it, right ? But, how do I get the ApplicationWindow in the middle
of
> program execution ?
>
> Am I on the right track ?
>
> Thanks,
> Ben
>
>
>
> "Steve Northover" <steve_northover@ca.ibm.com> wrote in message
> news:c8foi6$gjo$1@eclipse.org...
> > Use ToolBar API? Sorry, your question isn't very good so neither is my
> > answer. ;-)
> >
> > "bjin" <bjin@tensilica.com> wrote in message
> > news:c8e75t$phl$2@eclipse.org...
> > > Does anyon know how can I change the image of a toolbar button
depending
> > on
> > > the state of my application's data ?
> > >
> > > TIA
> > > Ben
> > >
> > >
> > >
> >
> >
>
>
Previous Topic:How is it possible to layout shell with CoolBar in?
Next Topic:display stack question
Goto Forum:
  


Current Time: Thu Nov 06 13:52:15 EST 2025

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

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

Back to the top