FLTK logo

STR #1984

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.