author=Emiliano link=topic=2389.msg11967#msg11967 date=1469105600 wrote:
[quote author=Fred Tomke link=topic=2389.msg11966#msg11966 date=1469096123]
"MyCommand" is a synonym for your desired command to be executed. I don't want to see the event handler names in the command history, especially those ones with additional arguments like ListView_OnClicked. Thats why, at first I call a internally defined function synchronously (c:project_form_button_OnClicked) and within its code I call a command asynchronously. The command is that one, which can be repeated by pressing enter.
Regards, Fred
Hi Fred
Now I understand!
Your solution works properly!
Too bad I have a few dozen buttons to correct :'(
Thanks for your help
Hi Fred,
I noticed a small problem born after implementing this.
In my ControlBar it is active the event 'MouseEntered'.
The "Event Invoke" was "asynchronous" so, while it was active a related function to a button of ControlBar if I passage over the ControlBar displays the message "Unable to return to LISP".
So I have tried to set Event Invoke = synchronous, so the problem is solved, but I want to prevent the MouseEntered event's operation when there is an active command.
To do this I checked the variable (if (= (getvar "CMDNAMES") "").....
I want to prevent the event activation 'MouseEntered' even during the execution of a LISP function.
How can I do?