Re: [dev] How to bring OpenOffice window to front

2006-02-07 Thread Christian Junker
You might wanna look at the source code implementation of the
IsAlwaysOnTop property of the css::presentation::Presentation service
because I think it goes down to using the Win API on Win32. No
guarantees whatsoever about whether it really does, because I have not
taken looks, I just conclude from its behavior I have experienced in
some situations.

But yes as already said, I don't think there is a nice way and
actually in the OOo API there is no way as far as I know. If something
like this would get included, I propose it to be attached to the
css::frame::Desktop service, since that resembles the OOo GUI
environment.

2006/2/2, Matthias Benkmann [EMAIL PROTECTED]:
 I have the problem that when I launch a new OOo window with
 loadComponentFromURL() it doesn't always come to the front. Sometimes
 its button just blinks in the Windows task bar and I have to click it
 manually to bring it to the front. Is there a way to programmatically
 bring the window to the front?
 XTopWindow.toFront() and XWindow.setFocus() don't do the trick as they
 only work relative to other OOo windows not non-OOo windows.


--
Best Regards
Christian Junker

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



Re: [dev] How to bring OpenOffice window to front

2006-02-04 Thread Mathias Bauer
Henrik Sundberg wrote:

 There is a way to allow background programs to bring up windows in the
 front even in XP. I don't remember how though.

Yes, but it is bad coding style to work against the system guide lines.
Such a special behavior should be reserved for special programs or
special situations. Opening a window in OOo is neither of them.

Best regards,
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]



Re: [dev] How to bring OpenOffice window to front

2006-02-03 Thread Henrik Sundberg
There is a way to allow background programs to bring up windows in the
front even in XP. I don't remember how though.
Sorry.
/$

2006/2/3, Mathias Bauer [EMAIL PROTECTED]:
 Matthias Benkmann wrote:

  I have the problem that when I launch a new OOo window with
  loadComponentFromURL() it doesn't always come to the front. Sometimes
  its button just blinks in the Windows task bar and I have to click it
  manually to bring it to the front. Is there a way to programmatically
  bring the window to the front?
  XTopWindow.toFront() and XWindow.setFocus() don't do the trick as they
  only work relative to other OOo windows not non-OOo windows.

 IIRC this is a feature of your operating system.

 If an application running in the background creates a new task window
 Windows XP will not bring it to front but instead lets it flash in the
 taskbar. The same code(!) on Windows 98 will bring the window to front
 IIRC. Only if the application that opens a new window is in the
 foreground the new window immediately comes to the front.

 So overall I'd say that this is the desired behavior on this platform,
 nothing inside OOo that can overrule it.

 Best regards,
 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]



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



[dev] How to bring OpenOffice window to front

2006-02-02 Thread Matthias Benkmann
I have the problem that when I launch a new OOo window with
loadComponentFromURL() it doesn't always come to the front. Sometimes
its button just blinks in the Windows task bar and I have to click it
manually to bring it to the front. Is there a way to programmatically
bring the window to the front?
XTopWindow.toFront() and XWindow.setFocus() don't do the trick as they
only work relative to other OOo windows not non-OOo windows.

Matthias

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



Re: [dev] How to bring OpenOffice window to front

2006-02-02 Thread Mathias Bauer
Matthias Benkmann wrote:

 I have the problem that when I launch a new OOo window with
 loadComponentFromURL() it doesn't always come to the front. Sometimes
 its button just blinks in the Windows task bar and I have to click it
 manually to bring it to the front. Is there a way to programmatically
 bring the window to the front?
 XTopWindow.toFront() and XWindow.setFocus() don't do the trick as they
 only work relative to other OOo windows not non-OOo windows.

IIRC this is a feature of your operating system.

If an application running in the background creates a new task window
Windows XP will not bring it to front but instead lets it flash in the
taskbar. The same code(!) on Windows 98 will bring the window to front
IIRC. Only if the application that opens a new window is in the
foreground the new window immediately comes to the front.

So overall I'd say that this is the desired behavior on this platform,
nothing inside OOo that can overrule it.

Best regards,
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]