STR #171

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 #171

Application:FLTK Library
Status:4 - Pending
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:Support for class member callbacks.
Created By:davejf.frontiernet
Assigned To:dejan
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size top right image
#1 davejf.frontiernet
13:19 Sep 16, 2003
bottom left image   bottom right image

Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
#1 davejf.frontiernet
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.
#2 davejf.frontiernet
13:34 Sep 16, 2003
Err, I was a little quick on the submit button in the original post...

The code in the 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).
#3 davejf.frontiernet
07:11 Sep 23, 2003
This has also been tested with the Intel v7.1 compiler on Win32.  
#4 mike
16:19 Mar 12, 2005

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