Hi Laurent,

The trick with a view cursor will work
I didn't try this as i was searching for Non-view methods

No View no lines I'd say :-)
The XTextRange doesn't know in how many lines it will be displayed and so can't tell you how many lines it contains.


Nevertheless, i'll save the current selection before and restore it at the end. But his will flicker for the user ...

using thiscomponent.lockControllers at the beginning of the macro and thiscomponent.unlockControllers at the end should avoid the flicker.

Regards

Stephan

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



Reply via email to