Show TOC Welcome to the QLIB 1.0 Online Reference
QLIB 

QWindow Examples

The code below creates creates two windows that overlap. Use the test cases to play with them.
 
// define resource for the button
res = new QButtonRes(QButton.NORMAL, 46, 29, "img/qlib/btn2n.gif",
    "img/qlib/btn2p.gif", "img/qlib/btn2d.gif");

// this function handles the button clicks
function button_click() {
    this.parent.show(false);
}

// content function
function content() {
    with(this.document) {
        write("<br><br>");
        write("This window name is " + this.name + "<br>");
        write("This window ID is " + this.id + "<br><br>");
        write("Hit this button to close window<br>");
        this.btn = new QButton(this, "btn", res);
        this.btn.onClick = button_click;
        write("<br><br>");
    }
}

// create windows
W1 = new QWindow(null, "W1", 50, 180, 250, null, content);
W2 = new QWindow(null, "W2", 250, 280, 250, null, content);