|
![]() |
Originally posted by N D Fisher:
.., because the button is transparent. The event only fires if I set the button to opaque..
N D Fisher wrote:Hi,
I have an application which has several transparent components, and I want to detect a mouse click on them. Unfortunately, transparent components don't seem to register any mouse events.
So is there any way of detecting a mouse click just on a kind of global basis? Once a click is detected, I can easily tell whether the mouse is inside my component by doing a "component.getBounds().contains(mousex, mousey)". All I really need is to detect the click, and which button it is that's been clicked.
Many thanks
Nick
Michael Dunn wrote:why post a (presumably) SWT solution (SWT.MouseDown) to a 4-year-old Swing problem?