Happy Hobbit 发表于 2022-7-5 18:18:38

DCL方框中心文本

我第一次尝试DCL。
有人知道如何将标有红色椭圆的文本居中吗?
 

 
Number 001 : dialog {
          label = "Select Items";
: column {
    : boxed_row {   
      : boxed_column {   
      label = "Entity";
            : button {
               key = "1";
          width = 18.0;         // Set your width here
          fixed_width = true;   // Set it as fixed width
          alignment = centered;   // Center the list
                label = "Pick Entity:";
                is_default = false;
            }
            : button {
               key = "2";
          width = 18.0;         // Set your width here
          fixed_width = true;   // Set it as fixed width
          alignment = centered;   // Center the list
                label = "Attributes";
                is_default = false;
            }               
      }
      : boxed_column {
      label = "Layer";
            : button {
               key = "51";
          width = 18.0;         // Set your width here
          fixed_width = true;   // Set it as fixed width
          alignment = centered;   // Center the list
                label = "Pick Layer";
                is_default = false;
            }
            : button {               
               key = "52";
          width = 18.0;         // Set your width here
          fixed_width = true;   // Set it as fixed width
          alignment = centered;   // Center the list
                label = "Attributes";
                is_default = false;
            }                        
      }
    }
            : boxed_row {
            : button {
               key = "cancel";
          width = 12.0;         // Set your width here
          fixed_width = true;   // Set it as fixed width
          alignment = centered;   // Center the list
                label = "Cancel";
                is_default = true;
                is_cancel = true;
            }
            }
}
}

Lee Mac 发表于 2022-7-5 18:30:06

不可能使用标准DCL。

Happy Hobbit 发表于 2022-7-5 18:35:00


 
李。难怪我摆弄它不管用

rlx 发表于 2022-7-5 18:37:37

唯一可能的是:
 
 
 
 
 
 
但那不是你想要的
 
 
gr.Rlx

Happy Hobbit 发表于 2022-7-5 18:45:13

这正是我想要的。
 
你是如何从上面的代码中编码的?

rlx 发表于 2022-7-5 18:49:50

 
 
这是一个快速和肮脏的修复,但如果它工作4 U。。。
 
 
gr.Rlx
001.zip

Tharwat 发表于 2022-7-5 18:58:49

你好
 
在标签名称前后添加相等数量的空格,使其看起来完全相同。

Happy Hobbit 发表于 2022-7-5 19:06:02

谢谢Rix和Tharwat,两种方法都很有效。我决定使用Rix方法,因为它看起来更精确。

rlx 发表于 2022-7-5 19:08:24

 
不客气。我相信有第三方应用程序可以让你们更好地控制dcl,但它们不是免费的,当然更复杂。只是为了好玩,我有一次(好的两次)尝试了一种不同的方法
 
http://www.cadtutor.net/forum/showthread.php?93411-为交互式幻灯片程序绘制另一个示例
 
http://www.cadtutor.net/forum/showthread.php?93409-RlxIso绘制等距尺寸
 
但这对于你的需求来说可能有点极端。
 
Gr.Rlx

Happy Hobbit 发表于 2022-7-5 19:15:06

谢谢Rix,但我现在只了解DCL的感觉&了解它们如何将数据传递回lisp
页: [1] 2
查看完整版本: DCL方框中心文本