Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index

Hi Andreas,

Thanks very much for pointing me to the .setSelection(aSelection) method.

I've experimented with it and I can get it to work sometimes but not
others.  (I think the problem lies within my Form.  I have macros that fire
when leaving certain fields and have the effect of moving the cursor
elsewhere from where I am trying to be!)

I'm away for the next week, so I have run out of time.  But I'm confident
that I'll now be able to sort it out when I return.

Regarding the MRI extension, I take it that it is similar to the XRay
extension.  Is it worth loading both?  They seem to do both similar and
different things.

Thanks again,

Marion & Noel Lodge

On 2 July Andreas Säger
via<> wrote:

All you need is the MRI extension.

Within seconds it can point you to method

The .setSelection(aSelection) method takes a struct specifying the start
position and the end position of your text selection.

MRI also generates snippets like this while using it:

 Sub Snippet(Optional oInitialTarget As Object)
  Dim oSource As Object
  Dim aSelection As New

  oSource = oInitialTarget.Source
  aSelection = oSource.getSelection()
End Sub

[Tutorial] Introduction into object inspection with MRI

Hope this helps,

For unsubscribe instructions e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.