[ Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File ]
|Status:||4 - Pending|
|Priority:||1 - Request for Enhancement, e.g. asking for a feature|
|Scope:||3 - Applies to all machines and operating systems|
|Summary:||Support for class member callbacks.|
Trouble Report Files:
[ Post File ]
Trouble Report Comments:
[ Post Text ]
13:18 Sep 16, 2003
|The ability to use non-static class methods as callbacks would be a very useful addition to FLTK v2.0, IMHO. |
Please see attached code.
13:34 Sep 16, 2003
|Err, I was a little quick on the submit button in the original post... |
The code in the MemberCB_Sample.zip file contains sample code using a class member function callback. To facilitate the member callback, it also contains small modifications to the latest Widget.h and Fl_Widget.cxx files from FLTK v2.0 (CVS). Search for the "_NO_CLASS_CALLBACK" preprocessor def.
It has been tested with the MSVC v7.1 and Watcom v11.0b on Win32 and g++ v3.2.2 on RedHat Linux v9.0 (kernel v2.4.20-20.9).
07:11 Sep 23, 2003
|This has also been tested with the Intel v7.1 compiler on Win32. ||
16:19 Mar 12, 2005
[ Return to Bugs & Features | Post Text | Post File ]