Hi Fernand,
Fernand Vanrie schrieb:
Peter Eberlein wrote:
Hi,
I have to scan an XTextDocument for some patterns and to sort the
found XTextRanges by their visual representation.
So the XViewCursor's point (getPosition()) seem the only way to do
this (because the anchor of the textrange may differ).
For the user the moving of the cursor is annoying.
LockControllers() of the XModel can avoid this, but then the position
of the XViewCursor is wrong, if you jump with the ViewCursor to the
XTextRange.
Is there another way to turn off screenupdating and to circumvent the
problem with the XViewCursor?
First i was thinking on viewcursor.setvisible(false)
but this has no effect at all
then i remeber a forum discution an there i found a less-nice-solution
thisComponent.CurrentController.Frame.ContainerWindow.SetVisible(false)
....
....
thisComponent.CurrentController.Frame.ContainerWindow.SetVisible(true)
oh, hiding the document is no solution :(
other ideas?
Regards
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]