summaryrefslogtreecommitdiff
path: root/test/radio.fl
diff options
context:
space:
mode:
Diffstat (limited to 'test/radio.fl')
-rw-r--r--test/radio.fl18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/radio.fl b/test/radio.fl
index 8ce48dfb5..e8ec5e6d1 100644
--- a/test/radio.fl
+++ b/test/radio.fl
@@ -8,7 +8,9 @@ Function {button_cb(Fl_Button *b, void *)} {
code {char msg[256];
sprintf(msg, "Label: '%s'\\nValue: %d", b->label(),b->value());
cb_info->value(msg);
-cb_info->redraw();} {}
+cb_info->redraw();
+printf("%s\\n",msg);} {selected
+ }
}
Function {} {open
@@ -17,10 +19,15 @@ Function {} {open
xywh {463 67 369 214} type Double visible
} {
Fl_Button {} {
- label {Fl_Button &A1}
+ label {&Fl_Button A1}
tooltip {Normal button (callback called only when released)} xywh {20 10 160 30} labelsize 13
code0 {o->callback((Fl_Callback*) button_cb);}
}
+ Fl_Button {} {
+ label {Fl_Button &A2}
+ tooltip {Normal button with callback called when changed (push and released)} xywh {20 44 160 30} labelsize 13 when 1
+ code0 {o->callback((Fl_Callback*) button_cb);}
+ }
Fl_Return_Button {} {
label {Fl_Return_Button &B}
tooltip {Button with Return key as default shortcut} xywh {20 78 160 30} labelsize 13
@@ -86,13 +93,8 @@ Function {} {open
}
}
Fl_Output cb_info {
- label {callback:} selected
+ label {callback:}
xywh {190 148 170 62} type Multiline align 133 textsize 12
}
- Fl_Button {} {
- label {Fl_Button &A2}
- tooltip {Normal button with callback called when changed (push and released)} xywh {20 44 160 30} labelsize 13 when 1
- code0 {o->callback((Fl_Callback*) button_cb);}
- }
}
}