Hi, Marcus,

Try:

aTextMorph editor selectionInterval start

Cheers,

-- Scott


----- Original Message ----
From: Marcus Strehlow <marcus.strehlow@gmail.com>
To: beginners@lists.squeakfoundation.org
Sent: Monday, March 17, 2008 11:59:58 AM
Subject: [Newbies] Finding out a TextMorph cursor position

Hi guys,

short question. Is it possible to find out the cursor position of the cursor as I type? I mean in terms of a numerical position? Like when I type 'abc' into an empty field, the cursor position should be 3. But when I click somewhere, say between the a and b, the cursor location should return 1. Is it possible to find this out? For two hours I'm looking in any conceivable code and have not found anything for it.

Thanks guys

Marcus


Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners