Mouse Events and Win32Lib
- Posted by David Cuny <dcuny at LANSET.COM> Nov 20, 1998
- 462 views
[Win32Lib Update] I've made too many changes to Win32Lib to confidantly post an update; I'll send it to Robert after I get a chance to hammer on it a bit. [Mouse Events] I'm in the process of adding more mouse events to Win32Lib. At this point, I'm contemplating taking a different approach than VB, and creating the following mouse event trap: onMouseButton( event, button, x, y, flags ) Possible values are: Events: MOUSE_MOVE BUTTON_DOWN BUTTON_UP DOUBLE_CLICK Buttons: LEFT_BUTTON RIGHT_BUTTON MIDDLE_BUTTON Flags: SHIFT_FLAG CTRL_FLAG The following code would be impacted: onDoubleClick eliminated onRightClick eliminated onClick {x,y} dropped as parameters If there is really a lot of overhead associated with polling the routine on each mouse move, I could always add a mouseEvents() type routine to ignore certain events. Comments? -- David Cuny