> Is this telling me i cannot simply write
>
>    class myClass
>    {
>       public:
>        //var
>        //...
>       void myCallback(Fl_Widget* w, void*);
>    };
>
>    void myClass::myCallback(Fl_Widget* w, void*)
>    {
>       //do callback
>    }
>
>       myClass myobject;
>       callback(myobject.myCallback);
>
> Well i think i just answered my own question clearly enough just
> by writing out that bit of code


In your last code line, you are trying to call a plain old function
called callback, with myobject.myCallback as a parameter, but there
is no plain old function called callback. You have to call a widget's
callback member function to set up the code to be called when there
is an event that might involve that widget.

Maybe this also helps:
http://www.fltk.org/newsgroups.php?gfltk.general+v:31302

Cheers
D.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to