[LAD] Fwd: Re: How can an LV2 plugin UI get the value of a control port from the plugin?
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(
> 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.
> Linux-audio-dev mailing list
> Linux-audio-dev at lists.linuxaudio.org
Philippe "xaccrocheur" Coatmeur
http://bitbucket.org/xaccrocheur / https://github.com/xaccrocheur
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Linux-audio-dev