Form behaves differently after loading lsp in vlide - why?

Started by mkweaver, May 11, 2009, 12:17:22 PM

Previous topic - Next topic

mkweaver

The attached file - odcl and lisp - behaves differently after I load the lsp in the vlisp ide.  Specifically, prior to the load I often get cancel even when I select the Okay dialog.  After loading in the vlide it always seems to work correctly.  The lsp file includes a c:test function.

What am I doing wrong?

Thanks,
Mike Weaver

Edit: could someone please move this to the runtime / autolisp forum?

Fred Tomke

Hello,

1. deactivate the cancel event
2. do never call the close method within an event which is called when the form is going to be closed (OnCancel, OnClose, OnCancelClose, ...)
3. don't set mlb:okay to nil in events which are also called at the time when the form is going to be closed but not cancelled (OnCancelClose, OnClose, ...)
4. I often write a line on top of each event for debugging to get known what OpenDCL is returning back. On the other hand you recognize when will which event be fired.

Code (autolisp) Select

(defun c:MultiSelectListBox_Form1_OnCancel (/)
  (princ "\nOnCancel\r")
); c:MultiSelectListBox_Form1_OnCancel


Please try the LSP I attached. It worked also without VLIDE on my workstation.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]