Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » MenuItem "unarm" event?
MenuItem "unarm" event? [message #439250] Thu, 08 July 2004 18:00 Go to next message
L.M. Fridael is currently offline L.M. FridaelFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,


I want to show a short description in my application's statusbar
whenever the mouse pointer is moved over a MenuItem. This is pretty
common in Windows applications. (Explorer does this for instance.)

I've attached an ArmListener to detect that the mouse pointer is moved
inside the MenuItem's area, but I can't find a corresponding "unarm"
event in the API to detect that the pointer is moved off the MenuItem. I
need this to reset the statusbar back to its default state.

Is there any way to achieve what I want?


Thanks
-Laurens
Re: MenuItem "unarm" event? [message #439428 is a reply to message #439250] Mon, 12 July 2004 17:16 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
There isn't a disarm event. Here is some code that does what you want.

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/snippits/snippet152.html

"Laurens" <fridael@users.sourceforge.net> wrote in message
news:cck22a$hrc$1@eclipse.org...
> Hi,
>
>
> I want to show a short description in my application's statusbar
> whenever the mouse pointer is moved over a MenuItem. This is pretty
> common in Windows applications. (Explorer does this for instance.)
>
> I've attached an ArmListener to detect that the mouse pointer is moved
> inside the MenuItem's area, but I can't find a corresponding "unarm"
> event in the API to detect that the pointer is moved off the MenuItem. I
> need this to reset the statusbar back to its default state.
>
> Is there any way to achieve what I want?
>
>
> Thanks
> -Laurens
Previous Topic:Shell context menu problem
Next Topic:Programmatically generate images with ImageData
Goto Forum:
  


Current Time: Tue Apr 23 06:14:42 GMT 2024

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

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

Back to the top