I initially posted a similar message to [EMAIL PROTECTED]
and Mathias suggested the gsl team.

My problem is that I can not, easily, get OpenOffice to be the top
window by BASIC code after calling another program (in this case
Firefox) in Linux.

For the Mac I got around this problem with a call to Applescript.

In OOo BASIC I have tried:
Stardesktop.activate  doesn't work.
thisComponent.currentController.Frame.Activate doesn't work.
A UNO dispatch call for "Activate" doesn't work.

As well as Mathias' suggestions below.

However, a MSGBOX does bring OOo to the front. But there must be a way
of bringing OOo to the front without the user having to click away an
annoying msgbox.

Any suggestions will be gratefully received.

Cheers,
Ian Laurenson


Ian Laurenson schrieb:

> On Fri, 2007-06-22 at 18:09 +0200, Mathias Bauer wrote:
>> Ian Laurenson schrieb:
>> [snip] But, I can't, easily, get OOo to be the
>> > window that is on top.
>> >[snip]
>> 
>> Desktop.getActiveFrame().getContainerWindow().toFront()
>> 
>> or
>> 
>> Desktop.getActiveFrame().getContainerWindow().setFocus()
> 
> 
> Thanks, but neither of these commands brings the OOo window to the
> front. I am using OOo 2.2.0 [680m14 (Build:9134)] on Suse10.2 running
> KDE.

If that doesn't work VCL must be doing something special in case the
message box appears. I don't think that an API is available to achieve
that. But the people of the gsl team should know better.


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

Reply via email to