默认情况下,位于列内的磁贴垂直分布以利用所有可用空间。 如果两个相邻列的切片所占用的空间量差异很大,则列中需要较少空间的切片可能看起来分布得太远。设置列的属性会将列中的磁贴限制为仅使用实际需要的空间量。这将改善对话框中磁贴的外观。fixed_heighttrue 下图显示了两列磁贴的结果以及该属性如何影响垂直磁贴分布:fixed_height 两个图中的列的属性都设置为 false,但右侧插图中最右侧的列除外。最右边列的属性设置为 ,这会降低列的高度,使其足够大以包含其定义中的磁贴。fixed_heightfixed_heighttrue 以下对话框定义表示右侧的插图: sampleColumns : dialog { label = "Sample Columns Dialog Box"; : row { : column { : button { key = "btn1"; label = "Button1"; is_default = true; fixed_width = true; height = 20; } } : column { fixed_height = true; alignment = top; : button { key = "btn2"; label = "Button2"; fixed_width = true; } : button { key = "btn3"; label = "Button3"; fixed_width = true; } } } } |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )
GMT+8, 2024-6-10 20:16
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.