| [ Return to Bugs & Features | SVN ⇄ GIT ]
STR #1984
Application: | FLTK Library |
Duplicate Of: | STR #2532 |
Status: | 1 - Closed w/Resolution |
Priority: | 1 - Request for Enhancement, e.g. asking for a feature |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | provide a hook to override default event delivery |
Version: | 1.4-feature |
Created By: | elaforge |
Assigned To: | AlbrechtS |
Fix Version: | 1.3.0 |
Fix Commit: | 7b832a512e9bc39e39802cfc81ac7de7d32017a4 |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | elaforge 01:14 Jun 17, 2008 |
| Fltk's event delivery scheme is hardcoded in Fl::handle and can't be changed. For example, events delivered directly to focused leaf widgets cannot be intercepted at all.
It would be nice to be able to replace that with my own function so I could customize event delivery, perhaps as simple as logging all events, or as complicated as implementing a completely different event delivery scheme.
This would be easy enough to implement by adding a function to set a handler which is called instead of Fl::handle. | |
|
#2 | AlbrechtS 15:54 Jan 14, 2023 |
| Fixed in Git repository.
Please see also STR 2532: "Patch to make Fl::handle overridable" https://www.fltk.org/str.php?L2532
Added function is Fl::event_dispatch(), see documentation: https://www.fltk.org/doc-1.3/group__fl__events.html#gafc8bd62d8fdacef87c56ed3a22cdcebc | |
[ Return to Bugs & Features ]
|
| |