(System Library)
Description: This module draws a tabbed folder dialog.
Returns: Nothing
Usage: Steady State
Format: \System\Folder(X1, Y1, X2, Y2, Labels, Selected)
Parameters: X1 { numeric } { required } { no default: }
The coordinate of the left side of the folder.
Y1 { numeric } { required } { no default: }
The coordinate of the bottom of the folder.
X2 { numeric } { required } { no default: }
The coordinate of the right side of the folder.
Y2 { numeric } { required } { no default: }
The coordinate of the top of the folder.
Labels { array of text } { required } { no default: }
A one dimensional array of labels to be assigned as the labels for each of the folder's tabs.
Selected { numeric } { required } { default: 0 }
The selected tab. Selected defaults to 0 (indicating the first tab).
Comments: This module is a member of the System Library, and must therefore be prefaced by \System\ as shown in the example above (see Format above). If the application you are developing is a script application, the System variable must be declared in AppMod.src, and need not be prefaced by a backslash in the function call.
Example:
FolderOn [
If Valid(FolderOff) FolderOff;
\System\Folder(10, 10, WIDTH - 10, HEIGHT - BUTTONH - 20,
TabNames, Current);
]
where Width is a variable indicating the window width, Height is a variable indicating the window height, ButtonH is a constant with a value of 30, TabNames is a variable indicating the labels to be displayed on each tab, and Current is a variable indicating the current tab selected on the dialog should be the selected tab.
See Also: