FLTK logo

STR #1473

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 | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #1473

Application:FLTK Library
Status:5 - New
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:3 - Applies to all machines and operating systems
Subsystem:Unassigned
Summary:fluid2 doesn't handle static class member callback functions properly
Version:2.0-current
Created By:kispaljr
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 kispaljr
11:52 Oct 17, 2006
If you add the name of a static class member function as the callback in fluid2 (like: ClassA::button_cb) it generates 'extern' lines for it in the header file (like: extern void ClassA::button_cb(fltk::Button*, void*)), which is syntactically wrong.

It would be nice to add a checkbox to the dialog when you set the callback to be able to indicate the fact that no extern decalration is needed for the callback function.
(and you set the necessary include files in the 'Extra code' section.)
 
 
#2 engelsman
01:40 Jul 20, 2008
This looks like FLTK1 STR http://www.fltk.org/str.php?L2011
so maybe something based on my patch there can be applied here.
 
     

Return to Bugs & Features | Post Text | Post File ]

 
 

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'.