Jump to content
  • Advertisement
Sign in to follow this  
soconne

[.net] How to create 4 way splitter? ( 4 views )

This topic is 4463 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do you create a splitter that splits the viewport into 4 views? The splitter component in VS only lets you divide the form horizontally or vertically, but not both.

Share this post


Link to post
Share on other sites
Advertisement
i used the 'TableLayoutPanel' to split my form into 4 sections.
However i had to add a docked 'Panel' to each corner so i could add multiple Objects.

Share this post


Link to post
Share on other sites
use a 'SplitContainer' to divide it vertically. Then use a 'SplitContainer' in both sides and set the 'Orientation' property to 'Horizontal'. You should now have the desired functionality (you wont be able to resize from the center where the vertical line meets the horizontal line :( ).

You might want to change the background color of the corner panels so you can see the borders at runtime.

Also on the form there is a property 'IsMdiContainer', Mdi is Multiple Document Interface like Word/UnrealEd has. Sometimes its nice to have.

Actually, i think ill use this system now.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!