默认情况下,位于列中的切片垂直分布,以利用所有可用空间。 如果相邻的两列在其图块占用的空间量上差异很大,则该列中需要较少空间的图块可能看起来分布得太远。将列的属性设置为将列中的切片限制为仅使用真正需要的空间量。这将改善对话框中磁贴的外观。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 苏公网安备32011402011833)
GMT+8, 2025-10-30 16:01
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.