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 ]

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
Summary:fluid2 doesn't handle static class member callback functions properly
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 top right image
#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
so maybe something based on my patch there can be applied here.
bottom left image   bottom right image

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


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