Hi,
I have a Panel that represent a Light, it gets some $params to show states and alarms connected to the DPs.
I want to dynamically embed that Panel, into a new Panel with a script that loops the 200 DPs that I get from dpNames function.
I've tried different approaches, but I cannot embed the Panel without the Window Frame !
1)
mapping options = makeMapping("windowFlags", "FramelessWindowHint");
dyn_anytype da = makeDynAnytype(myModuleName(), "light.pnl", myPanelName(), "My Panel", 50 ,50, 1.0, FALSE, makeDynString("$flag:flag1","$DP:light1_dp","$name:light name"), FALSE, options);
childPanel(da);
2)
ChildPanelOnRelativ("light.pnl","light"+index,makeDynString("$flag:flag1","$DP:light1_dp","$name:light name"),50 ,50);
Is there a way to embed a panel into another without the window frame (with control script) ?
Thanks
embed panel into a panel with control script
- dbindernagel
- Posts:161
- Joined: Mon Feb 23, 2015 1:34 pm
Re: embed panel into a panel with control script
Have a look at addSymbol (I'm not sure I understood what you want correctly).
https://www.winccoa.com/documentation/W ... ymbol.html
https://www.winccoa.com/documentation/W ... ymbol.html
- gschijndel
- Posts:376
- Joined: Tue Jan 15, 2019 3:12 pm
Re: embed panel into a panel with control script
The easiest way would be with the function RootPanelOnModule, but also with the function ModuleOnWithPanel it is possible
- Mgiacome
- Posts:21
- Joined: Thu Sep 26, 2024 1:35 pm
Re: embed panel into a panel with control script
Thanks for your replies. I've made it with addSymbol !