OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: andrew on July 29, 2013, 09:10:37 AM

Title: close dialog box isnt closing
Post by: andrew on July 29, 2013, 09:10:37 AM
im sure its something im doing, or not doing
or maybe i dont have something in the right order
i even tried to strip the code down to just call the dialog and close it with a button and it still doesnt close.

maybe someone can look at this and tell me why?

attached are my files
thanks
Title: Re: close dialog box isnt closing
Post by: owenwengerd on July 29, 2013, 09:57:56 AM
The problem is that your event handlers are not defined until after the form is closed. Put your event handler defun's at the beginning of your (defun C:BL), or keep them global (i.e. define them outside the C:BL function scope). In any case, they should be defined *before* your code displays the form with (dcl_Form_Show).
Title: Re: close dialog box isnt closing
Post by: andrew on July 29, 2013, 10:25:11 AM
 :o :o i knew it was something stupid like that... thanks Owen