mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 13:05:35 +08:00
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
This commit is contained in:
+10
-8
@@ -8,7 +8,9 @@ Function {button_cb(Fl_Button *b, void *)} {
|
|||||||
code {char msg[256];
|
code {char msg[256];
|
||||||
sprintf(msg, "Label: '%s'\\nValue: %d", b->label(),b->value());
|
sprintf(msg, "Label: '%s'\\nValue: %d", b->label(),b->value());
|
||||||
cb_info->value(msg);
|
cb_info->value(msg);
|
||||||
cb_info->redraw();} {}
|
cb_info->redraw();
|
||||||
|
printf("%s\\n",msg);} {selected
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Function {} {open
|
Function {} {open
|
||||||
@@ -17,10 +19,15 @@ Function {} {open
|
|||||||
xywh {463 67 369 214} type Double visible
|
xywh {463 67 369 214} type Double visible
|
||||||
} {
|
} {
|
||||||
Fl_Button {} {
|
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
|
tooltip {Normal button (callback called only when released)} xywh {20 10 160 30} labelsize 13
|
||||||
code0 {o->callback((Fl_Callback*) button_cb);}
|
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 {} {
|
Fl_Return_Button {} {
|
||||||
label {Fl_Return_Button &B}
|
label {Fl_Return_Button &B}
|
||||||
tooltip {Button with Return key as default shortcut} xywh {20 78 160 30} labelsize 13
|
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 {
|
Fl_Output cb_info {
|
||||||
label {callback:} selected
|
label {callback:}
|
||||||
xywh {190 148 170 62} type Multiline align 133 textsize 12
|
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);}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user