1# data file for the Fltk User Interface Designer (fluid) 2version 1.0300 3header_name {.h} 4code_name {.cxx} 5Function {button_cb(Fl_Button *b, void *)} { 6 comment {Buttons test callback} open private return_type void 7} { 8 code {char msg[256]; 9sprintf(msg, "Label: '%s'\\nValue: %d", b->label(),b->value()); 10cb_info->value(msg); 11cb_info->redraw(); 12printf("%s\\n",msg);} {selected 13 } 14} 15 16Function {} {open 17} { 18 Fl_Window {} {open 19 xywh {463 67 369 214} type Double visible 20 } { 21 Fl_Button {} { 22 label {&Fl_Button A1} 23 tooltip {Normal button (callback called only when released)} xywh {20 10 160 30} labelsize 13 24 code0 {o->callback((Fl_Callback*) button_cb);} 25 } 26 Fl_Button {} { 27 label {Fl_Button &A2} 28 tooltip {Normal button with callback called when changed (push and released)} xywh {20 44 160 30} labelsize 13 when 1 29 code0 {o->callback((Fl_Callback*) button_cb);} 30 } 31 Fl_Return_Button {} { 32 label {Fl_Return_Button &B} 33 tooltip {Button with Return key as default shortcut} xywh {20 78 160 30} labelsize 13 34 code0 {o->callback((Fl_Callback*) button_cb);} 35 } 36 Fl_Light_Button {} { 37 label {Fl_Light_Button &C} 38 tooltip {Button with toggle state and a visual indicator of the current state} xywh {20 113 160 30} labelsize 13 39 code0 {o->callback((Fl_Callback*) button_cb);} 40 } 41 Fl_Check_Button {} { 42 label {Fl_Check_Button &D} 43 tooltip {Check button with toggle state} xywh {20 148 160 30} down_box DOWN_BOX labelsize 13 44 code0 {o->callback((Fl_Callback*) button_cb);} 45 } 46 Fl_Round_Button {} { 47 label {Fl_Round_Button &E} 48 tooltip {Round Button with toggle state} xywh {20 178 160 30} down_box ROUND_DOWN_BOX labelsize 13 49 code0 {o->callback((Fl_Callback*) button_cb);} 50 } 51 Fl_Group {} {open 52 xywh {190 10 70 120} box THIN_UP_FRAME 53 } { 54 Fl_Round_Button {} { 55 label {radio &1} 56 tooltip {Radio button, only one button is set at a time, in the corresponding group.} xywh {190 10 70 30} type Radio down_box ROUND_DOWN_BOX 57 code0 {o->callback((Fl_Callback*) button_cb);} 58 } 59 Fl_Round_Button {} { 60 label {radio &2} 61 tooltip {Radio button, only one button is set at a time, in the corresponding group.} xywh {190 40 70 30} type Radio down_box ROUND_DOWN_BOX 62 code0 {o->callback((Fl_Callback*) button_cb);} 63 } 64 Fl_Round_Button {} { 65 label {radio &3} 66 tooltip {Radio button, only one button is set at a time, in the corresponding group.} xywh {190 70 70 30} type Radio down_box ROUND_DOWN_BOX 67 code0 {o->callback((Fl_Callback*) button_cb);} 68 } 69 Fl_Round_Button {} { 70 label {radio &4} 71 tooltip {Radio button, only one button is set at a time, in the corresponding group.} xywh {190 100 70 30} type Radio down_box ROUND_DOWN_BOX 72 code0 {o->callback((Fl_Callback*) button_cb);} 73 } 74 } 75 Fl_Group {} {open 76 xywh {270 10 90 120} box THIN_UP_BOX 77 } { 78 Fl_Button {} { 79 label radio 80 tooltip {Custom look button, only one button is set at a time, in the corresponding group.} xywh {280 20 20 20} type Radio selection_color 1 align 8 81 } 82 Fl_Button {} { 83 label radio 84 tooltip {Custom look button, only one button is set at a time, in the corresponding group.} xywh {280 45 20 20} type Radio selection_color 1 align 8 85 } 86 Fl_Button {} { 87 label radio 88 tooltip {Custom look button, only one button is set at a time, in the corresponding group.} xywh {280 70 20 20} type Radio selection_color 1 align 8 89 } 90 Fl_Button {} { 91 label radio 92 tooltip {Custom look button, only one button is set at a time, in the corresponding group.} xywh {280 95 20 20} type Radio selection_color 1 align 8 93 } 94 } 95 Fl_Output cb_info { 96 label {callback:} 97 xywh {190 148 170 62} type Multiline align 133 textsize 12 98 } 99 } 100} 101