>
>       Hope that helps.

Thank you, it does. Like it. Im currently trying to put it into my application.
I have two classes for the UI part now, one for the window and one 
"Prodatum_Widget" Calass that is what you called Midi_UI

class Prodatum_Widget
{
    Fl_Slider *slider;
    Fl_Spinner *spinner;
    // ...
public:
    void InitSlider(Fl_Slider*);
    void InitSpinner(Fl_Spinner*);
    // ...
    void SetValue(float);
    float GetValue(void);
};

class Prodatum_UI
{
public:
    Prodatum_UI();
    void show();
    Prodatum_Widget *widget_array[4]; // here they are :)
};


class Prodatum_Widget is implemented like your example (only a few typos 
changed :)
However, when i do something like this:

  ui->widget_array[id]->Set_Value(unibble(value[0], value[1]));

where ui is an Prodatum_UI object, i get:

  error: ‘class Prodatum_Widget’ has no member named ‘Set_Value’

This error is some C++ weirdness i don't understand. Of course it has this 
member.. :P
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to