Hi
It has been a while since I have used XForms, but here
is how I solved the callback problem using 0.75
void object_event_handler( FL_OBJECT* ob, long event )
{
((Object*)ob->u_vdata)->eventHandler( event );
}
// each constructor needs to initialize u_vdata
CheckButton::CheckButton( int type, int x, int y, int w, int h,
char* label, long event )
{
obj = fl_add_checkbutton( type, x, y, w, h, label );
obj->u_vdata = (void*)this;
fl_set_object_callback( obj, object_event_handler, event );
}
For more details see my web page.
http://pneuma.phys.ualberta.ca/~burris/xforms/xforms.html
Bill Burris
-- <http://pneuma.phys.ualberta.ca/~burris/> </cgi-bin/exit-to?http://www.comcept.ab.ca/spider/>_________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html Xforms Home Page: http://bragg.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/