logo       

Re: Finding out a TextMorph cursor position: msg#00116

lang.smalltalk.squeak.beginners

Subject: Re: Finding out a TextMorph cursor position

Hi, Marcus,

Try:

aTextMorph editor selectionInterval start

Cheers,

-- Scott


----- Original Message ----
From: Marcus Strehlow <marcus.strehlow@xxxxxxxxx>
To: beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
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 th e 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@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise