[Newbies] Finding out a TextMorph cursor position

Scott Wallace madevu at pacbell.net
Mon Mar 17 20:02:09 UTC 2008


Hi, Marcus,

Try:

aTextMorph editor selectionInterval start

Cheers,

-- Scott


----- Original Message ----
From: Marcus Strehlow <marcus.strehlow at gmail.com>
To: beginners at 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 at lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20080317/97ff3453/attachment.htm


More information about the Beginners mailing list