Command: wpanel

Syntax

{ <window> = } wpanel <file>

or

{ <window>= } wpanel {
   <sub_panel_block>
}

Description

Define a panel window.

Parameters

Switches

Block

The <sub_panel_block> or the contents of <file> is made up of sub-panel definitions each describing a sub-panel or providing control information for layout purposes:

The general form is:

{<name> :} <sub-panel> {<parameters>} {<switches>}

or

{<name> :} <window-command> {<parameters>} {<switches>}

where:

Notes

Selection may be made from sub-panels during command polling or during pop-up menu selection when used with the -m option.

Details of sub-panel attributes may be examined or set after window creation via the window structure member window.panels.

New sub-panels may be added to an existing panel window by the command paneladd.

Example

Create a file browser panel window named fview.

window fview=wpanel, -tit='File Browser' {
# Top row: a prompt and a text input sub-panel
   row {
      label 'Filename'
      fname: text
   }
# Second row: an empty window sub-panel to accommodate the meat of the file
# Scrollbars are added
   awin: window <500,500>,-sc
}

# Define a callback to display the contents of the file whenever the
# contents of the text sub-panel change.
fview.fname.exec = {
   args w=window, p=panel
   if (p.text) w.awin = walpha ^(p.text)
}

See Also

Commands:

choice, embed, hint, paneladd, poll, wclose, window, wopen, wsize

Identifiers:

win# (window), window_numbers (numeric)

Structures:

menupane, panel, window (panel)