拆分容器标题 [英] Split Container Header

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

问题描述

我想添加拆分容器标题和按钮,图钉,关闭等任何有此功能的东西?

解决方案

没有内置控件要做到这一点,你需要创建自己的


当然你可以在两个层次结构中做到这一点。



First ,创建一个拆分容器,将一些父控件拆分为顶部和底部。使用其中一个按钮。将另一个拆分容器放在另一个部分,将其拆分为左右两部分。在这两种情况下,使用属性 Dock 值填充。问题解决了。



但是,我怀疑你需要让两个分裂可以调整大小。你可能会考虑不同的事情。



我会假设按钮父和其他内容之间的分割是固定的,因为你需要一个固定高度的按钮。在您的父控件(表单面板)中放置一个按钮,并使用属性<$为其指定固定大小c $ c> Dock 值Top或Bottom,用它来放置按钮;该区域的其余部分用于放置一个拆分容器,使用填充,用它分成左右区域。



-SA

i would like to add split container header and buttons, pin , close etc. anything out there with this functionality?

解决方案

There are no built in controls to do that, you need to create your own


Of course you can do it, in two levels of hierarchy.

First, create a split container splitting some parent control into top and bottom parts. Use one of them for your buttons. Put another split container in the other part, to split it into left and right parts. In both cases, use the property Dock value "Fill". Problem solved.

However, I doubt you need to make both splits resizeable. You may consider different thing.

I will assume that the split between button parent and the rest content is fixed, just because you need a fixed-height buttons. Put a button in your parent control (Form or Panel) and give it a fixed size by using the property Dock value "Top" or "Bottom", use it to place your buttons; the rest of the area use to put a split container, with "Fill", use it for split into left and right areas.

—SA


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

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