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.

41 lines
1.2KB

  1. # data file for the Fltk User Interface Designer (fluid)
  2. version 1.00
  3. header_name {.h}
  4. code_name {.cxx}
  5. gridx 10
  6. gridy 10
  7. snap 3
  8. Function {} {open
  9. } {
  10. Fl_Window {} {open
  11. xywh {143 188 318 443} resizable visible
  12. } {
  13. Fl_Slider control {
  14. label {move
  15. this}
  16. callback {fast->value(o->value());
  17. if (!Fl::pushed()) slow->value(o->value());}
  18. xywh {90 200 30 200}
  19. code0 {o->when(FL_WHEN_CHANGED|FL_WHEN_RELEASE|FL_WHEN_NOT_CHANGED);}
  20. }
  21. Fl_Slider fast {
  22. label {fast
  23. redraw} selected
  24. xywh {140 200 30 200}
  25. code0 {o->set_output();}
  26. }
  27. Fl_Slider slow {
  28. label {slow
  29. redraw} selected
  30. xywh {190 200 30 200}
  31. code0 {o->set_output();}
  32. }
  33. Fl_Box {} {
  34. label {The left slider has changed( FL_WHEN_CHANGED | FL_WHEN_RELEASE | FL_WHEN_NOT_CHANGED) so it produces a callback on both drag and release mouse events.
  35. The middle slider (representing a widget with low overhead) is changed on every mouse movement.
  36. The right slider (representing a widget with high overhead) is only updated when the mouse is released, by checking if Fl::pushed() is zero.}
  37. xywh {10 10 300 180} box DOWN_BOX color 53 selection_color 47 labelfont 4 labelsize 12 align 148
  38. }
  39. }
  40. }