Re: Getting FL_ENTER/LEAVE with Mouse down!

Steve Lamont (spl@szechuan.ucsd.edu)
Mon, 21 Apr 97 09:11:23 PDT

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> How do I go about getting FL_ENTER and FL_LEAVE events on objects
> *with* the mouse button pressed or not.

I'm not sure you can directly. You may need to trace motion events
and check the current mouse position against the geometry of your
objects. You wouldn't need to search your entire list of objects if
you kept them in a positionally sorted list and kept track of the last
object the cursor was in.

I've thought about doing something similiar to this to kluge a menu
bar that operates more like the Maggotbox (or most other Menu bars,
for that matter) but have not gotten around to implementing it.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/