OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: LogicTools on January 11, 2021, 01:11:11 PM

Title: vl-cmdf or command while palette form is open
Post by: LogicTools on January 11, 2021, 01:11:11 PM
I have create modal dialogs to deal with insertions of components into the drawing.
Every one of them works perfect. The modal dialog opens, the user selects the insertion, the modal dialog closes and the lisp function works no problem.
But if I call the modal dialogs from an #OnDblClicked event on a palette that stays open after the call, all the vl-cmdf or command in the program are not executed.
I have read around about command-s or vla-sendcommand to solve the problem, but that will mean to have to change a lot of code in the whole app, so I will love to know if there is an easier solution to this.

Thanks.
Title: Re: vl-cmdf or command while palette form is open
Post by: LogicTools on January 12, 2021, 07:28:13 PM

Setting to 1 SetEventInvoke on the event handler control does the trick and allows vl-cmdf or command to work.