CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 文档中心

关于调整拼贴之间的间距 (DCL)

2023-1-8 09:57| 发布者: admin| 查看: 254| 评论: 0|来自: AutoCAD

摘要: 默认情况下,位于列内的磁贴垂直分布以利用所有可用空间。

默认情况下,位于列内的磁贴垂直分布以利用所有可用空间。

如果两个相邻列的切片所占用的空间量差异很大,则列中需要较少空间的切片可能看起来分布得太远。设置列的属性会将列中的磁贴限制为仅使用实际需要的空间量。这将改善对话框中磁贴的外观。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;
      }
    }
  }
}

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )

GMT+8, 2024-5-19 15:02

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部