> > [..]
>> and how could I do that with show() and hide()???
>> I mean the Fl_Box parameter transfer problem.
Something like this. I don't mean that you should use
global variables.. you'd want to wrap this up in a class
somewhere.
Fl_Box* bx1;
Fl_Box* bx2;
Fl_Box* bx3;
> >
> > void setrowheader_cb(Fl_Widget* w, void*)
> > {
> > Fl_Check_Button* flcb = dynamic_cast<Fl_Check_Button*>(w);
> > Fl_Window* win = static_cast<Fl_Window*>(p);
> > if ( flcb->value() == 1 ) {
> > flcb->labelcolor(FL_RED);
> > flcb->label("Label&Scale");
bx1->show();
bx2->show();
bx3->show();
> >
> > }
> > else {
> > flcb->labelcolor(FL_BLACK);
> > flcb->label("No Label&Scale");
bx1->hide();
bx2->hide();
bx3->hide();
> > }
> > }
> >
> > int main()
> > {
> > Fl_Window* w = new Fl_Window( ... )
> > Fl_Check_Button* flcb = new Fl_Check_Button( ... )
bx1 = new Fl_Box(0, 20, 1000, 20, " first ");
bx1->hide();
> > bx2 = new Fl_Box(0, 640, 1000, 20, " second ");
bx2->hide();
> > bx3 = new Fl_Box(0, 660, 1000, 20, " third ");
bx3->hide();
> > w->end()
> > flcb->callback(setrowheader_cb);
> >
> > /// etc
> >
>
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk