Re: [LAD] Fwd: Re: How can an LV2 plugin UI get the value of a control port from the plugin?

From: Philippe Coatmeur <philcm@email-addr-hidden>
Date: Tue Oct 21 2014 - 12:56:59 EEST

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 yourclass 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@email-addr-hidden
> http://lists.linuxaudio.org/listinfo/linux-audio-dev

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

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Tue Oct 21 16:15:02 2014

This archive was generated by hypermail 2.1.8 : Tue Oct 21 2014 - 16:15:03 EEST