SwitchLayerPanelInModule()

Switches the visibility of two layers in a specific panel and module.

Synopsis

SwitchLayerPanelInModule(int No1, int No2, string PanelName, string ModuleName);

Parameters

Parameter Description
No1 Layer to hide
No2 Layer to display
PanelName Panel, in which to switch the layer
ModuleName Module, where panel and layers are switched.

Return value

None

Description

Similar to the function SwitchLayer(), however visibility is switched in a specific panel PanelName in module ModuleName. Layer No1 is hidden and layer No2 is switched to visible.

Example

Hides in module Vision_3 in the panel "panel24" the layer 1 and displays layer 3.

main()
{
  SwitchLayerPanelInModule(1, 3, "panel24", "Vision_3");
}

Assignment

panel.ctl

Availability

UI