Worked perfectly Mark.  Thank you very much.

Regards,
Michael


On Mar 23, 2006, at 2:07 AM, realbasic-nug- [EMAIL PROTECTED] wrote:

Message: 15
Subject: Re: Editfields (Inserting at the current cursor position)
From: "Marc Zeedar" <[EMAIL PROTECTED]>
Date: Thu, 23 Mar 2006 05:14:13 -0000 (GMT)


On Thu, March 23, 2006 4:39 am, Michael Williams wrote:
Is there any way to insert an item at the current cursor position
inside an EditField?

editField1.selText = "RETURN" should do it (where editField1 is your
editField).

This IS slightly unintuitive -- I know it confused me way back when --
since no text is actually selected and ".selText" implies something to do with selected text. But with no text selected, this just puts text at the
cursor postion.


--
Marc Zeedar
Publisher
REALbasic Developer Magazine
http://www.rbdeveloper.com

_______________________________________________
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