[LISP函数-DCL]:DCL常用Lisp函数
;;填充列表
;; key==keyval == Listitem - 默认值
(defun $XDDCL_AddList (key val item)
(start_list key)
(foreach n val
(add_list n)
)
(end_list)
(set_tile key (itoa item))
)
;;绘制Image
;; key--- key sldname --- slidecolor -- backgroud
(defun $XDDCL_SlideImage (key sldname color / x y)
(setq x (dimx_tile key)
y (dimy_tile key)
)
(start_image key)
(fill_image 0 0 x y color)
(slide_image 0 0 x y sldname)
(end_image)
)
;;填充颜色
(defun $XDDCL_ImageFillColor (key color)
(setq x (dimx_tile key)
y (dimy_tile key)
)
(start_image key)
(fill_image 0 0 x y color)
(slide_image 0 0 x y key)
(end_image)
(mode_tile key 1)
)
(defun $XDDCL_ImageCrlDisable (key)
(mapcar
'(lambda (x)
($XDDCL_ImageFillColor x 253)
)
key
)
)
;;启用按钮
(defun $XDDCL_CtrlEnable (clist)
(mapcar
'(lambda (x)
(mode_tile x 0)
)
clist
)
)
;;禁用按钮
(defun $XDDCL_CtrlDisable (clist)
(mapcar
'(lambda (x)
(mode_tile x 1)
)
clist
)
) ;;给我不选择的自由!
(defun $XDDCL_AddList (key val item)
(start_list key)
(foreach n val
(add_list n)
)
(end_list)
(if item (set_tile key (itoa item)))
)
后来才知道 :loveliness:后来才知:o 备注研究一下 {:1_1:}收藏,学习。
页:
[1]