> I am not sure what is happening, but the tooltips and popup menu appear to be
> using the screen as it's parent --- seems FLTK is placing the tootip and
> popup using screen coordinates instead of the widgets parent.
>
[..]
I haven't compiled or tested anything, but at a glance I'd
guess that your problem lies here. The first time your
window is shown, it will be resized with the w/h dimensions
you supplied to the ctor, and x/y coordinates selected by
the underlying window manager. Since w/h are unchanged,
your resize will return immediately without laying out the window's
contents relative to x/y.
HTH,
Stan
> /*virtual*/ void
> kvc_app::resize(
[..]
>
> if ((i_x_len == w()) && (i_y_len == h()))
> {
> break;
> }
>
> Fl_Widget::resize(i_x_pos, i_y_pos, i_x_len, i_y_len);
>
> l_x_pos= 0;
> l_y_pos= 0;
> l_x_len= w();
> l_y_len= m_toolbar.h();
>
> m_toolbar.resize(l_x_pos, l_y_pos, l_x_len, l_y_len);
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk