Fltk coordinate behavior is a little peculiar

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
Previous Message ]New Message | Reply ]Next Message ]

Fltk coordinate behavior is a little peculiar Li Ding Jun 09, 2011 top right image
I am learning v1.3. I inherited a Fl_Widget, and put fl_rectf(0, 0, w(), h()) in the virtual draw() method, but the rectangle was drawn on the top left of the top level window. And moving Fl_Group will not move its children. All these are peculiar(compared with Qt, Gtk+, etc.), and I took a day to figure this out (not a bug but a feature). Will this change in Fltk3?
Direct Link to Message ]
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]

Comments are owned by the poster. All other content is copyright 1998-2023 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.