Creating Panel Controls

Folder Controls

 

Panels may be set up so that they appear as layered file folders, giving the user easy access to different sub-panels within the window. This effect is achieved via the Folder control, which links and displays previously defined sub-panels using a tabbed or tabless (wizard style) format. Users can navigate between sub-panels by clicking on a tab, using the Alt key, or pressing the arrow keys while focus is on the Folder control.

Note:
There is no equivalent directive in PxPlus for creating folders. A folder can be drawn using an OOP object, which can be instantiated in code outside of NOMADS. See Folder Object.

NOMADS stores the name of the currently active folder control in the folder_id$ variable and stores a reference for each tab/sub-panel in a variable named FLDR.subpanelname.CTL.

Example:

FLDR.CSTMAINT.CTL

You can use this variable to refer to a sub-panel in your program. The following restrictions apply to folder controls:

Creating Folders

To draw folders on your panel, select the Folder control tool from the Controls Toolbar. Hold down the left mouse button and drag the mouse to create a rectangle to the desired size. Release the mouse button to create a new empty folder control.

Sub-panels are added to a folder control using the Tabs/Folder Properties dialogue. See Folder Properties and Adding and Modifying Sub-Panels.

For making other adjustments, see Modifying Objects.