Making it a function worked. I put it in a .h file and then just called
ManualMode2(); from the callback. Here is the code in case anyone runs into
the same prob.
void ManualMode2()
{
Fl_Double_Window* w;
{ Fl_Double_Window* o = new Fl_Double_Window(252, 110);
w = o;
{ Fl_Button* o = new Fl_Button(25, 25, 135, 40, "MAIN MENU");
o->color(FL_BACKGROUND2_COLOR);
o->labelcolor((Fl_Color)1);
}
o->end();
}
// w->show(argc, argv);
w->show();
//return Fl::run();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk