;; 对话框测试 (defun c:test758 () (setq klst '("bo0" "bo1" "bo2" "bo3" "bo4" "bo5" "bo6" "bo7" "bo8" "bo9")) (defun aaa () (xyp-Dcl-Gettile klst) (defun mt (key lst / a) (cond ((= key "1") (foreach a lst (mode_tile a 0))) ((= key "0") (foreach a lst (mode_tile a 1))) ) ) (mt bo0 '("t00" "t01")) (mt bo1 '("t10" "t11")) (mt bo2 '("t20" "t21")) (mt bo3 '("t30" "t31")) (mt bo4 '("t40" "t41")) (mt bo5 '("t50" "t51")) (mt bo6 '("t60" "t61")) (mt bo7 '("t70" "t71")) (mt bo8 '("t80" "t81")) (mt bo9 '("t90" "t91")) ) (defun bbb () (foreach a klst (set_tile a "1")) (aaa) ) (defun ccc () (foreach a klst (set_tile a "0")) (aaa) ) (xyp-initSet '(bo0 t00 t01 bo1 t10 t11 bo2 t20 t21 bo3 t30 t31 bo4 t40 t41 bo5 t50 t51 bo6 t60 t61 bo7 t70 t71 bo8 t80 t81 bo9 t90 t91 r1 r2 r3) '("0" "" "" "0" "" "" "0" "" "" "0" "" "" "0" "" "" "0" "" "" "0" "" "" "0" "" "" "0" "" "" "0" "" "" "1" "0" "0") ) (setq Ilst '((nil nil ":row{") ("bo0" "dist0" "bool" "(aaa)") ("t00" "" "str" "10") ("t01" "" "str" "10") (nil nil "}") (nil nil ":row{") ("bo1" "dist1" "bool" "(aaa)") ("t10" "" "str" "10") ("t11" "" "str" "10") (nil nil "}") (nil nil ":row{") ("bo2" "dist2" "bool" "(aaa)") ("t20" "" "str" "10") ("t21" "" "str" "10") (nil nil "}") (nil nil ":row{") ("bo3" "dist3" "bool" "(aaa)") ("t30" "" "str" "10") ("t31" "" "str" "10") (nil nil "}") (nil nil ":row{") ("bo4" "dist4" "bool" "(aaa)") ("t40" "" "str" "10") ("t41" "" "str" "10") (nil nil "}") (nil nil ":row{") ("bo5" "dist5" "bool" "(aaa)") ("t50" "" "str" "10") ("t51" "" "str" "10") (nil nil "}") (nil nil ":row{") ("bo6" "dist6" "bool" "(aaa)") ("t60" "" "str" "10") ("t61" "" "str" "10") (nil nil "}") (nil nil ":row{") ("bo7" "dist7" "bool" "(aaa)") ("t70" "" "str" "10") ("t71" "" "str" "10") (nil nil "}") (nil nil ":row{") ("bo8" "dist8" "bool" "(aaa)") ("t80" "" "str" "10") ("t81" "" "str" "10") (nil nil "}") (nil nil ":row{") ("bo9" "dist9" "bool" "(aaa)") ("t90" "" "str" "10") ("t91" "" "str" "10") (nil nil "}") (nil nil ":row{") ("bt1" "全选" "button1" "(bbb)") ("bt2" "全部取消" "button1" "(ccc)") (nil nil "}") (nil nil ":boxed_radio_row{label=\"操作\";") ("r1" "默认" "radio") ("r2" "代替" "radio") ("r3" "插入" "radio") (nil nil "}") (nil nil "user" "(aaa)") ) ) (if (= (xyp-Dcl-Init Ilst "【整体替换】" t) 1) (princ "TEST-OK") ) ) |