Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Toolbar Buttons and MouseMoveListening
Toolbar Buttons and MouseMoveListening [message #438227] Thu, 17 June 2004 16:47 Go to next message
selim is currently offline selimFriend
Messages: 31
Registered: July 2009
Member
My application is a pluging with a view and a toolbar.
I have an ActionDelegate class implements IViewActionDelegate and already
listens to push event of the buttons on the plugin toolbar.
How can I make ActionDelegate class listens to MouseMove over the toolbar
buttons?
Or, which class must the ActionDelegate class implement to listen to
MouseMove over the toolbar buttons?
In short I need a way to detect when mouse is over the toolbar buttons.
Is this some thing possible?
It does not seem any IAction methods or constants are available to detect
the action type.

Thanks.........
Re: Toolbar Buttons and MouseMoveListening [message #438276 is a reply to message #438227] Fri, 18 June 2004 21:11 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Use ToolItem.getBounds() to see whether the mouse is inside.

"Selim Yucel" <selimyucel@yahoo.com> wrote in message
news:cashud$ppm$1@eclipse.org...
> My application is a pluging with a view and a toolbar.
> I have an ActionDelegate class implements IViewActionDelegate and already
> listens to push event of the buttons on the plugin toolbar.
> How can I make ActionDelegate class listens to MouseMove over the toolbar
> buttons?
> Or, which class must the ActionDelegate class implement to listen to
> MouseMove over the toolbar buttons?
> In short I need a way to detect when mouse is over the toolbar buttons.
> Is this some thing possible?
> It does not seem any IAction methods or constants are available to detect
> the action type.
>
> Thanks.........
>
>
ASKING IN ANOTHER WAY [message #438277 is a reply to message #438227] Fri, 18 June 2004 21:11 Go to previous messageGo to next message
selim is currently offline selimFriend
Messages: 31
Registered: July 2009
Member
Can I set the back ground color of the tool bar of my application which is
a PDE View?

I will deeply appreciate an answer atleast a YES or NO..
Thanks in advance.


Selim Yucel wrote:

> My application is a pluging with a view and a toolbar.
> I have an ActionDelegate class implements IViewActionDelegate and already
> listens to push event of the buttons on the plugin toolbar.
> How can I make ActionDelegate class listens to MouseMove over the toolbar
> buttons?
> Or, which class must the ActionDelegate class implement to listen to
> MouseMove over the toolbar buttons?
> In short I need a way to detect when mouse is over the toolbar buttons.
> Is this some thing possible?
> It does not seem any IAction methods or constants are available to detect
> the action type.

> Thanks.........
Re: Toolbar Buttons and MouseMoveListening [message #438280 is a reply to message #438276] Fri, 18 June 2004 21:30 Go to previous messageGo to next message
selim is currently offline selimFriend
Messages: 31
Registered: July 2009
Member
I am trying to reach the tool bar in my PDE View application by:

IActionBars bars = getViewSite().getActionBars();
IContributionItem[] c=bars.getToolBarManager().getItems();
....
....
and eventually I get four toolbars, but there is no way to register any
listener or so..

How can I reach the tool bar?




Steve Northover wrote:

> Use ToolItem.getBounds() to see whether the mouse is inside.

> "Selim Yucel" <selimyucel@yahoo.com> wrote in message
> news:cashud$ppm$1@eclipse.org...
> > My application is a pluging with a view and a toolbar.
> > I have an ActionDelegate class implements IViewActionDelegate and already
> > listens to push event of the buttons on the plugin toolbar.
> > How can I make ActionDelegate class listens to MouseMove over the toolbar
> > buttons?
> > Or, which class must the ActionDelegate class implement to listen to
> > MouseMove over the toolbar buttons?
> > In short I need a way to detect when mouse is over the toolbar buttons.
> > Is this some thing possible?
> > It does not seem any IAction methods or constants are available to detect
> > the action type.
> >
> > Thanks.........
> >
> >
Re: Toolbar Buttons and MouseMoveListening [message #438281 is a reply to message #438280] Fri, 18 June 2004 21:36 Go to previous messageGo to next message
selim is currently offline selimFriend
Messages: 31
Registered: July 2009
Member
Selim Yucel wrote:
Sorry for the mistake, I use:
Control[] cont=getViewSite().getShell().getChildren();

Not:
> IActionBars bars = getViewSite().getActionBars();
> IContributionItem[] c=bars.getToolBarManager().getItems();




> I am trying to reach the tool bar in my PDE View application by:

> IActionBars bars = getViewSite().getActionBars();
> IContributionItem[] c=bars.getToolBarManager().getItems();
> ....
> ....
> and eventually I get four toolbars, but there is no way to register any
> listener or so..

> How can I reach the tool bar?




> Steve Northover wrote:

> > Use ToolItem.getBounds() to see whether the mouse is inside.

> > "Selim Yucel" <selimyucel@yahoo.com> wrote in message
> > news:cashud$ppm$1@eclipse.org...
> > > My application is a pluging with a view and a toolbar.
> > > I have an ActionDelegate class implements IViewActionDelegate and already
> > > listens to push event of the buttons on the plugin toolbar.
> > > How can I make ActionDelegate class listens to MouseMove over the toolbar
> > > buttons?
> > > Or, which class must the ActionDelegate class implement to listen to
> > > MouseMove over the toolbar buttons?
> > > In short I need a way to detect when mouse is over the toolbar buttons.
> > > Is this some thing possible?
> > > It does not seem any IAction methods or constants are available to detect
> > > the action type.
> > >
> > > Thanks.........
> > >
> > >
Re: ASKING IN ANOTHER WAY [message #438302 is a reply to message #438277] Mon, 21 June 2004 13:06 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Ask this on eclipse.platform. This is the SWT newsgroup. The classes you
are talking about are not part of SWT.

"Selim Yucel" <selimyucel@yahoo.com> wrote in message
news:cavlq8$n97$1@eclipse.org...
> Can I set the back ground color of the tool bar of my application which is
> a PDE View?
>
> I will deeply appreciate an answer atleast a YES or NO..
> Thanks in advance.
>
>
> Selim Yucel wrote:
>
> > My application is a pluging with a view and a toolbar.
> > I have an ActionDelegate class implements IViewActionDelegate and
already
> > listens to push event of the buttons on the plugin toolbar.
> > How can I make ActionDelegate class listens to MouseMove over the
toolbar
> > buttons?
> > Or, which class must the ActionDelegate class implement to listen to
> > MouseMove over the toolbar buttons?
> > In short I need a way to detect when mouse is over the toolbar buttons.
> > Is this some thing possible?
> > It does not seem any IAction methods or constants are available to
detect
> > the action type.
>
> > Thanks.........
>
>
Previous Topic:vertically center text in label
Next Topic:"drawLine" in a eclipse View
Goto Forum:
  


Current Time: Thu Sep 19 22:24:51 GMT 2024

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

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

Back to the top