OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: docsaintly on April 01, 2009, 12:45:37 PM

Title: Form rename bug
Post by: docsaintly on April 01, 2009, 12:45:37 PM
While working on my project I decided to rename the main form (modeless dialog). I updated my lisp code to the new name but noticed it wouldn't work. I went to the ODCL editor and saw that it still had the initialize function mapped to the old name. By unchecking and rechecking the event box it fixed the problem.
Title: Re: Form rename bug
Post by: BazzaCAD on April 01, 2009, 12:48:52 PM
Yes this is by design or a know limitation. Glad you where able to figure it out.
Title: Re: Form rename bug
Post by: owenwengerd on April 01, 2009, 01:41:43 PM
This is by design. It works this way because, unlike control names with VarName left empty, event names always get stored as complete function names that have no connection to the form and/or control names. Once an event is enabled, you can leave the assigned name or change it to your heart's content, and the name remains completely independent of the form name.