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

Philippe Coatmeur philcm at gnu.org
Tue Oct 21 09:56:59 UTC 2014


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 at 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/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20141021/7bd55062/attachment.html>


More information about the Linux-audio-dev mailing list