groupboxes的巨量堆积在视觉上,如何更好地组织他们? [英] Massive amount of groupboxes visually stacked, how to better organize them?

查看:106
本文介绍了groupboxes的巨量堆积在视觉上,如何更好地组织他们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这几乎是像。我有近30组框来组织,大部分堆放超过自己,只是视觉上启用或禁用相应的在顶部的组合框中。我知道,在 Form1.designer.cs 我可以手动输入自己的位置,但是这是没有帮助很多。是否有关于如何工作最好与此任何提示?我也试图增加窗口的大小,但它没有足够的

It's pretty much like that. I have nearly 30 group boxes to organize, and most stack over themselves and are just visually enabled or disabled accordingly to the combo box in the top. I know that in Form1.designer.cs I can manually input their location, but that isn't helping much. Is there any tip on how to work best with this? I also tried to increase the size of the window, but its not enough.

编辑:
我下面接受的答案,

I'm following the accepted answer,

有没有动他们,让他们恰好在某种程度上他们相对位置?
编辑2:是的,有:只需要在一个更清洁区面板,移动和面板调整所需的groupboxes,然后将面板移动到标签,而不是塞汀组框的父,设置面板的父母,例如:

Is there a way to move them and keep them exactly in their relative position? Edit 2: yes there is: just create a panel in a cleaner area, move and adjust the desired groupboxes in the panel, then move the panel into the tab, and instead of seting the parent of the group box, set the parent of the panel, for example

  panel1.Parent = tabPage3;



groupboxes将在它们的相对位置:)

the groupboxes will be in their relative place :)

推荐答案

您可以使用具有足够的页隐藏设置页控制和移动 GroupBoxes 那里。

You can use a hidden Tab control with enough pages and move the GroupBoxes there.

当你的逻辑想向他们展示一个你的目标容器,的TabPage上,从截图来看,并隐藏另外一个你会怎么做是这样的:

When your logic wants to show one of them on your target container, a TabPage, judging from your screenshot, and hide another one you would do something like this:

groupBox2.Parent = yourTargetContainer;  // bring it out of the hidden Tab
groupBox1.Parent = hidden_tabPage1;      // hide it in a page of the hidden Tab

下面的yourTargetContainer是容器,将举行GroupBoxes在一定的位置。所有GroupBoxes内部控制会与盒如常。

Here the yourTargetContainer is the container that will hold the GroupBoxes at a certain Positions. All the controls inside the GroupBoxes will go with the box as usual.

既然你在不同的位置需要他们可以将标签添加到每个分组框,以保持其位置在yourTargetContainer:

Since you'll need them at various Positions you can add a Tag to each GroupBox to hold its Location on yourTargetContainer :

groupBox1.Tag = new Point(250, 40);
groupBox2.Tag = new Point(250, 40);
groupBox3.Tag = new Point(250, 90);
// ...

和使用它把它在正确的地方:

and use it to put it in the right place:

groupBox2.Parent = yourTargetContainer ;    
groupBox2.Location = (Point)groupBox2.Tag;



你让他们都在设计师的方便,你可以微调他们的方式。这将有助于找出一个网格布局,他们将去..

That way you have them all easily accessible in the designer where you can fine tune them. It will help to figure out a grid layout where they shall go..

将用户能够使用这些改变输入控件的工作有关系吗? ?他们都有大屏幕?

Will the users be able to work with those changing input controls, though? And do they all have the big screens?

这篇关于groupboxes的巨量堆积在视觉上,如何更好地组织他们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆