Genie Style Tabbed Control Syntax
- [%R % ^^]
Character. The leading [%R% and trailing ] and ^^ characters are required.
Numeric. Column width in characters.
Numeric. The width of the control.
Numeric. The height of the control.
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.
Character. See Choices Syntax.
Character. Optional. See Event Syntax.
Logical. Optional. See Enabled Syntax.
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.
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%)