diff options
| author | Bill Spitzak <spitzak@gmail.com> | 1999-05-06 06:21:53 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 1999-05-06 06:21:53 +0000 |
| commit | 7becff3f2c7f5e5037a99b8cfe944eaaa2c7fd13 (patch) | |
| tree | 2cfbc32ee3ae62a2241e59340f1a95e4a0e7dbd0 /test/fast_slow.fl | |
| parent | c025851f8327bf8856f9e121571dd1647f68fb7f (diff) | |
Redid Carl's fix to fast_slow (making it be output widgets rather
than inactive). Not sure why his patch did not take...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/fast_slow.fl')
| -rw-r--r-- | test/fast_slow.fl | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/test/fast_slow.fl b/test/fast_slow.fl index 71ee657d1..63e3762b3 100644 --- a/test/fast_slow.fl +++ b/test/fast_slow.fl @@ -1,5 +1,7 @@ # data file for the Fltk User Interface Designer (fluid) -version 0.99 +version 1.00 +header_name {.h} +code_name {.cxx} gridx 10 gridy 10 snap 3 @@ -18,19 +20,21 @@ if (!Fl::pushed()) slow->value(o->value());} } Fl_Slider fast { label {fast -redraw} - xywh {140 200 30 200} deactivate +redraw} selected + xywh {140 200 30 200} + code0 {o->set_output();} } Fl_Slider slow { label {slow -redraw} - xywh {190 200 30 200} deactivate +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.} selected - xywh {10 10 300 180} box DOWN_BOX color {53 47} labelfont 4 labelsize 12 align 148 +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 } } } |
