Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Capture a mouseHover on disable checkBox
Capture a mouseHover on disable checkBox [message #496798] Wed, 11 November 2009 12:08 Go to next message
El_justiciero  is currently offline El_justiciero Friend
Messages: 13
Registered: July 2009
Junior Member
Hello,

We are developing a wizard´s page, into this page there are check boxes: checkBox = new Button(composite, SWT.CHECK)

Each one are using: checkBox.addListener(SWT.MouseHover, this) in order to listen an event, it is captured with the method handleEvent.

We would like to know if there are some possibilities to capture a mouseHover when the check box is disabled: checkBox.setEnabled(false)

Thank you in advance.
Re: Capture a mouseHover on disable checkBox [message #496861 is a reply to message #496798] Wed, 11 November 2009 15:13 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi,

There isn't a good way to do this. I did a quick experiment where I put an
ON_TOP Shell with setAlpha(0) over top of the checkbox, but it did not
receive MouseHover events on Vista (this is probably a bug since it did work
on Cocoa). This approach has other problems too though, as some OSs will
not support transparent shells, in which case the ON_TOP shell will just
hide the checkbox. I would suggest not trying to do anything when a
disabled control is hovered since it goes against UI convention on all
platforms for disabled controls to trigger anything, and working around it
well is likely more work than is justified.

Grant


"El_justiciero" <j_r_conejo@hotmail.com> wrote in message
news:hde9fu$98u$1@build.eclipse.org...
> Hello,
>
> We are developing a wizard
Previous Topic:[GTK][ubuntu 9.10] can't render alpha state on Shell.
Next Topic:Set an image for a menu item
Goto Forum:
  


Current Time: Sun Jul 12 06:16:54 GMT 2020

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

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

Back to the top