OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: RGUS on April 10, 2014, 11:56:29 AM

Title: What am I doing wrong?
Post by: RGUS on April 10, 2014, 11:56:29 AM
Just trying to get a dialog box to close in ACAD 2015. OpenDCL 8.0.0.5
It will be obvious... but not to me.
Has the syntax changed for this version of OpenDCL?

Thanks for any pointers.
Title: Re: What am I doing wrong?
Post by: owenwengerd on April 10, 2014, 02:55:42 PM
You need to define your event handler *before* you show the form.
Title: Re: What am I doing wrong?
Post by: RGUS on April 10, 2014, 06:19:31 PM
Ok... what is an event handler.. where in the help file do I get help defining an event handler?
Previously, you loaded a project and 'showed' the form then closed the form and the dialog disappeared from the screen.
Title: Re: What am I doing wrong?
Post by: owenwengerd on April 10, 2014, 06:45:22 PM
Quote from: RGUS on April 10, 2014, 06:19:31 PM
Ok... what is an event handler.. where in the help file do I get help defining an event handler?

The function c:TEST/Form1/EXIT_BUTTON#OnClicked in your lisp file is an event handler (http://www.opendcl.com/HelpFiles/index.php?page=Usage/AutoLISP.htm). It must be defined *before* you call (dcl-Form-Show). You can look at the OpenDCL samples to see a typical file structure.
Title: Re: What am I doing wrong?
Post by: RGUS on April 11, 2014, 12:07:23 AM
Thanks Owen... I'll have to do a bit of study with my code... silly thing is it worked perfectly with ACAD 2014 and the latest previous version of OpenDCL ... but them's the curve balls I guess.