Hi carsten

Thanks for your response

Great news for OOo2.0
Unfortunatally, i have to do that under 1.1.x :(


My problem is that if i deploy my macro as a regular addon, it blocks the main toolbar until it finishes


Ok, now I see your problem. Normally this shouldn't happen as Basic yields internally and make the UI accessible. Is it possible to send me an example of your code, so we can investigate this problem?


Well something like (simplified)

dim endLoop as boolean

sub test
endLoop = false
while not endLoop
        wait 50
wend
end sub

sub myStopButton
        endLoop  = true
end sub

in fact, the problem is independant of addon deployement
just a plugged macro (sub test) on the toolbar shows the problem

put a button on nthe doc that call the myStoButton

When launching the test macro, yopu can not use the floppy icon o save

If not possible using pkgchk, a script modifying the fiel should to the trick but is dirty and bad (R)


Ok, that's possible, but as you already mentioned it's a dirty and bad solution. Users must restart OOo to see your new toolbar and we cannot guarantee you that this will work in the future.


Ok, that's a way

an other possibility is to deploy this toolbar inside a model
would it work : having a custom toolbar inside a model pointing on a installed macro


Tanks again for your response

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