What am I doing wrong?

Started by RGUS, April 10, 2014, 11:56:29 AM

Previous topic - Next topic

RGUS

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.

owenwengerd

You need to define your event handler *before* you show the form.

RGUS

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.

owenwengerd

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. It must be defined *before* you call (dcl-Form-Show). You can look at the OpenDCL samples to see a typical file structure.

RGUS

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.