Panel: window

Syntax

{<name>:} window {<dims>}

Description

Sub-window sub-panel. A rectangular area suitable for later allocation by a user-defined window.

Membership

Parameters

Switches

Callbacks

None

Notes

If the type of window which will occupy the sub-window sub-panel is known, e.g. alpha, graphic, then the appropriate window creation command may be used instead of the sub-panel type window, e.g. walpha, wgraphic, wpanel, etc.

Examples

Create a panel window containing four subwindows of known types.

window w = wpanel {
    row {
        w1: wgraphic -dim=<400,300>,-sc
        w2: walpha -dim=<400,300>,-sc
    }
    row {
        w3: wdisplay -dim=<400,300>,-sc
        w4: wtable -dim=<400,300>,-row=10,-sc {
            name: text -bc=white, -c=15, -head = 'Aircraft Name'
            type: options <'747', '737', 'DC10'>, -head = 'Type'
            date1: text -bc=white, -c=15, -head = 'Purchase Date'
            price1: slider 1,10000000,700000, -head = 'Price'
            serv: check_button "In Service"
        }
    }
}

Create a panel window with an empty subwindow to be allocated later. Give it scrollbars.

window w = wpanel {
    pwin: window <200,200>,-sc
}
# Display an image in it
w.pwin = wdisplay myfile.ras