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.



you can also play with the status bar to let know the user that something is working and that OOod id not freeze (who would think about this possibility !!)


example

pgb = ThisComponent.CurrentController.StatusIndicator
pgb.reset
pgb.start("a message",9)

for i=0 to 9
        pgb.setvalue(i)
        wait 500
next i
...
....
pgb.reset
pgb.end

HTH

Laurent

--
Laurent Godard <[EMAIL PROTECTED]> - Ing�nierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to