明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: 我来看MM的

【求教】关于这个DCL。。。。

  [复制链接]
发表于 2012-3-29 14:27:41 | 显示全部楼层


  1. zhandian:dialog {
  2.     label = "切换展点注记" ;
  3.     :boxed_radio_column {
  4.         children_alignment = right ;
  5.         children_fixed_width = true ;
  6.         width = 40 ;
  7.         :row {
  8.             :spacer {
  9.                 width = 1 ;
  10.             }
  11.             :radio_button {
  12.                 label = "展测点点号" ;
  13.             }
  14.         }
  15.         :row {
  16.             :spacer {
  17.                 width = 1 ;
  18.             }
  19.             :radio_button {
  20.                 label = "展测点编码" ;
  21.             }
  22.         }
  23.         :row {
  24.             :spacer {
  25.                 width = 1 ;
  26.             }
  27.             :radio_button {
  28.                 label = "展测点高程" ;
  29.                 value = "1" ;
  30.             }
  31.         }
  32.     }
  33.     spacer_1;
  34.     ok_cancel;
  35. }
 楼主| 发表于 2012-3-29 19:40:04 | 显示全部楼层
nzl1116 发表于 2012-3-29 13:54

非常感谢!!!
我能不能再问细一点。。。
:row这句是对象呈水平排列是吧?而:spacer这个是一个空白栏吗?它的宽度值为什么是1?怎么知道的?
我试过其他值,会偏,不会呈居中对齐。
还望不吝赐教!!!
发表于 2012-3-30 07:32:54 | 显示全部楼层
我来看MM的 发表于 2012-3-29 19:40
非常感谢!!!
我能不能再问细一点。。。
:row这句是对象呈水平排列是吧?而:spacer这个是一个空白栏 ...

你先看一下11楼的,不用加spacer也可以排列的,用children_fixed_width = true ;
至于:spacer,和其他的方框一样,都是自动延伸的,当你设定的宽度不大于方框实际大小时,就按实际大小排列,当设定的宽度大于实际宽度时,就按你设定的宽度显示。
发表于 2012-3-30 07:58:25 | 显示全部楼层
纯粹支持,呵呵
 楼主| 发表于 2012-3-30 10:45:37 | 显示全部楼层
nzl1116 发表于 2012-3-30 07:32
你先看一下11楼的,不用加spacer也可以排列的,用children_fixed_width = true ;
至于:spacer,和其他的 ...

非常感谢!
 楼主| 发表于 2012-3-30 10:46:24 | 显示全部楼层
xshrimp 发表于 2012-3-29 14:27

非常感谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-6-8 18:47 , Processed in 0.158296 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表