From 2a4b7134970f80d41557f6be45bd76a42a01d9d4 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 18 Nov 2005 10:08:13 +0000 Subject: [PATCH] git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4650 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/hello.cxx | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/test/hello.cxx b/test/hello.cxx index 727e4f003..178d52934 100644 --- a/test/hello.cxx +++ b/test/hello.cxx @@ -26,29 +26,20 @@ // #include -#include -#include - -#include - -void WinQuit_CB(Fl_Widget*, void*) { - exit(0); -} +#include +#include int main(int argc, char **argv) { - Fl_Double_Window *window; - { Fl_Double_Window *o = new Fl_Double_Window(347, 263); - window = o; - { Fl_Button *o = new Fl_Button(25, 25, 64, 20, "button"); - o->callback(WinQuit_CB); - } - o->end(); - } + Fl_Window *window = new Fl_Window(300,180); + Fl_Box *box = new Fl_Box(FL_UP_BOX,20,40,260,100,"Hello, World!"); + box->labelfont(FL_BOLD+FL_ITALIC); + box->labelsize(36); + box->labeltype(FL_SHADOW_LABEL); + window->end(); window->show(argc, argv); return Fl::run(); } - // // End of "$Id$". //