Mathias Röllig wrote:

> Hello Mathias!
> 
>>> I have a calc template with macros and a dialog in it.
>>> The main macro is bound to the event "create document" of the template.
>>> The macro loads the dialog.
>>>
>>> If i double click the template file (linux, ubuntu) and a other
>>> OOo-window is open, the dialog starts behind the new document in front
>>> of the former top OOo-window.
>>
>> That is strange. The events "Create/OpenDocument" have been defined in a
>> way that they won't be fired before the document they belong to got the
>> focus for the first time. I'm pretty sure this works well for "Open
>> Document", may be "Create Document" has a bug. Can you test if the macro
>> works fine if you assing it to the "Open Document" event of the template
>> and then open the template for editing?
> 
> It's the same behavior with a *.ods if i assign the macro to "Open
> Document". (With the template it has no effect by double clicking it. ;-) )

That's why I wrote "open for editing" (e.g. from the template dialog).
But of course using an ods is fine. So it looks as something worth
investigating. Could you please send me the ods file? I would like to
have a closer look.

>> BTW: which platform?
> 
> How i wrote in the 2. paragraph: Linux/Ubuntu.
Oops, I re-read your mail but didn't spot it. Sorry.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

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

Reply via email to