spacer.
Dialogue Without Spacer
Dialogue With Spacer
Syntax:
: spacer {
alignment fixed_height fixed_width
height width
}
DCL Coding:
lisp48q : dialog { //dialog name
label = "spacer" ; //give it a label
: button { //define button
key = "btn1"; //give it a name
label = "Button1"; //give it a label
fixed_width = true; //fix it's width
alignment = centered; //center it
} //end button
: spacer { //define space
height = 3; //define height
} //end spacer
: button { //define button
key = "btn2"; //give it a name
label = "Button1"; //give it a label
fixed_width = true; //fix it's width
alignment = centered; //center it
} //end button
ok_cancel ; //predefined OK/Cancel button
} //end dialog
AutoLisp Coding:
(defun C:lisp48q ()
;define function
(setq dcl_id (load_dialog "lisp48q.dcl"))
;load dialog
(if (not (new_dialog "lisp48q" 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)
|