opening panels with changing size

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
8 posts • Page 1 of 1
marcin.kolodziejczak
Posts: 2
Joined: Tue Apr 23, 2013 4:00 pm

opening panels with changing size

Post by marcin.kolodziejczak »

Hello,
I open the panel using command ChildPanelOnCentralModal("objects_parampanels/BlocadePanel.pnl", "BlocadePanel", makeDynString("$dpName:" + $dpName));

At the initialize scripts on panel I set size of the panel setPanelSize(myModuleName(), "BlocadePanel", false, PanelSize[1], 140 + PanelLength);
I'm doing this in this way because i want to use one panel for all objects.
Everything is almost fine, but I can see for very short time scrollbars for this panel.
It looks like blink of panel. There is any posibility to turn off scrollbas for this panel.

And the second problem
When I set the panel size for example 1920x1200 and initialize scripts turn off title bar "titleBar(0,moduleName(),myPanelName())" i got empty space at the bottom of the panel, it look's like the hight of this space will be the same like hight of title bar.

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

Re: opening panels with changing size

Post by leoknipp »

Hello,

I made a test with the function setPanelSize() but I didn't see the scrollbars even not for a short time.
Maybe we would need the panels you are using for this test.
If the problem still occurs please send a simple example to the official WinCC OA support.


It should be possible to solve the second problem with changing the order of commands.
If the titleBar is removed first and afterwards the panel size is changed the panel should be displayed in "full screen"-mode without a vertical scrollbar.

If I set the panel size and remove afterwards the title bar I can see an empty space at the bottom and a vertical scrollbar.

Best Regards
Leopold Knipp
Senior Support Specialist

marcin.kolodziejczak
Posts: 2
Joined: Tue Apr 23, 2013 4:00 pm

Re: opening panels with changing size

Post by marcin.kolodziejczak »

I have seen scrollbars because I have opened panel on the black panel, and it is very short time.
So maybe there is a posibility to set another dark color for scrollbars

n_lev
Posts: 73
Joined: Tue May 28, 2013 2:24 am

Re: opening panels with changing size

Post by n_lev »

Hi Marcin,

I am doing something similar: open the panel, then resize it. Unfortunately by the nature of what this does, it will open the panel in it's original size FIRST and then resize it. As a result one can see a panel in it's original size for a very short time. I made a point to put the resize function as close to the beginning of the init script as possible, as a result resizing happens so quick that it's almost impossible to see and it is an acceptable trade off for the fact that I don't have to maintain multiple panels that are only different by size. As for scroll bars, try to disable them in the panel properties, maybe?

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

Re: opening panels with changing size

Post by leoknipp »

Hello,

there is no possibility to deactivate scroll-bars for child-panels.
At the panel-properties such an option is not available.

Best Regards
Leopold Knipp
Senior Support Specialist

n_lev
Posts: 73
Joined: Tue May 28, 2013 2:24 am

Re: opening panels with changing size

Post by n_lev »

Ah, my bad, I assumed they work the same as normal panels

funkey
Posts: 85
Joined: Mon Dec 27, 2010 1:11 pm

Re: opening panels with changing size

Post by funkey »

With version 3.9 no scrollbars were visible when resizing a child panel at runtime. Now with 3.11 I have the same problem.

User avatar
fmulder
Posts: 330
Joined: Wed Feb 03, 2010 9:46 am

Re: opening panels with changing size

Post by fmulder »

Hi Guys,

I will give you a vey creative solution that I've used recently. It is simple, highly efficient and will allow you you to do many new creative things !

* Store your 'container' panel in XML format
* Change the properties of the panel, directly in the XML file(!), before opening it
( In your case : change the size of the panel, and maybe an 'embedded module' in the panel to have the correct dimensions )

This of course opens up a whole world of possibliities. The XML format will allow you to 'generate' or change all sorts of panels dynamically.

I did not use the standard XML functions. I simply read the whole XML file into a dyn_string and made a very simple 'search' function to find the right lines. It took me 10 minutes to do so.

Good luck

"Share the fun"

Frenk Mulder

Post Reply
8 posts • Page 1 of 1