hiCreateStackedLayout
hiCreateStackedLayout(s_name[?itemsl_items] [?frameg_frame ] [?marginsl_margins] [?currentIndexg_currentIndex] [?enabledg_enabled] [?invisibleg_invisible] [?scrollableg_scrollable] ) =>r_hiLayout
Description
Creates a stacked layout. A stacked layout only shows one of the fields at a time, which can be set using the currentIndex argument of the layout.
Arguments
Value Returned
Examples
Creates a stacked layout destruct with MyStringField as the first field in the stack, keeping the side margins as the default with the top margin as 5 and the bottom margin as 8.
If MyForm contains a grid layout that was created as follows:
MyStackedLayout = hiCreateStackedLayout( 'MyStackedLayout ?margins list( nil 5 nil 8 ) ?items list( MyStringField MyReportField MySubLayout ) )
Specifies the field options of the Stacked Layout form.
procedure(ExStacked()
let((stacked)
stacked=hiCreateStackedLayout(
'stacked
?items
list(
hiCreateBooleanButton(
?name 'enable
?buttonText "Enable"
)
hiCreateStringField(
?name 'lib
?prompt "Lib"
)
hiCreateStringField(
?name 'cell
?prompt "Cell"
)
hiCreateStringField(
?name 'view
?prompt "View"
)
)
?frame "Stacked Layout"
)
hiCreateLayoutForm(
'ExStackedForm
"Stacked Layout"
hiCreateVerticalBoxLayout(
'vbox
?items
list(
; spin box is to allow the selection of which field
; to display in the stacked layout
hiCreateSpinBox(
?name 'stackSelector
?prompt "Select Stack"
?range 0:3
?callback "ExStackedForm->stacked->currentIndex=ExStackedForm->stackSelector->value"
)
stacked
)
)
)
hiDisplayForm(ExStackedForm)
)
)
Related Topics
Return to top