Hi all,
I have a question regarding the WinSplitter control.
If I understood the docs right the splitter collapses the panel that has the same docking as the splitter.
So a main-panel hosts the first panel docked bottom, then the splitter docked bottom and last another panel docked Fill.
In this case the panel that is docked bottom gets collapsed.
So far so good, but I am unable to change this to make the top panel gets collapsed.Even if I undock all panels and then redock them in the right order it does not work.
The only solution I figured out was to remove the hostin panels (top, bottom) and the splitter and then start over again docking the top panel first, then the splitter (dock top) and last the panel that gets docked Fill.
Even if I undock them all, remove the splitter, move the panels out of the main panel and try over again I can not archive what I wanted, invert the collapsed panel...
Is there a solution for this problem I am missing?
any help is kindly appreciated.
best regards
Andy
Hello Andy,
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.
Hi Boris,thanks for looking into this. I posted this a while ago but the problem is still there.The sample attached shows how to use the splitter, that is fine, nevertheless it doesn't solve my problem.
What I try to do is to change the orientation of the splitter after it is already in place.You can reproduce this by doing the following:
- add an UltraPanel to the form- dock it bottom- add an UltraSplitter to the form- dock it bottom (so this will make the bottom panel collapse if the splitter is clicked)- add another Ultrapanel- dock it fill
So now we have two areas where the bottom one collapses when the splitter is clicked.
What I want to do now is to make the top panel collapse.If I just change the docking of the two panels and the splitter it doesn't work.Especially if I dock the formertly bottom docked panel to "fill" it takes up the whole area...
The only way to do this at my knowledge is to remove both panels and the splitter and start all over again, which might be tricky if there is already a lot of content on the form.
I hope that clarifies my problem, let me know if you need further info.
best regardsAndy