fltk/test/fast_slow.fl
Albrecht Schlosser 00dd296ff2 Bump version numbers for next minor release: FLTK 1.4.0.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-30 00:56:42 +00:00

38 lines
1.2 KiB
Plaintext

# data file for the Fltk User Interface Designer (fluid)
version 1.0400
header_name {.h}
code_name {.cxx}
Function {} {open
} {
Fl_Window {} {open
xywh {397 202 318 443} type Double hide resizable
} {
Fl_Slider control {
label {move
this}
callback {fast->value(o->value());
if (!Fl::pushed()) slow->value(o->value());}
xywh {90 200 30 200}
code0 {o->when(FL_WHEN_CHANGED|FL_WHEN_RELEASE|FL_WHEN_NOT_CHANGED);}
}
Fl_Slider fast {
label {fast
redraw} selected
xywh {140 200 30 200}
code0 {o->set_output();}
}
Fl_Slider slow {
label {slow
redraw} selected
xywh {190 200 30 200}
code0 {o->set_output();}
}
Fl_Box {} {
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.
The middle slider (representing a widget with low overhead) is changed on every mouse movement.
The right slider (representing a widget with high overhead) is only updated when the mouse is released, by checking if Fl::pushed() is zero.}
xywh {10 10 300 180} box DOWN_BOX color 53 selection_color 47 labelfont 4 labelsize 12 align 148
}
}
}