Window / Panel Properties via CTRL

Find and share HowTos to various installations / configurations!
Search

Post Reply
5 posts • Page 1 of 1
ilyas_ahmed
Posts: 19
Joined: Wed Sep 06, 2017 7:39 am

Window / Panel Properties via CTRL

Post 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.

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Window / Panel Properties via CTRL

Post 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

ilyas_ahmed
Posts: 19
Joined: Wed Sep 06, 2017 7:39 am

Re: Window / Panel Properties via CTRL

Post 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.

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Window / Panel Properties via CTRL

Post 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

ilyas_ahmed
Posts: 19
Joined: Wed Sep 06, 2017 7:39 am

Re: Window / Panel Properties via CTRL

Post 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

Post Reply
5 posts • Page 1 of 1