DCL参考(机翻)
| 函数 | 语法 | 描述 |
| action_tile (AutoLISP/DCL) | (action_tile key action-expression) | 当用户在对话框中选择指定的图块时,分配要评估的操作 |
| add_list (AutoLISP/DCL) | (add_list str) | 在当前活动的对话框列表中添加或修改字符串 |
| client_data_tile (AutoLISP/DCL) | (client_data_tile key clientdata) | 将应用程序管理的数据与对话框图块相关联 |
| dimx_tile (AutoLISP/DCL) | (dimx_tile key) | 以对话框为单位检索图块的宽度 |
| dimy_tile (AutoLISP/DCL) | (dimy_tile key) | 以对话框为单位检索图块的高度 |
| done_dialog (AutoLISP/DCL) | (done_dialog [status]) | 终止对话框 |
| end_image (AutoLISP/DCL) | (end_image) | 结束当前活动对话框图像的创建 |
| end_list (AutoLISP/DCL) | (end_list) | 结束当前活动对话框列表的处理 |
| fill_image (AutoLISP/DCL) | (fill_image x1 y1 width height color) | 在当前活动的对话框图像图块中绘制一个填充的矩形 |
| get_attr (AutoLISP/DCL) | (get_attr key attribute) | 检索对话框属性的DCL值 |
| get_tile (AutoLISP/DCL) | (get_tile key) | 检索对话框图块的当前运行时值 |
| load_dialog (AutoLISP/DCL) | (load_dialog dclfile) | 加载DCL文件 |
| mode_tile (AutoLISP/DCL) | (mode_tile key mode) | 设置对话框图块的模式 |
| new_dialog (AutoLISP/DCL) | (new_dialog dlgname dcl_id [action [screen-pt]]) | 开始一个新对话框并显示它,还可以指定一个默认操作 |
| set_tile (AutoLISP/DCL) | (set_tile key value) | 设置对话框图块的值 |
| slide_image (AutoLISP/DCL) | (slide_image x1 y1 width height sldname) | 在当前活动的对话框图像图块中显示AutoCAD幻灯片 |
| start_dialog (AutoLISP/DCL) | (start_dialog) | 显示一个对话框并开始接受用户输入 |
| start_image (AutoLISP/DCL) | (start_image key) | 开始在对话框图块中创建图像 |
| start_list (AutoLISP/DCL) | (start_list key [operation [index]]) | 开始处理列表框或弹出列表对话框磁贴中的列表 |
| term_dialog (AutoLISP/DCL) | (term_dialog) | 终止所有当前对话框,就好像用户已取消了每个对话框一样 |
| unload_dialog (AutoLISP/DCL) | (unload_dialog dcl_id) | 卸载DCL文件 |
| vector_image (AutoLISP/DCL) | (vector_image x1 y1 x2 y2 color) | 在当前活动的对话框图像中绘制矢量 |
| boxed_column Tile (DCL) | : boxed_column { alignment children_alignment children_fixed_height children_fixed_width fixed_height fixed_width height label width } |
分组磁贴用于将磁贴组织成一列,并带有边框。 |
| boxed_radio_column Tile (DCL) | : boxed_radio_column { alignment children_alignment children_fixed_height children_fixed_width fixed_height fixed_width height label width } |
分组磁贴用于将radio_button磁贴组织成一列,并带有边框。 |
| boxed_radio_row Tile (DCL) | : boxed_radio_row { alignment children_alignment children_fixed_height children_fixed_width fixed_height fixed_width height label width } |
分组磁贴用于将radio_button磁贴组织成一个带有边框的行。 |
| boxed_row Tile (DCL) | : boxed_row { alignment children_alignment children_fixed_height children_fixed_width fixed_height fixed_width height label width } |
分组磁贴用于将磁贴组织成一排,并带有边框。 |
| button Title (DCL) | : button { action alignment fixed_height fixed_width height is_cancel is_default is_enabled is_tab_stop key label mnemonic width } |
“按钮”图块类似于一个按钮。 |
| column Tile (DCL) | : column { alignment children_alignment children_fixed_height children_fixed_width fixed_height fixed_width height label width } |
将图块分组,用于将图块组织成一列,但周围没有边框。 |
| concatenation Tile (DCL) | : concatenation { } | “串联是由多个串联的text_part磁贴组成的一行文本。” |
| dialog Tile (DCL) | : dialog { initial_focus label value } |
对话框是定义对话框的磁贴。 |
| edit_box Tile (DCL) | : edit_box { action alignment allow_accept edit_limit edit_width fixed_height fixed_width height is_enabled is_tab_stop key label mnemonic value width password_char } |
编辑框是使用户能够输入或编辑单行文本的字段。 |
| errtile Tile (DCL) | errtile; | 错误图块是出现在对话框底部的文本图块。 |
| image Tile (DCL) | : image { action alignment aspect_ratio color fixed_height fixed_width height is_enabled is_tab_stop key mnemonic value width } |
图像是显示矢量图形图片的矩形。 |
| image_button Tile (DCL) | : image_button { action alignment allow_accept aspect_ratio color fixed_height fixed_width height is_enabled is_tab_stop key mnemonic width } |
图像按钮图块是显示图形图像而不是标签的按钮。 |
| list_box Tile (DCL) | : list_box { action alignment allow_accept fixed_height fixed_width fixed_width_font height is_enabled is_tab_stopkey label list mnemonic multiple_select tab_truncate tabs value width } |
列表框包含以行排列的文本字符串列表。 |
| ok_cancel Tile (DCL) | ok_cancel; | “ ok_cancel磁贴是“确定”和“取消”按钮的组合,并且是可以引发数据更改的对话框的标准组合。” |
| ok_cancel_help Tile (DCL) | ok_cancel_help; | “此磁贴是ok_cancel群集,结合了“帮助”按钮。” |
| ok_cancel_help_errtile Tile (DCL) | ok_cancel_help_errtile; | “ ok_cancel_help_errtile磁贴提供了一种方便的方法,可以一次指定所有退出按钮和错误磁贴。” |
| ok_cancel_help_info Tile (DCL) | ok_cancel_help_info; | “ ok_cancel_help_info磁贴可以执行ok_cancel_help磁贴所要做的所有工作,但是它还包括一个用于显示其他材料的信息按钮。” |
| ok_only Tile (DCL) | ok_only; | “ ok_only磁贴是一个单独的OK按钮,例如警报框使用的那种按钮。” |
| paragraph Tile (DCL) | : paragraph { } | “段落是垂直排列的text_part或串联图块的集群。” |
| popup_list Tile (DCL) | : popup_list { action alignment edit_width fixed_height fixed_width fixed_width_font height is_enabled is_tab_stop key label list mnemonic tab_truncate tabs value width } |
弹出列表(或简称为弹出窗口)在功能上等效于列表框。 |
| radio_button Tile (DCL) | : radio_button { action alignment fixed_height fixed_width height is_enabled is_tab_stop key label mnemonic value width } |
单选按钮是组成单选列或单选行的一组按钮之一。 |
| radio_column Tile (DCL) | : radio_column { alignment children_alignment children_fixed_height children_fixed_width fixed_height fixed_width height label width } |
单选栏包含单选按钮磁贴,一次只能选择其中之一。 |
| radio_row Tile (DCL) | : radio_row { alignment children_alignment children_fixed_height children_fixed_width fixed_height fixed_width height label width } |
单选行与单选列一样,包含单选按钮磁贴,一次只能选择其中之一。 |
| row Tile (DCL) | : row { alignment children_alignment children_fixed_height children_fixed_width fixed_height fixed_width height label width } |
分组磁贴用于将磁贴组织成一行,且周围没有边框。 |
| slider Tile (DCL) | : slider { action alignment big_increment fixed_height fixed_width height key label layout max_value min_value mnemonic small_increment value width } |
滑块获得数值。 |
| spacer Tile (DCL) | : spacer { alignment fixed_height fixed_width height width } |
切片用于在对话框定义中的其他切片之间添加空间。 |
| spacer_0 Tile (DCL) | spacer_0; | 切片用于在对话框定义中的其他切片之间添加空间。 |
| spacer_1 Tile (DCL) | spacer_1; | 切片用于在对话框定义中的其他切片之间添加空间。 |
| text Tile (DCL) | : text { alignment fixed_height fixed_width height is_bold key label value width } |
文本图块显示文本字符串以供标题或参考之用。 |
| text_part Tile (DCL) | : text_part { label } |
文本部分是文本图块,它是较大文本的一部分。 |
| toggle Tile (DCL) | : toggle { action alignment fixed_height fixed_width height is_enabled is_tab_stop label width } |
“切换开关显示为一个小方框,在该方框的右侧带有一个可选标签。” |
| action Attribute (DCL) | action = "(function)"; | 指定一个AutoLISP表达式,以在选择此图块时执行操作。也称为回调。 |
| alignment Attribute (DCL) | alignment = position; | 指定图块在其群集内的水平或垂直位置(对齐)。 |
| allow_accept Attribute (DCL) | allow_accept = true-false; | 指定当用户按下接受键(通常是Enter)时是否激活图块。 |
| aspect_ratio Attribute (DCL) | aspect_ratio = real; | 指定图像的宽度与高度的比率(宽度除以高度)。 |
| big_increment Attribute (DCL) | big_increment = integer; | 指定滑块的增量控件使用的值。 |
| children_alignment Attribute (DCL) | children_alignment = position; | “为群集中的所有图块指定默认对齐方式(类似于对齐方式)。” |
| children_fixed_height Attribute (DCL) | children_fixed_height = true-false; | “为集群中的所有图块指定默认高度(类似于高度)。” |
| children_fixed_width Attribute (DCL) | children_fixed_width = true-false; | 指定集群中所有图块的默认宽度(类似于宽度)。 |
| color Attribute (DCL) | color = colorname; | 指定图像的背景(填充)颜色。 |
| edit_limit Attribute (DCL) | edit_limit = integer; | 指定允许用户在编辑框中输入的最大字符数。 |
| edit_width Attribute (DCL) | edit_width = number; | “指定框的编辑(输入)部分(edit_box磁贴的实际装箱部分)以字符宽度为单位的宽度。” |
| fixed_height Attribute (DCL) | fixed_height = true-false; | 指定是否允许图块的高度填充可用空间。 |
| fixed_width Attribute (DCL) | fixed_width = true-false; | 指定是否允许图块的宽度填充可用空间。 |
| fixed_width_font Attribute (DCL) | fixed_width_font = true-false; | 指定列表框或弹出列表将以固定间距字体显示文本。 |
| height Attribute (DCL) | height = number; | 指定图块的高度。 |
| initial_focus Attribute (DCL) | initial_focus = "string"; | 在对话框中指定接收初始键盘焦点的图块的键。 |
| is_bold Attribute (DCL) | is_bold = true-false; | 指定文本是否以粗体显示。 |
| is_cancel Attribute (DCL) | is_cancel = true-false; | 指定当用户按下Esc键时是否选择按钮。 |
| is_default Attribute (DCL) | is_default = true-false; | 指定当用户按下接受键时,该按钮是否为默认的默认按钮(“按下”)。 |
| is_enabled Attribute (DCL) | is_enabled = true-false; | 指定图块最初是否可用。 |
| is_tab_stop Attribute (DCL) | is_tab_stop = true-false; | 指定当用户通过按Tab键在图块之间移动时,图块是否获得键盘焦点。 |
| key Attribute (DCL) | key = "string"; | 指定程序用来引用此特定图块的名称。 |
| label Attribute (DCL) | label = "string"; | 指定在图块中显示的文本。 |
| layout Attribute (DCL) | layout = position; | 指定滑块的方向。 |
| list Attribute (DCL) | list = "string"; | “指定要放置在popup_list或list_box中的初始行(选择)集。” |
| max_value Attribute (DCL) | max_value = integer; | 指定滑块返回的值的上限。 |
| min_value Attribute (DCL) | min_value = integer; | 指定滑块返回的值的下限范围。 |
| mnemonic Attribute (DCL) | mnemonic = "char"; | 指定图块的键盘助记符。 |
| multiple_select Attribute (DCL) | multiple_select = true-false; | “指定是否可以同时选择(突出显示)list_box中的多个项目。” |
| password_char Attribute (DCL) | password_char = "char"; | 指定用于掩盖用户输入的字符。 |
| small_increment Attribute (DCL) | small_increment = integer; | 指定滑块的增量控件使用的值。 |
| tab_truncate Attribute (DCL) | tab_truncate = true-false; | 指定如果列表框或弹出列表中的文本大于关联的制表位,则该文本是否被截断。 |
| tabs Attribute (DCL) | tabs = "string"; | 指定选项卡的位置,以字符宽度为单位。 |
| value Attribute (DCL) | value = "string"; | 指定图块的初始值。可能的值是带引号的字符串。 |
| width Attribute (DCL) | width = number; | 指定图块的宽度。 |
| About User-Defined Attributes (DCL) | errmsg = "Grid Y Spacing"; | 定义图块时,可以分配自己的属性。 |
浙公网安备 33010602011771号