On 01.11.2010, at 20:27, Greg Ercolano wrote:

> Boris Mayer-St-Onge wrote:
>> With FLTK 1.1.10 or one of 1.3.x snapshot (7677), I can't change the 
>> position of widgets Fl_Input and Fl_Output. 
> 
>       You can, you just have to beware of the name collision,
>       and code accordingly.
> 
>       We should have some clear docs that describe the collision,
>       and how to work around it, at very least.
> 
>> If we look into Fl_Widget and Fl_Input_, we can see that 
>> Fl_Widget::position(X,Y) is a shortcut to resize(X,Y,w(),h()) but in 
>> Fl_Input_, the function position(X,Y) is redefined and is more complicated.
> 
>       Yes, there's a name collision for position();
>       Fl_Input_::position() sets cursor position/text selection,
>       Fl_Widget::position() sets the widget's X/Y position.
> 
>       Definitely unfortunate API planning ;)

I would like to change the API for Fl_Input. I have not found a good name yet. 
Any suggestions welcome. We did the exact same thing for Fl_Scroll which also 
overrode position(int, int)

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to