git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4650 ea41ed52-d2ee-0310-a9c1-e6b18d33e121

This commit is contained in:
Matthias Melcher 2005-11-18 10:08:13 +00:00
parent 258c3e81a4
commit 2a4b713497

View File

@ -26,29 +26,20 @@
// //
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/Fl_Double_Window.H> #include <FL/Fl_Window.H>
#include <FL/Fl_Button.H> #include <FL/Fl_Box.H>
#include <stdlib.h>
void WinQuit_CB(Fl_Widget*, void*) {
exit(0);
}
int main(int argc, char **argv) { int main(int argc, char **argv) {
Fl_Double_Window *window; Fl_Window *window = new Fl_Window(300,180);
{ Fl_Double_Window *o = new Fl_Double_Window(347, 263); Fl_Box *box = new Fl_Box(FL_UP_BOX,20,40,260,100,"Hello, World!");
window = o; box->labelfont(FL_BOLD+FL_ITALIC);
{ Fl_Button *o = new Fl_Button(25, 25, 64, 20, "button"); box->labelsize(36);
o->callback(WinQuit_CB); box->labeltype(FL_SHADOW_LABEL);
} window->end();
o->end();
}
window->show(argc, argv); window->show(argc, argv);
return Fl::run(); return Fl::run();
} }
// //
// End of "$Id$". // End of "$Id$".
// //