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,
After taking some time researching this I could suggest you to use the 'WinExpandableGroupBox' control.
Could you please clarify it would be suitable in your scenario. If I got you right, It might be enough for you to use two instances of this control and change the position of the first based on the state of the other expandable box.
Hi Boris,thanks for taking the time to hep me out on this one.The sample is a good starting point, exactly the same setup I use quite often.
Now take the sample you created (the bottom panel collapses) and make the top panel collapse.That's my problem, I haven't figured out how to do this without recreating both panels and the splitter.
let me know if you need any further information.
Thanks again for your support,cheersAndy
I believe that I managed to create a sample following your steps exactly and it seems fine for me. Please take a look at it and feel free to let me know If I missed something. I will be happy to assist you fruther.
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
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.