spacer_1.
Dialogue Without Spacer_1
Dialogue With Spacer_1
Syntax:
spacer_1;
The spacer_1 tile is defined in the Base.Dcl file.
DCL Coding:
lisp48s : dialog { //dialog name
label = "spacer_1" ; //give it a label
: row { //define row
: radio_button { //define radio button
label = "1"; //give it a label
key = "rb1"; //give it a name
value = "1"; //switch it on
} //end radio button
: radio_button { //define radio button
label = "2"; //give it a label
key = "rb2"; //give it a name
} //end radio button
spacer_1; //add spacer_1
: radio_button { //define radio button
label = "3"; //give it a label
key = "rb3"; //give it a name
} //end radio button
} //end row
ok_cancel ; //predefined OK/Cancel button
} //end dialog
AutoLisp Coding:
(defun C:lisp48s ()
;define function
(setq dcl_id (load_dialog "lisp48s.dcl"))
;load dialog
(if (not (new_dialog "lisp48s" dcl_id)
;test for dialog
);not
(exit)
;exit if no dialog
);if
(action_tile
"accept"
;if O.K. pressed
"(done_dialog) (setq userclick T)"
;close dialog, set flag
);action tile
(action_tile
"cancel"
;if cancel button pressed
"(done_dialog) (setq userclick nil)"
;close dialog, lower flag
);action_tile
(start_dialog)
;start dialog
(unload_dialog dcl_id)
;unload
(if userclick
;if OK selected
(alert "You selected OK")
;inform the user
(alert "You selected Cancel")
;inform the user
);if
(princ)
);defun
(princ)
|