DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2264
Version: 1.3-current
Link: http://www.fltk.org/str.php?L2264
Version: 1.3-current
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Output.H>
Fl_Output* w;
Fl_Input* e;
Fl_Window *main_win;
void cb_click(Fl_Button*, void*)
{
w->label(e->value());
}
int main(int argc, char **argv)
{
{ main_win = new Fl_Double_Window(330, 165);
main_win->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
main_win->size_range(330, 165);
{ Fl_Button* o = new Fl_Button(25, 25, 70, 20, "click me");
o->callback((Fl_Callback*)cb_click);
} // Fl_Button* o
{ e = new Fl_Input(190, 25, 105, 30, "input:");
} // Fl_Input* e
{ w = new Fl_Output(215, 95, 70, 30, "some label");
} // Fl_Output* w
main_win->end();
} // Fl_Double_Window* main_win
main_win->show();
return Fl::run();
}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs