> awesome. resize() was in fact the problem.
>
> If I comment out the check, the tooltips and menus are arranged were they are 
> supposed to be.
>
> Is there a better way to debounce the resize call? X seems to send a flurry 
> of those messages.
>
> E.G. manually resizing the window in main after construction?
>

I can't really say, because I don't know what you're trying
to accomplish.  In general, you would implement a resize
method in a derived class in order to implement some kind of
custom resizing behavior.  That is fine, but of course you have to
be aware that "resize" includes "reposition" and write your
implementation accordingly.  OTOH, if all you're trying to do
is lay out some widgets in a window, why not do it once in
your constructor (or something called from your constructor),
and let fltk take care of subsequent resizing?

Regards,
Stan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to