Craig D wrote:
> Got a short example program, with pictures here:
> http://zenkinetic.com/fltktextbug.aspx
> 1 window, 1 TextEditor, 1 TextDisplay (the visible widget, completely covers
> the TextEditor), 2 buttons.
> Clicking in the TextDisplay causes the TextEdit to blast text on the
> TextDisplay. Covering and uncovering the window causes the TextEdtor to "take
> over".
Hmm, I thought you were talking about overlapping
/windows/ which is fine, but not overlapping widgets.
You appear to be trying to make overlapping widgets
both visible at the same time. As far as I know,
that's a big no-no.
Widgets shouldn't overlap unless only one is show()
and the rest are hide().
There are rare exceptions, such as widgets that are designed
to be transparent.
I'd say offhand, change your callback handlers to something
that ensures when one widget is shown(), the other is hide(),
eg.
if ( inputWin.visible() )
{ inputWin.hide(); dataWin.show(); }
else
{ inputWin.show(); dataWin.hide(); }
window.redraw(); // might not be needed
Definitely don't try to show() both TextEditor and TextDisplay
at the same time if they're overlapping.
Also: what language is your example code written in?
This group is fairly C++ oriented, so code in other languages
will be lost on most of the folks here.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk