 - (defun c:test ( / formfile dd ddtype)
-
- (defun showform (ziform / formname )
- (cond
- ((= ziform 1) (setq formname "qaz1"))
- ((= ziform 2) (setq formname "qaz2"))
- )
- (if (not (new_dialog formname formfile))
- (exit)
- )
- (setq fh (start_dialog))
- (if (= fh 1)
- (draw_qaz)
- )
- )
- (setvar "cmdecho" 0)
- (setq formfile (load_dialog "qaz.dcl"))
-
- (if (not (new_dialog "qaz" formfile))
- (exit)
- )
- (action_tile "an_1" "(setq ddtype 1)")
- (action_tile "an_2" "(setq ddtype 2)")
- (setq dd (start_dialog))
- (if (= dd 1)
- (showform ddtype)
- )
- (prin1)
- )
dcl并到一起
 - qaz:dialog{
- label="窗型";
- spacer_1;
- :row{
- :image_button{//图像按钮1-1
- color=-2;
- width=40;
- aspect_ratio=1;
- key="an_1";}
- :image_button{//图像按钮1-2
- color=-2;
- width=40;
- aspect_ratio=1;
- key="an_2";}
- ok_cancel;
- }}
- qaz1:dialog{
- label="窗型";
- spacer_1;
-
- :image_button{
- color=-2;
- width=40;
- aspect_ratio=1;
- key="an_4";}
- ok_cancel;
- }
- qaz2:dialog{
- label="窗型";
- spacer_1;
-
- :image_button{
- color=-2;
- width=40;
- aspect_ratio=1;
- key="an_3";}
- ok_cancel;
- }
|