Genie Style Tabbed Control Syntax
Syntax
Arguments
- [%R % ^^]
Character. The leading [%R% and trailing ] and ^^ characters are required.
- P1
Numeric. Column width in characters.
- Width
Numeric. The width of the control.
- Height
Numeric. The height of the control.
- Variable_Name
Character. The name of a character variable to receive the user selection, or a numeric variable to receive the index value of the selected radio button. The index of the top-most button is 1.
- Choices
Character. See Choices Syntax.
- Event
Character. Optional. See Event Syntax.
- Enabled
Logical. Optional. See Enabled Syntax.
Description
This syntax for displaying a tabbed control starts with an array that defines the names of the different tabs. This approach dynamically builds an embeds dialog boxes for each of the tab pages. This, in turn requires an array of code pages and a function that identifies the current page and builds the appropriate page.
Example
dim panes as C panes = <<%a% Page 1 Page 2 Page 3 %a% ui_dlg_box("Tabbed Form",<<%dlg% [%R=1%.30,10current_pane^^panes!current_pane_*] %dlg%)
See Also