Edzard Egberts:
>Yes, you are using it successful. I think you miss to show() the new
>widget and will see more by new_widget->show().

No. Sorry. The container 'Canvas' is a Group containing
 * a writing plane
 * a hbar
 * a vbar

Without the Input widget I have 3 children; with the Input widget
I have 4 children. 'children() - 2' means before the scrollbars.

The code in 'Canvas::show()':

        if(inputWidget == NULL)
    {
        inputWidget = new Input(xx, yy - textsize_, ww, textsize_);
        inputWidget->value("Hello");
        inputWidget->tooltip("inputWidget");
    }
//      add(inputWidget);
//      inputWidget->redraw();
//      inputWidget->show();

        insert(*inputWidget,children() - 2);
//      inputWidget->redraw();
        inputWidget->show();

You can see that I have tried your proposal.

The HTML page is simple:

<html><head><title>INPUT example</title></head>
<body>
BEFORE <input type="text" size="30" value="Hello you" maxlength="150"> AFTER
</body></html>

There is free space for the Input between BEFORE and AFTER. But
the widget does not exist on the writing plane: the tooltip is
not visible.

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

Reply via email to