Re: how to get mouse focus changes in widget_draw? [message #63469] |
Sun, 09 November 2008 12:18 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
justspam03@yahoo.de writes:
> is there a way in IDL to be informed about the mouse leaving a draw
> widget?
> To get a notification on mouse_enter events in a widget_draw is
> implicitly given via mouse motion events.
> But how do I know the mouse has left the window?
> I know about the onFocus event of widget_base - but that's for
> keyboard events only...
You can set the TRACKING_EVENTS keyword for any widget,
and then IDL is suppose to generate events when the
cursor enters and leaves the outlines of the widget.
In practice, it helps if you move the cursor
s--l--o--w--l--y. :-(
That is to say, I wouldn't bet a whole lot of money on
an application using this functionality. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|