RGUS
2014-04-10 18:56 UTC
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
2014-04-10 21:55 UTC
You need to define your event handler *before* you show the form.
RGUS
2014-04-11 01:19 UTC
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
2014-04-11 01:45 UTC
author=RGUS link=topic=2127.msg10559#msg10559 date=1397179171 wrote:
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
{2}. It must be defined *before* you call (dcl-Form-Show). You can look at the OpenDCL samples to see a typical file structure.
RGUS
2014-04-11 07:07 UTC
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.