Page 1 of 1
Window / Panel Properties via CTRL
Posted: Wed Feb 21, 2018 8:40 am
by ilyas_ahmed
Hi,
Just wondering how i can remove the frame of my panels, when I open any panel as window or pop-up.
From the help file I found out that it can be done via windowFlags / FramelessWindowHint. But how to do that, I am not sure.?
Can any one help me on that.?
Secondly how I can resize my standard face plate. Is is some thing defined int he hook function.?
thanks
Ilyas.
Re: Window / Panel Properties via CTRL
Posted: Wed Feb 21, 2018 9:41 am
by leoknipp
"windowFlags" is the property of a panel. It can be set using setValue like setting the property of an object.
E.g. in the Initilaize event of the panel: setValue("","windowFlags","FramelessWindowHint");
Concerning your question to resize a panel.
Shall the user be able to resize the panel or do you want to it via CTRL code?
Best Regards
Leopold Knipp
Senior Support Specialist
Re: Window / Panel Properties via CTRL
Posted: Thu Feb 22, 2018 3:39 am
by ilyas_ahmed
Hi Leopold,
Thanks for that , yes it did work.
I want to fix the faceplate size form the CTRL, but couldn't find out where its been defined in the hook functions. I building a project specific library based upon stdlib.
Regards,
Ilyas.
Re: Window / Panel Properties via CTRL
Posted: Thu Feb 22, 2018 3:19 pm
by leoknipp
With the CTRL function saetPanelSize() you resize a panel during runtime.
I didn't look at the code of the StdLip to see where the function is used. Maybe you find it by searching for the CTRL function.
Best Regards
Leopold Knipp
Senior Support Specialist
Re: Window / Panel Properties via CTRL
Posted: Thu Feb 22, 2018 11:46 pm
by ilyas_ahmed
Hi Leopold,
thanks for the help , actually i did some work on it myslef and found out that the stdlib uses a framework panel as main faceplate window. this main framework panel is located at WinCC_OA/3.15/Stdlib_3.15/panels/objects_parts/faceplates/framework/faceplate_main.pnl ,
opening of the faceplate is done by the project hook function which builts the faceplates on the framework main faceplate. its possible to resize the framework faceplate.
Best regards,
Ilyas