分路器和对接 [英] Splitters and Docking

查看:61
本文介绍了分路器和对接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人真正让Docking和Splitter Bars适用于任何

但是最简单的两个控件应用程序和一个分割条填充

整个表单?如果是这样,你能开玩笑吗?我甚至尝试创建

背景面板并将它们与面板上的控件对接,但

对接订单似乎是随机的!微软的另一个无用的控制我想b $ b想想!

-

休斯顿的丹尼斯

解决方案

" Dennis" <德**** @ discussions.microsoft.com> schrieb:

有没有人真正让Docking和Splitter Bars适用于任何
但最简单的应用程序是两个控件和一个分割条填充整个表单?如果是这样,你能开玩笑吗?我甚至尝试创建
背景面板并将它们与面板上的控件对接,但
对接顺序似乎是随机的!




使用带到前台和发送到后台上下文菜单项

Windows窗体设计器中用于控制对接顺序的控件。


-

MS Herfried K .Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://dotnet.mvps.org/ dotnet / faqs />


" Dennis" <德**** @ discussions.microsoft.com> schrieb:

有没有人真正让Docking和Splitter Bars适用于任何
但最简单的应用程序是两个控件和一个分割条填充整个表单?如果是这样,你能开玩笑吗?我甚至尝试创建
背景面板并将它们与面板上的控件对接,但
对接顺序似乎是随机的!




使用带到前台和发送到后台上下文菜单项

Windows窗体设计器中用于控制对接顺序的控件。


-

MS Herfried K .Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://dotnet.mvps.org/ dotnet / faqs />


Dennis,


当你知道如何尝试时,分路器工作正常。 />

您的对接问题与分离器无关,但与设计师的对比是
。当你使用它时,你将它添加到你拖动它的方式

表格(Zorder)。


在设计器生成的代码中很容易改变。但效率不高

对于性能来说并不是非常昂贵,我认为这些控件也是如此,并且在加载事件中添加它们一次(当你使用
设计师,你可以在每次改变时再次做到这一点)


我觉得非常有用的是隐藏和显示它们。我有

形式我在面板上面板以及水平分割为

垂直。然而,这也是Z命令所需要的。 (Z订单来自

自下而上。)


我希望这有帮助吗?


Cor

Has anyone really gotten the Docking and Splitter Bars to work for anyting
but the simplest application for two controls and one splitter bar filling
the whole form? If so, can you enlighten my on HOW! I even tried creating
background panels and docking them with the controls on the panels but the
docking order seems to be random! Another useless control from Microsoft I
think!
--
Dennis in Houston

解决方案

"Dennis" <De****@discussions.microsoft.com> schrieb:

Has anyone really gotten the Docking and Splitter Bars to work for anyting
but the simplest application for two controls and one splitter bar filling
the whole form? If so, can you enlighten my on HOW! I even tried
creating
background panels and docking them with the controls on the panels but the
docking order seems to be random!



Use the "Bring to foreground" and "Send into background" context menu items
of the controls in the Windows Forms designer to control the docking order.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


"Dennis" <De****@discussions.microsoft.com> schrieb:

Has anyone really gotten the Docking and Splitter Bars to work for anyting
but the simplest application for two controls and one splitter bar filling
the whole form? If so, can you enlighten my on HOW! I even tried
creating
background panels and docking them with the controls on the panels but the
docking order seems to be random!



Use the "Bring to foreground" and "Send into background" context menu items
of the controls in the Windows Forms designer to control the docking order.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Dennis,

The splitter works fine when you know how, just some trying.

Your problem with the docking has nothing to do with the splitter, however
with the designer. When you use that it adds it in the way you drags it on
the form (Zorder).

It is easy to change in the designer generated code. Not efficient however
not really very expensive for performanse in my opinion is as well removing
those controls and adding them once in the load event (When you do it using
the designer you can do it everytime again when you change something)

What I find also very usefull to do is hidding and showing them. I have
forms where I have panels over panels as well splitting horizontal as
vertical. For that is however as well that Z order needed. (Z order is from
bottom to top.)

I hope this helps?

Cor


这篇关于分路器和对接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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