21 |
|
|
22 |
|
|
23 |
/* A demo of the forms library using light buttons for |
/* A demo of the forms library using light buttons for |
24 |
radio buttons and input fields. |
radio buttons and input fields. |
25 |
*/ |
*/ |
26 |
|
|
27 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
30 |
#include <stdlib.h> |
#include <stdlib.h> |
31 |
#include "include/forms.h" |
#include "include/forms.h" |
32 |
|
|
33 |
|
|
34 |
FL_FORM *form; |
FL_FORM *form; |
35 |
FL_OBJECT *but; |
FL_OBJECT *but; |
36 |
|
|
82 |
while (1) |
while (1) |
83 |
{ |
{ |
84 |
do obj = fl_do_forms(); while (obj != but); |
do obj = fl_do_forms(); while (obj != but); |
85 |
if (fl_show_question("Do you really want to Quit?",0)) |
if (fl_show_question("Do you really want to Quit?",0)) |
86 |
{ |
{ |
87 |
fl_finish(); |
fl_finish(); |
88 |
exit(0); |
exit(0); |