OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Emiliano on August 12, 2012, 12:57:00 AM

Title: Problem with "OnMouseEntered" event
Post by: Emiliano on August 12, 2012, 12:57:00 AM
Hello everyone,
I have a problem with the event "OnMouseEntered" placed on "Control Bars".

I have refined some native AutoCAD commands, eg. the command "copy".
Unfortunately when I start a command redefined, if the mouse stepped on the form is initiated the event "OnMouseEntered" causing the following error:
can not return to LISP.
Point is not valid.


and other possible side effects.  :'(

How do I prevent this?
Do you have any suggestions?
thanks
Title: Re: Problem with "OnMouseEntered" event
Post by: roy_043 on August 12, 2012, 02:38:35 AM
Try adding a (princ) statement to suppress the return value from the event handler.
Title: Re: Problem with "OnMouseEntered" event
Post by: owenwengerd on August 12, 2012, 04:40:15 AM
Maybe it will help to set your form's Event Invoke property to Asynchronous.
Title: Re: Problem with "OnMouseEntered" event
Post by: Emiliano on August 14, 2012, 12:57:21 AM
Quote from: owenwengerd on August 12, 2012, 04:40:15 AM
Maybe it will help to set your form's Event Invoke property to Asynchronous.

Ok, this is the right solution!
I hope, however, does not affect other parts of my application ... :'(