On Thu, 2005-02-10 at 01:05, Mathias Bauer wrote:
> Hi Ian,
>
> I can answer only a part of your questions, but that's a start. :-)
>
> Ian Laurenson wrote:
>
> > In 1.9.74 I can't change the statusIndicator with the following code,
> > which works 1.1.4. Is this a bug or policy change?
> >
> > oStatus = ThisComponent.CurrentController.Frame.createStatusIndicator
> > oStatus.setText("Hello World")
>
> If m74 the statusbar had a bug, please check with the next milestone (or
> the beta if there won't be another milestone before it).
>
That is good news!
> > How does one create, via the API, a new window of ThisComponent?
> > Is it possible to have this window hidden, and the ViewCursor still
> > work?
>
> Currently it's only possible through the dispatch API and it can't be
> created in hidden mode.
>
Not so good news.
But I can use something like this:
oFrame = ThisComponent.CurrentController.Frame
oDispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
oDispatcher.executeDispatch(oFrame, ".uno:NewWindow", "", 0, Array())
oHiddenDoc = thisComponent
oHiddenDoc.currentController.frame.containerWindow.setVisible(false)
oInvisibleVC = oHiddenDoc.currentController.viewCursor
oInvisibleVC.gotoStartofLine(true)
msgbox len(oInvisibleVC.string)
oHiddenDoc.currentController.frame.dispose
Thanks - you have helped me a lot!
Thanks, Ian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]