1 /*
2 * This file is part of XForms.
3 *
4 * XForms is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as
6 * published by the Free Software Foundation; either version 2.1, or
7 * (at your option) any later version.
8 *
9 * XForms is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with XForms; see the file COPYING. If not, write to
16 * the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
17 * MA 02111-1307, USA.
18 */
19
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24
25 #include "include/forms.h"
26
27
28 /***************************************
29 ***************************************/
30
31 int
main(int argc,char * argv[])32 main( int argc,
33 char * argv[ ] )
34 {
35 FL_FORM *simpleform;
36
37 fl_initialize( &argc, argv, "FormDemo", 0, 0 );
38 simpleform = fl_bgn_form( FL_UP_BOX, 230, 160 );
39 fl_add_button( FL_NORMAL_BUTTON, 40, 50, 150, 60, "Push Me" );
40 fl_end_form( );
41
42 fl_show_form( simpleform, FL_PLACE_MOUSE, FL_NOBORDER, "PushMe" );
43
44 fl_do_forms( );
45 fl_hide_form( simpleform );
46 return 0;
47 }
48
49
50 /*
51 * Local variables:
52 * tab-width: 4
53 * indent-tabs-mode: nil
54 * End:
55 */
56