>
> > I am learning v1.3. I inherited a Fl_Widget, and put=20
> > fl_rectf(0, 0, w(), h()) in the virtual draw() method, but=20
> > the rectangle was drawn on the top left of the top level=20
> > window. And moving Fl_Group will not move its children. All=20
> > these are peculiar(compared with Qt, Gtk+, etc.), and I took=20
> > a day to figure this out (not a bug but a feature). Will this=20
> > change in Fltk3?
>
> Historically, fltk-1 has always used window-relative rather than
> parent-relative origins. This often causes confusion, but is easily
> addressed (simply query the x(), y() offsets in your draw method then
> add those on to your positions...)
>
> For fltk-2 the co-ordinate frame was made parent-relative, as that
> seemed the more "normal" choice.
>
> At some point, fltk-3 will offer a choice...
>
>
> SELEX Galileo Ltd
> Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS=
> 14 3EL
> A company registered in England & Wales.  Company no. 02426132
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>
Thank you for the information!
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to