Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [How to] SWT -> Listeners for MenuItem
[How to] SWT -> Listeners for MenuItem [message #456352] Tue, 31 May 2005 19:24 Go to next message
Eclipse UserFriend
Originally posted by: didier.montet.oreka.com

I would like to display a text in a status bar when the mouse cursor is over
a menu item of a menu bar (for example the classic menu "&File" of a bar
menu). I am not satisfied with the arm listener: the user must click onto
the menu item to generate the event. The Menu listener added to the menu
associated with the menu item neither answers the question as it's still
necessary to click the menuitem.
The menu item is displayed in 3D when the mouse cursor is over the menu
item. Which object is responsible for the displaying? Which event is
treated?

Thanks a lot for your help
Re: [How to] SWT -> Listeners for MenuItem [message #456364 is a reply to message #456352] Wed, 01 June 2005 13:22 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
See
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet152.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

I'm not sure what you mean "the user must click onto the menu to generate
the event". Do we have a bug?

"News" <didier.montet@oreka.com> wrote in message
news:d7idv4$4h5$1@news.eclipse.org...
> I would like to display a text in a status bar when the mouse cursor is
over
> a menu item of a menu bar (for example the classic menu "&File" of a bar
> menu). I am not satisfied with the arm listener: the user must click onto
> the menu item to generate the event. The Menu listener added to the menu
> associated with the menu item neither answers the question as it's still
> necessary to click the menuitem.
> The menu item is displayed in 3D when the mouse cursor is over the menu
> item. Which object is responsible for the displaying? Which event is
> treated?
>
> Thanks a lot for your help
>
>
Re: [How to] SWT -> Listeners for MenuItem [message #456377 is a reply to message #456364] Wed, 01 June 2005 20:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: didier.montet.oreka.com

I don't know weither it is a bug or not. I thought the SWT.Arm event was
sent when the mouse cursor was over the menu item. The mechanism doesn't
seem to be so. So I don't know which listener I must add neither which
object will be the right one to listen.
Have you any idea?
Thanks a lot.

> See
>
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet152.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>
> I'm not sure what you mean "the user must click onto the menu to generate
> the event". Do we have a bug?
>
> "News" <didier.montet@oreka.com> wrote in message
> news:d7idv4$4h5$1@news.eclipse.org...
> > I would like to display a text in a status bar when the mouse cursor is
> over
> > a menu item of a menu bar (for example the classic menu "&File" of a bar
> > menu). I am not satisfied with the arm listener: the user must click
onto
> > the menu item to generate the event. The Menu listener added to the menu
> > associated with the menu item neither answers the question as it's still
> > necessary to click the menuitem.
> > The menu item is displayed in 3D when the mouse cursor is over the menu
> > item. Which object is responsible for the displaying? Which event is
> > treated?
> >
> > Thanks a lot for your help
> >
> >
>
>
Re: [How to] SWT -> Listeners for MenuItem [message #456437 is a reply to message #456377] Fri, 03 June 2005 16:25 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Yes, it will be sent when the item is armed. Does the snippet WORKFORYOU?

"Didier Montet" <didier.montet@oreka.com> wrote in message
news:d7l7f9$f5f$1@news.eclipse.org...
> I don't know weither it is a bug or not. I thought the SWT.Arm event was
> sent when the mouse cursor was over the menu item. The mechanism doesn't
> seem to be so. So I don't know which listener I must add neither which
> object will be the right one to listen.
> Have you any idea?
> Thanks a lot.
>
> > See
> >
>
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet152.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
> >
> > I'm not sure what you mean "the user must click onto the menu to
generate
> > the event". Do we have a bug?
> >
> > "News" <didier.montet@oreka.com> wrote in message
> > news:d7idv4$4h5$1@news.eclipse.org...
> > > I would like to display a text in a status bar when the mouse cursor
is
> > over
> > > a menu item of a menu bar (for example the classic menu "&File" of a
bar
> > > menu). I am not satisfied with the arm listener: the user must click
> onto
> > > the menu item to generate the event. The Menu listener added to the
menu
> > > associated with the menu item neither answers the question as it's
still
> > > necessary to click the menuitem.
> > > The menu item is displayed in 3D when the mouse cursor is over the
menu
> > > item. Which object is responsible for the displaying? Which event is
> > > treated?
> > >
> > > Thanks a lot for your help
> > >
> > >
> >
> >
>
>
Re: [How to] SWT -> Listeners for MenuItem [message #456586 is a reply to message #456437] Sat, 04 June 2005 20:18 Go to previous messageGo to next message
Philippe Hordonneau is currently offline Philippe HordonneauFriend
Messages: 3
Registered: July 2009
Junior Member
Thanks Steve to answer.

No the snippet doesn't. I must click on the menu item "File" do see the text
in the status line.
That I want is to see the text of the items of the menu bar as soon as the
mouse cursor is over them, without clicking.
I am using Eclipse 3.0.2 under Windows XP
I have tried a lot of things. Do you have any solution?

"Steve Northover" <steve_northover@ca.ibm.com> a
Re: [How to] SWT -> Listeners for MenuItem [message #456646 is a reply to message #456586] Mon, 06 June 2005 14:05 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
I believe there was a bug fixed for 3.0. Can you upgrade?

"Philippe Hordonneau" <philippe.hordonneau@free.fr> wrote in message
news:d7t2au$cb1$1@news.eclipse.org...
> Thanks Steve to answer.
>
> No the snippet doesn't. I must click on the menu item "File" do see the
text
> in the status line.
> That I want is to see the text of the items of the menu bar as soon as the
> mouse cursor is over them, without clicking.
> I am using Eclipse 3.0.2 under Windows XP
> I have tried a lot of things. Do you have any solution?
>
> "Steve Northover" <steve_northover@ca.ibm.com> a
Re: [How to] SWT -> Listeners for MenuItem [message #456699 is a reply to message #456646] Tue, 07 June 2005 09:10 Go to previous message
Eclipse UserFriend
Originally posted by: didier.montet.oreka.com

Sorry Steve, the comportment is the same with eclipse 3.1RC1 and Windows XP.
In fact the text is well displayed in the status line for each item of the
menu bar after you have clicked once on one of them.
But there is no need to click in the menu bar to see its items displayed in
3D when the mouse cursor is over them.
Which event is trapped to do that? who is the receiver?
Thanks a lot

"Steve Northover" <steve_northover@ca.ibm.com> a
Previous Topic:Problem with Shell.close()
Next Topic:emulating glass pane
Goto Forum:
  


Current Time: Fri Apr 19 16:46:42 GMT 2024

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

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

Back to the top