I have a panel with multiple layers inside a Tab control.
LayerOff(), LayerOffPanel(), LayerOffPanelInModule() methods do not work when i place the panel inside a Tab. It works as expected if the panel is not inside the Tab
Is there any special requirement to use LayerOn/Off inside a Tab?
LayerOff inside Tab control
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: LayerOff inside Tab control
I've tested it and I could reproduce this behaviour.
It looks like the layer information is lost when a panel is inserted in a tab. The objects are then placed in the same layer as the tab.
If you want to switch off layers for a panel placed in a tab you could use the following workaround:
-- define a panel with an embedded module
-- add this panel to a tab
-- load the panel inside of the embedded module
-- switch the layers by using the functions LayerOffPanelInModule()/LayerOnPanelInModule()
Best Regards
Leopold Knipp
Senior Support Specialist
It looks like the layer information is lost when a panel is inserted in a tab. The objects are then placed in the same layer as the tab.
If you want to switch off layers for a panel placed in a tab you could use the following workaround:
-- define a panel with an embedded module
-- add this panel to a tab
-- load the panel inside of the embedded module
-- switch the layers by using the functions LayerOffPanelInModule()/LayerOnPanelInModule()
Best Regards
Leopold Knipp
Senior Support Specialist