close dialog box isnt closing

Started by andrew, July 29, 2013, 09:10:37 AM

Previous topic - Next topic

andrew

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

owenwengerd

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).
Owen Wengerd (Outside The Box) / ManuSoft

andrew

 :o :o i knew it was something stupid like that... thanks Owen