也来一个:- ;; 需要e派工具箱的支持: http://xyp1964.ys168.com
- (defun c:tt (/ ilst)
- (defun abu ()
- (xyp-Dcl-Gettile '("t1"))
- (if (not (member t1 lst-tx))
- (setq lst-tx (cons t1 lst-tx))
- )
- (xyp-Show-List "li" lst-tx)
- )
- (defun ali ()
- (xyp-Dcl-Gettile '("li"))
- (alert (nth (atoi li) lst-tx))
- )
- (xyp-initSet '(li t1) '("0" ""))
- (setq lst-tx (if lst-tx
- lst-tx
- '()
- )
- ilst '(("li" "" "list" "lst-tx" "8" "10" "(ali)")
- ":row{"
- ("t1" "文本" "str" "12")
- ("bu" "添加" "button1" "(abu)")
- "}"
- "spacer;"
- )
- )
- (xyp-Dcl-Init Ilst "【测试】" t)
- (princ)
- )
|