第一次已在对话框中填了多项数据,第二次使用对话框时所有的编辑栏都是空白,但第一次填的数据大部分可重复利用,为省事,用什么方法可让第一次填入的数据在第二次调用对话框时在编辑栏内全部显示并可用,只对不同的数据进行修改即可? 已编的函数如下: (defun c:cp() (setvar"cmdecho" 0) (setq dcl_id (load_dialog "cp")) (new_dialog "cp" dcl_id) (ACTION_TILE "accept" "(cxh) (DONE_DIALOG)") (START_DIALOG) (command "_pline" (list x1 y1) (list x2 y2) "") ) (defun cxh() (setq k (get_tile "k")) (setq x1 (atof (get_tile "x1"))) (setq y1 (atof (get_tile "y1"))) (setq x2 (atof (get_tile "x2"))) (setq y2 (atof (get_tile "y2"))) )
cp:dialog{ :row{ :boxed_column{ :row{ :edit_box{label="位置";key="K" ; edit_width=13; }} }} :row{ :boxed_column{ :text{ label=" X Y"; alignment=centered; } :row{ :edit_box{label="坐 标 1 ";key="x1" ; edit_width=5; } :edit_box{label="";key="y1" ; edit_width=4; } } :row{ :edit_box{label="坐 标 2 ";key="x2" ; edit_width=5; } :edit_box{label="";key="y2" ; edit_width=4; } }} } spacer_1; ok_cancel; } |