|
发表于 2003-2-9 16:10:00
|
显示全部楼层
(defun C:HELLO( / dcl_id )
(setq dcl_id (load_dialog "d:/tmp.dcl"))
;问题出在这里,如果(new_dialog "hello" dcl_id)成功,则你无法再去控制对话框了.
;(if (not (new_dialog "hello" dcl_id))
; (exit)
;)
(if (new_dialog "hello" dcl_id)
(progn
(start_list "test" 2)
(add_list "comghit")
(add_list "comghit")
(end_list)
(start_dialog)
(unload_dialog dcl_id)
(print dcl_id)
)
)
(princ)
)
hello:dialog{
label="hello";
:popup_list {
label="";
key="test";
width=15;
list="1";
}
: row {
fixed_width = true;
alignment = right;
: button {
label = "下一步";
key = "next";
width = 8;
}
: button {
label = "取消";
key = "cancel";
is_cancel = true;
width = 8;
}
}
} |
|