vl-cmdf or command while palette form is open

Started by LogicTools, January 11, 2021, 01:11:11 PM

Previous topic - Next topic

LogicTools

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.

LogicTools


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