logo       

Finding out a TextMorph cursor position: msg#00115

lang.smalltalk.squeak.beginners

Subject: 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



-- 
iMac -- 20 inch -- Core 2, 2 GHz -- 1 GB RAM -- Superdrive -- Mac OS X Leopard 10.5.2
MacBook -- 13.3 inch -- Core 2, 1.83 GHz -- 1.5 GB RAM -- Combodrive -- Mac OS X Leopard 10.5.2
iMac G5 -- 17 inch -- PPC G5 1.8 GHz -- 1 GB RAM -- Superdrive -- Mac OS X Leopard 10.5.2
iPod touch -- 16 GB -- Software Upgrade -- OS X 1.1.4

_______________________________________________
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