DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2262
Version: 1.3-current





Link: http://www.fltk.org/str.php?L2262
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;

void cb_click(Fl_Button*, void*)
{
   w->label("123");
}

int main(int argc, char **argv)
{
   Fl_Window *main_win = new Fl_Double_Window(435, 105);
   {
      // Fl_Button* o
      Fl_Button* o = new Fl_Button(25, 25, 70, 20, "click me");
      o->callback((Fl_Callback*)cb_click);
   }

   // Fl_Output* w
   w = new Fl_Output(215, 25, 70, 30, "some label");

   main_win->end();
   main_win->show();
   return Fl::run();
}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to