代码改变世界

AutoCADDCL对话框设计示例九

2011-04-16 15:25  精诚所至 金石为开  阅读(363)  评论(0编辑  收藏  举报

AutoCADDCL对话框设计示例九,代码如下。

dcl:dialog {
    label = "第九个DCL设计" ;
    :boxed_row {
        label = "颜色按钮" ;
        color_palette_1_7;
    }
    :row {
        :image {
            aspect_ratio = 0.66 ;
            color = 1 ;
            width = 12 ;
        }
        :image {
            aspect_ratio = 0.66 ;
            color = 2 ;
            width = 12 ;
        }
        :image {
            aspect_ratio = 0.66 ;
            color = 3 ;
            width = 12 ;
        }
    }
    spacer_1;
    ok_cancel;
}

代码完。