You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
3.9KB

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