Add copyright notice
[forms.git] / test / x11_ui.C
blob9be6e3eebb21acbdc44fbb06713ed896ec4aa954
2  /*
3   *   Copyright (C) 2007, Harbour, All rights reserved.
4   */
6 #include <FL/Fl.H>
7 #include <FL/Fl_Window.H>
8 #include <FL/Fl_Box.H>
9 #include <demo.H>
11 // you may insert here make_windows() from fltk for ex.
13 void x11_ui::init()
15   // cut & paste hello.cxx from fltk-1.1.x
16   Fl_Window *window = new Fl_Window(300, 180, F_App::argv(0));
17   Fl_Box *box;
18   if (F_App::argc() > 1)
19     box = new Fl_Box(FL_UP_BOX, 20, 40, 260, 100, F_App::name());
20   else
21     box = new Fl_Box(FL_UP_BOX, 20, 40, 260, 100, "Hello, World!");
22   box->labelfont(FL_BOLD + FL_ITALIC);
23   box->labelsize(33);
24   box->labeltype(FL_SHADOW_LABEL);
25   window->end();
26   window->show();