Visual LISP, AutoLISP and General Customization

Reply
*Isaacs, Woody
Message 1 of 4 (33 Views)

Dialog Boxes.

33 Views, 3 Replies
01-28-2000 01:13 PM
I have developed a DCL and lisp code for a simple dialog box with one toggle
and a column of radio buttons. I am experienced in lisp but this is my
first time creating a dialog. I have reviewed the Autodesk information
regarding callbacks but can't seem to get it right. Could anyone provide
lisp code for a simple DCL to help steer me in the right direction in terms
of the required callbacks and ending the dialog? I would most appreciate
it.
*Tovar, Rudy
Message 2 of 4 (33 Views)

Re: Dialog Boxes.

01-28-2000 02:18 PM in reply to: *Isaacs, Woody
Hello Woody.

Sample Lisp for dcl call below
======================
;
; Lisp Skeleton for Dialog: sample
;
(defun C:sample (/ dcl_id)
(setq dcl_id (load_dialog "C:\\sample.dcl"))
(if (not (new_dialog "sample" dcl_id)) (exit))
;
(action_tile "accept" "(done_dialog)")
(action_tile "cancel" "(done_dialog)")
;
(start_dialog)
(unload_dialog dcl_id)
(princ)
)
;
(defun default_action (key)
(alert (strcat "The key for the tile selected is \n\"" key "\""))
)
;
(princ "Function Name(s) defined: sample ")
(princ)

Sample.dcl listed below
=================

dcl_settings : default_dcl_settings { audit_level = 3 ; }
sample : dialog {
label = "Sample" ;
ok_cancel ;
}

--
Rudy@whainc.com
"Automation Equal Imagination..." - "Automating Success"
Programmer/Developer/MIS Assist.
www.wharchitects.com

Woody Isaacs wrote in article
<86t0ga$nnl24@adesknews2.autodesk.com>...
> I have developed a DCL and lisp code for a simple dialog box with one
toggle
> and a column of radio buttons. I am experienced in lisp but this is my
> first time creating a dialog. I have reviewed the Autodesk information
> regarding callbacks but can't seem to get it right. Could anyone provide
> lisp code for a simple DCL to help steer me in the right direction in
terms
> of the required callbacks and ending the dialog? I would most appreciate
> it.
>
>
>
*Georgescu, Sorin
Message 3 of 4 (33 Views)

Re: Dialog Boxes.

01-28-2000 02:22 PM in reply to: *Isaacs, Woody
You'l find an example of lisp code and dcl file in the attached files. They
are not exactly what you need
but it works and maybe it will help you with the relation between the lsp
and the associated dcl file. See
the key attribute of the element in the dcl file and the corresponding
get_tile function in the lsp file.

Sorin

"Woody Isaacs" wrote in message
news:86t0ga$nnl24@adesknews2.autodesk.com...
> I have developed a DCL and lisp code for a simple dialog box with one
toggle
> and a column of radio buttons. I am experienced in lisp but this is my
> first time creating a dialog. I have reviewed the Autodesk information
> regarding callbacks but can't seem to get it right. Could anyone provide
> lisp code for a simple DCL to help steer me in the right direction in
terms
> of the required callbacks and ending the dialog? I would most appreciate
> it.
>
>
*Doerr, Michael
Message 4 of 4 (33 Views)

Re: Dialog Boxes.

01-30-2000 10:57 PM in reply to: *Isaacs, Woody
Hi Woody,

there is a very good tutorial about dialogue boxes at "afralisp":

http://afralisp.hypermart.net/tutor.htm

Look at "dialogue boxes step by step".

Hope this helps,
Michael

Woody Isaacs schrieb in Nachricht <86t0ga$nnl24@adesknews2.autodesk.com>...
>I have developed a DCL and lisp code for a simple dialog box with one
toggle
>and a column of radio buttons. I am experienced in lisp but this is my
>first time creating a dialog. I have reviewed the Autodesk information
>regarding callbacks but can't seem to get it right. Could anyone provide
>lisp code for a simple DCL to help steer me in the right direction in terms
>of the required callbacks and ending the dialog? I would most appreciate
>it.
>
>

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community