Attaching Elements to Borders - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
With the XConstraint-class you will be able to attach every border of any element to a border of the parent dialog. This means, if you change the size of the dialog, the size or position (or both) of the attached elements will also change. Normaly, every Element inside a dialog-window was attached to the left, upper corner. If you resize the dialog, the elements stay at their place and nothing changes. With this class, it's possible to attach a button to the right corner of the dialog. When you now resize the dialog, the button moves in the same way the dialog grows.
使用这个 XConstraint类,你可以将任意元素的每个边界对齐到父窗口的边界上。这意味着,如果你修改对话框的大小,其元素的大小或位置(或二者)都会改变。通常对话框窗体中的每个元素加到窗体的左上角。如果你改变对话框的大小,元素依旧会位于原位,什么也没有改变。使用这个类,可以将一个按钮附加到对话框的右边。当你调整对话框的大小时,按钮会按同样的方式移动。
来源: http://www.codeguru.com/dialog/constraint.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
xconstraint |
 1.0  |
2004-04-09 |
下载 |
|
|