OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: marcoheuer on May 18, 2016, 02:08:53 AM

Title: button with asynchronous event handler, clear command line
Post by: marcoheuer on May 18, 2016, 02:08:53 AM
hello,
i have a modeless dialog and a button with asynchronous event handler.
if i click the button and the command line is not clear or an other command is active, then i get an error.

how can i clear the command line or cancel an active command?

thanks and regards
marco
Title: Re: button with asynchronous event handler, clear command line
Post by: Fred Tomke on May 18, 2016, 02:29:45 AM
Hi, Marco, if I remember right, you should place a ^C^C right before the handler name in the events tab.
Regards, Fred
Title: Re: button with asynchronous event handler, clear command line
Post by: marcoheuer on May 18, 2016, 02:41:31 AM
hello fred,
thanks for the answer. this work.

but now i have two *cancel* in the console. can i suppress this somehow?

regards
marco
Title: Re: button with asynchronous event handler, clear command line
Post by: Fred Tomke on May 18, 2016, 02:45:44 AM
I fear, you can't.
I remember to get it also selecting any non-transparent AutoCAD-command from the ribbon bar.
Regards, Fred
Title: Re: button with asynchronous event handler, clear command line
Post by: marcoheuer on May 18, 2016, 02:57:34 AM
that's a pity

regards
marco