对话框问题本人刚学LISP 但是对话框始终调用不出来 下边是我写的简单代码 各位看看是哪里调用的不对 谢谢大家了 下边是LSP文件
代码:
(defun getdata()
(setq a (atof (get_tile "a")))
)
(defun c:colll ()
(setvar "cmdecho" 1)
(setq id (load_dialog "colll"))
(new_dialog "colll" id)
(set_tile "a" (rtos a 2 2))
(start_dialog)
(action_tile "accept" "(getdata)(done_dialog 1)")
(action_tile "cancel" "(done_dialog 0)")
(command "pline" (list 0 0) (list a 0))
)
下边是dcl文件
代码:
colll:dialog{
label="旋风分离器参数设置";
:column {
:edit_box{label="长度=";
key="a";
}
}
ok_cancel;
}
|