On 20/10/14 15:35, hermann meyer wrote:
I never use FLTK, but I guess that is something essential.
You need to declare your control widgets in the class KisWidget, not in the constructor of the class.

in
class KisWidget write

Fl_Slider* ReleaseButton;

in the constructor 
Widget::Widget(void* parentXwindow) write

ReleaseButton
= new Fl_Slider( 220,5,35,100,"Rel");

Then you could access the widget pointers in
kis_gui.cpp  like that
static void port_event(

self->widget->ReleaseButton->value(value);

ReleasButton is a NTK widget, not your class KisWidget.

(Just pseudo code here, it isn't exact syntax)
Still, I never use FLTK, I just wonder if you didn't need a deconstructor to delete the widgets instances which have created with "new" ( Like you need to do in GTKmm)?
Did FLTK manage the memory? 
It works :). AND I got one step further understanding how oop works.

Thank you very much to all of you guys.

--Philippe


_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

-- 
Philippe "xaccrocheur" Coatmeur
http://bitbucket.org/xaccrocheur / https://github.com/xaccrocheur
http://opensimo.org/play/