Hello:

I'm using a ContextualMenu that is fired inside the MouseDown event of an EditField:

If IsContextualClick Then
 ContextualMenu1.Open
End If

to insert a text in the insertion point of the EditField.

The ContextualMenu1.Action looks like:

EditField1.SelText = Item

but the insertion point remains where I previously right-clicked to fire the contextual menu.

If I do:

PrevSelStart = EditField1.SelStart
EditField1.SelText = Item
EditField1.SelStart = PrevSelStart + Len(Item)

the insertion point still remains at the beginning of the inserted text.


EditField.SelStart works OK when issued outside the contextual menu.

I've been playing around with MouseDown and MouseUp events without success.

I need to place the insertion point at the end of the inserted text.

Any hint?

Thanks


Giuseppe Farese

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to