灬我爱我家 发表于 2016-10-16 14:46:47

CAD对话框中单选按钮设计的问题


如图 ,单选按钮想实现点击[焊内侧],左边显示焊内侧的图片,点击[焊外侧],左边显示焊外侧的图片,但是实际情况是,焊内侧和焊外侧的图片一起显示,不知道哪里出问题了?部分代码在下面(defun c:xxx()



(setq sdt 0 a 0 t 0)
(setq dcl_id (load_dialog "d:/AutoCAD2004/xxx/xxx.dcl"))
(if (< dcl_id 0)(exit))
(initdlg1)
(while (> sdt 3)

(if (= a 1)(initdlg2))
(if (= a 2)(initdlg3))

)
(unload_dialog dcl_id)
(if (= sdt 3) (draw_xxx))
(princ)
)

(defun initdlg1 ()
(if (not (new_dialog "xxx" dcl_id))(exit))
(action_tile "gl1" "(setq a 1)")
(action_tile "gl2" "(setq a 2)")
(action_tile "accept" "(done_dialog 4)")
(action_tile "cancel" "(done_dialog -1)")
(setq sdt (start_dialog))
)

(defun initdlg2 ()
(if (not (new_dialog <span style="line-height: 1.5;">"xxx1" </span><span style="line-height: 1.5;">dcl_id))(exit))</span>

xshrimp 发表于 2016-10-16 16:55:01

填充幻灯片的前(fill_image0 0 (dimx_tile key) (dimy_tile key) -15)

灬我爱我家 发表于 2016-10-17 10:26:55

非常感谢 问题已解决

技术工作室 发表于 2022-9-30 20:42:55

顶一个,
页: [1]
查看完整版本: CAD对话框中单选按钮设计的问题