| [ Return to Bugs & Features | Roadmap 2.0 | SVN ⇄ GIT ]
STR #1711
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Documentation |
Summary: | FL_RELEASE event not sent |
Version: | 2.0-current |
Created By: | streetwind |
Assigned To: | matt |
Fix Version: | None |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | streetwind 20:18 Jun 18, 2007 |
| I am FLTK user for Windows platform.
The problem is ... When the mouse is pressed, PUSH event comes in. But the mouse button is released, RELEASE event never comes in at Windows OS. (XP) (Also I've never seen DRAG event come.)
Now I am working on some graphical editor. The feature(button release event) is a must. (for some polygon editing, object dragging).
I think button pushing event and button releasing event are pairs. Now when you press a mouse, just you get PUSH event and that's all. I guess it is a big problem when you make some graphical contents editing tools. (2d, 3d modeler or something)
I don't know if this happens at Windows only or even don't know it is a bug or spec. Because I've seen some thread in the forum that says DRAG event changes MOVE event. (It was 2-year ago thread) But the problem is not fixed yet. (What are those DRAG and RELEASE event for? I've really never seen those events come into Widget::handle() method)
Now I know how to support draging feature. (using MOVE and event_state() together) But after looking into some code, I haven't found any good method for button releasing.
At least, please let me know that is a bug or spec.
Thank you for making some good library... | |
|
#2 | matt 07:45 Jun 19, 2007 |
| When you receive an FL_PUSH event, you must return "1" from the handle function to tell FLTK that you are interested in FL_DRAG and FL_RELEASE. If you return 0, FLTK will try to resend the event to whatever other widget may be interested, and if no widget::handle returns 1, it will simply swallow all FL_DRAG and FL_RELASE events.
Please send a short note if this fixes your problem. | |
|
#3 | streetwind 18:29 Jun 19, 2007 |
| Well, Thank you. It worked. I'll appreciate that. | |
[ Return to Bugs & Features ]
|
| |