LayerOff inside Tab control

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
yasas@applied.co.uk
Posts:21
Joined: Wed Sep 21, 2016 12:26 pm

LayerOff inside Tab control

Post by yasas@applied.co.uk »

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?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: LayerOff inside Tab control

Post by leoknipp »

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

2 posts • Page 1 of 1