David Lopez wrote: > Hi Folks, > > Is there any way to have FLTK check position boundaries inside an Fl_Scroll > or I have to do it programmatically? > > What I mean is the following: > I am developing a sort of form editor, so the user defines the size of the > form (canvas) and the objects shouldn�t exceed the canvas dimensions when > dragging, and when the user sets coordinates through dialog, and whatever. > > I can wrap the position() and resize () methods for the child objects in > order to do the check, but I would like to know if there is other way to do > it, for example via some hierarchy as with the subwindows, but I know that I > can�t place an Fl_Window inside an Fl_Scroll.
I'm not sure if I understand your question correctly. But the answer is: no, there is no bounds check in FLTK for children within a group (Fl_Group or Fl_Scroll or whatever). You can even place child widgets completely outside of the parent group, but if you do so then redrawing and event delivery doesn't work. Fl_Scroll does this by design - the child widgets are usually in parts outside of the parent's bounds. Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

