Once the macro has finsihed you call endExecute() on the dialog and it should return to the document again.
I would assign the receiving focus event to the function that calls your main macro and when done calls dialog.setEnable(True) and then .endExecute().
I also noticed that in 1.9.m74 event assignment for dialog controls is broken, so be aware of that if you're using development builds.
Best Regards Christian Junker
Peter Eberlein wrote:
Hi Laurent, hi Christian, Laurent Godard schrieb:
Hi,
I can only agree with Laurent, the second way by locking the controllers would be the best option, I think.
That way you can be very sure that your macro gets executed from beginning to end without any disturbance.
for me this does not work like expected. LockControllers only disables writing into document and the toolbar buttons, not the menubar and shortkeys (1.9.74 & WinNT).
Peter
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
