[How to] SWT -> Listeners for MenuItem [message #456352] |
Tue, 31 May 2005 19:24 |
Eclipse User |
|
|
|
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 #456377 is a reply to message #456364] |
Wed, 01 June 2005 20:51 |
Eclipse User |
|
|
|
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 #456699 is a reply to message #456646] |
Tue, 07 June 2005 09:10 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02029 seconds