splitter and resizing windows

Find and share HowTos to various installations / configurations!
7 posts • Page 1 of 1
tpjctrl
Posts:145
Joined: Tue May 08, 2018 10:30 am

splitter and resizing windows

Post by tpjctrl »

I have a panel which uses a horizontal splitter and loads two xml files, one in the top and one in the bottom section of the splitter, the top and bottom sections have their sizes set using setSizes function. The top xml is built as a fixed panel, but the bottom is layouted and set to expand vertically.

If I resize the panel which holds the splitter, both sections of the splitter grow, which is fine for the bottom xml as that expands it's layout, but the top is left with a gap under the fixed xml part. Is there a way to fix the size of the top section of the splitter and keep it that way even when the main panel is resized and made bigger?

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

Re: splitter and resizing windows

Post by leoknipp »

According to your description the size used for the area of the top panel should not change in any case.
Why do you need a splitter then?

Best Regards
Leopold Knipp
Senior Support Specialist

tpjctrl
Posts:145
Joined: Tue May 08, 2018 10:30 am

Re: splitter and resizing windows

Post by tpjctrl »

Yes that is correct, the top section should remain at the same size. The splitter was used as two xmls files need to be loaded, out of which the first one is also used elsewhere. Is there another way to load two xmls files one under the other without using a splitter?

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

Re: splitter and resizing windows

Post by leoknipp »

What is meant in detail with "two xml files are loaded"?
Do you want to display the content of the xml files as in a text editor?

Best Regards
Leopold Knipp
Senior Support Specialist

tpjctrl
Posts:145
Joined: Tue May 08, 2018 10:30 am

Re: splitter and resizing windows

Post by tpjctrl »

As in load /show two panel files in one panel. A splitter allows this as it loads one panel in one section of the splitter and another panel in the other section. I don't really want the splitter, but still want to load two panel files on a single panel.

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

Re: splitter and resizing windows

Post by leoknipp »

If you want to load 2 panels in an exisitng panel (panel A) there are 2 options:
-- Add 2 embedded modules to the panel A and load the other panels in the embedded modules
-- Load 2 panels are referencese to panel A using addSymbol()

Best Regards
Leopold Knipp
Senior Support Specialist

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: splitter and resizing windows

Post by gschijndel »

If it is fixed, it is much easier to add the panel as a panel reference at engineering the panel. Perhaps the OOP page explains it better what panel references are.
Embedded modules are useful when need scrollbars to fit the panel and/or to change the embedded panel at runtime.
The function 'addSymbol' is useful when number of panel references are not fixed at engineering time.

7 posts • Page 1 of 1