Displays or hides the tab for a given dimension. You can only use EnableDimension before the control is displayed with Initialize.
To specify the selection mode for a dimension, use ShowCheckBoxes. |
<HsvPOVSelection>.EnableDimension lDim, bEnableLong (ByVal). The ID of the dimension. Dimension IDs are represented by the HFMConstants type library constants listed in Dimension ID Constants. | |
Boolean (ByVal). A flag that specifies whether the dimension’s tab is displayed or hidden. Pass TRUE to display, FALSE to hide. |
The following example configures the control to display the Scenario dimension’s tab and hide the other dimensions’ tabs. The example configures the tab for multi-select mode with ShowCheckBoxes, then calls Initialize to display the control.
' cFormPOV represents an initialized HsvPOVSelection control
For i = DIMENSION_LBOUND To DIMENSION_UBOUND
If i = DIMENSIONSCENARIO Then
cFormPOV.EnableDimension i, True
cFormPOV.ShowCheckBoxes i, True
Else
cFormPOV.EnableDimension i, False
End If
Next
' cSession is a previously set HsvSession instance
cFormPOV.Initialize cSession