Felix E. Klee wrote: > Am Donnerstag, 19. Januar 2006 21:31 schrieb Mathias Bauer: >> If the tip from Martin really works your message box should appear in > ^^^ > What tip? He explained how things are coded.
His tip was: "I didn't try it, but perhaps this might help: Document.getCurrentController().getFrame().getContainerWindow().toFront()" >> front of the new document if you created it *after* putting the new >> window to front. > > No, unless my memory fails badly on me, it doesn't: Even if I put the new > window in front before creating the message box, the message will appear in > front of the old window. But if I add a "Wait 1" before displaying the > MsgBox, the message box appears in front of the new window! This is as I said: the WM works asynchronously so it takes some time that the window *really* comes to front. The message box is a clear indicator: it always takes the OOo window that has the focus as its parent. So if it takes the "old" window this one obviously still has the focus because the WM until then didn't move the focus to the new window. Ciao, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
