From 11de032d6da7fa057b48f95beac7fea9bccdb455 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 19 Jun 2006 08:34:19 +0000 Subject: If the value field for scrollbars was not zero, Fluid would generate code that accesses the hidden function Fl_Scrollbar::value(double), causing a compile time error. The fix circumevents the hidden function by calling Fl_Slider::value. It would be better to change the entire Fluid interface to reflect the Scrollbar interface. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/valuators.fl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/valuators.fl b/test/valuators.fl index 5254d05b7..c1f735c48 100644 --- a/test/valuators.fl +++ b/test/valuators.fl @@ -1,5 +1,5 @@ # data file for the Fltk User Interface Designer (fluid) -version 1.0100 +version 1.0107 header_name {.h} code_name {.cxx} Function {callback(Fl_Widget* o, void*)} {open private return_type void @@ -12,7 +12,7 @@ Function {} {open } { Fl_Window {} { label {Valuator classes, showing values for type()} open - xywh {635 288 565 505} color 43 selection_color 43 + xywh {204 225 565 505} type Double color 43 selection_color 43 code0 {\#include } visible } { Fl_Box {} { @@ -165,7 +165,7 @@ Function {} {open } Fl_Value_Output {} { label 0 - callback callback selected + callback callback tooltip {Value Output} xywh {170 460 110 30} labelsize 8 maximum 100 step 0.1 } Fl_Box {} { @@ -175,12 +175,12 @@ Function {} {open Fl_Scrollbar {} { label 0 callback callback - tooltip {Vertical Scrollbar} xywh {395 20 20 105} labelsize 8 align 1 maximum 100 slider_size 0.3 + tooltip {Vertical Scrollbar} xywh {395 20 20 105} labelsize 8 align 1 maximum 100 } Fl_Scrollbar {} { label FL_HORIZONTAL - callback callback - tooltip {Horizontal Scrollbar} xywh {300 65 95 20} type Horizontal labelsize 8 maximum 100 slider_size 0.3 + callback callback selected + tooltip {Horizontal Scrollbar} xywh {300 65 95 20} type Horizontal labelsize 8 maximum 100 value 20 } } } -- cgit v1.2.3