diff options
| author | Fabien Costantini <fabien@onepost.net> | 2008-12-16 20:11:04 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2008-12-16 20:11:04 +0000 |
| commit | 4047f3dba717658cb9e06ddb0100675a656bc13b (patch) | |
| tree | f571f844560f5048cca3dbce713c4529ba5f74b8 | |
| parent | d592a5fe81612ca362b7457d10496f20d4a1990d (diff) | |
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
| -rw-r--r-- | test/radio.fl | 18 |
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);} - } } } |
