From 4047f3dba717658cb9e06ddb0100675a656bc13b Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Tue, 16 Dec 2008 20:11:04 +0000 Subject: Sorted buttons order as they appear in fluid, changed the 'same shortcuts A1 and A2 as it is more confusing than helping in finding bugs for this test case. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6586 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/radio.fl | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'test') 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);} - } } } -- cgit v1.2.3