Hi Greg, sure, I'm interested as well...

I'm using fltk 1.1.9, and here is the result for VC2008 v9.0.21022.8

This works fine:
         ((Fl_Valuator *)scrollH_)->value(-document_->scrollH());

This
         scrollH_->value((double)-document_->scrollH());
as well as
         scrollH_->value(-document_->scrollH());
yield:
[
Error   1       error C2661: 'Fl_Scrollbar::value' : no overloaded function 
takes 1 arguments       d:\projects\pad\src\_grapharea.cpp      98      project
]


Greg Ercolano wrote:
>> however my compiler (VS2005 and VS2008) will not agree to call 
>> 'Fl_Scrollbar->value(x);' unless I cast the scroll bar into an 
>> Fl_Valuator.
> 
>       Just curious; does it help if the value() you specify
>       is a double? ie:
> 
> scrollbar->value((double)val);
> 
> 
>       I'm running Microsoft VS Express 2005 (V8.0.50727.42) with
>       fltk 1.3.x current and getting no errors when compiling the
>       code I pasted; just re-verified this to make sure.
> 
> 
>       I know you have a solution, but I'd like to look into this.
>       I'm puzzled why the compiler would not automatically use
>       the Fl_Valuator version of value() automatically.
> 
>       Can you include your build log here that shows the compile
>       line flags and errors with the code I posted? I'd like to
>       see the error and build flags.
> 
>       Also, which precise version of FLTK and VS are you using
>       for your build?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to