Hi Celal, I don´t have a squeak image at hand so I can't give you exact names or working code, but what you need need to do is to check the class ParagraphEditor (or something like that).<br><br>The text cursor (the caret) in Squeak is what in the text input classes is called an editor. The caret, is not really a cursor but a visual representation of the selection, which when has a size 0 looks like a normal cursor. 
<br><br>Look at the ParagraphEditor and look at the method categories, and you will surely find methods that deals with cursor movement. Actually, somewhere in there you will find the exact code that is executed each time an arrow key is pressed. 
<br><br>Regards,<br>Hernán<br><br><div><span class="gmail_quote">On 5/10/06, <b class="gmail_sendername">Celal Ziftci</b> &lt;<a href="mailto:celalziftci@gmail.com">celalziftci@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi Frank,<br>I think I'm getting the meaning of cursor wrong.<br>So basicly what I want to do is the following. I want to set the caret<br>position in the textmorph using some smalltalk code instead of using the<br>mouse.
<br>As an example, assume I have the following text in a textmorph and | is<br>the place my caret is currently at:<br><br>smallt|alk<br><br>Now I want to move the caret to another place like:<br>sm|alltalk<br><br>but not by clicking there, using some code instead.
<br>Is this possible at all? Do I need to imitate firing an event (something<br>like mouse down event)?<br>Thanks for any help.<br><br>- Celal Ziftci<br><br><br>-------------------------------------------------------------------------------------------------------------
<br><br>-------------------------------------------------------------------------------------------------------------<br><br>-------------------------------------------------------------------------------------------------------------
<br><br><br><br>&gt; Hi Celal,<br><br><br>&gt; Better to know is what do you want to do. The accessor cursorWrapped:<br>&gt; work very well and brings the curosor of the TextMorph to the right<br>&gt; position. The little example below is how I try to get the answer on
<br>&gt; your question.<br><br><br>&gt; &quot;initialize the TextMorph&quot;<br>&gt; karl := TextMorph new openInWorld. karl contents: 'here comes the mouse'.<br><br><br>&gt; &quot;Show where the cursor is&quot;<br>&gt; Transcript show: karl cursor;cr.
<br>&gt; &quot;result ==1&quot;<br><br><br>&gt; &quot;change the position of the cursor&quot;<br>&gt; karl cursorWrapped: 6.<br><br><br>&gt; &quot;Show where the cursor is&quot;<br>&gt; Transcript show: karl cursor.<br>&gt; &quot;result == 6&quot;
<br><br><br>&gt; Cheers,<br>&gt;&nbsp;&nbsp; Frank<br><br><br>-------- Original Message --------<br>Subject: how to set the cursor position in TextMorph (09-Mai-2006 19:47)<br>From:&nbsp;&nbsp;&nbsp;&nbsp;Celal Ziftci &lt;<a href="mailto:celalziftci@gmail.com">
celalziftci@gmail.com</a>&gt;<br>To:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:frank.urbach@schmees.com">frank.urbach@schmees.com</a><br><br>&gt;&gt; Hi,<br>&gt;&gt; I am having problem in setting the cursor to a certain position in<br>&gt;&gt; TextMorph. I am trying the cursorWrapped: message, but it seems to be
<br>&gt;&gt; not working (or I am misunderstanding its meaning). Any help or<br>&gt;&gt; pointers would be appreciated.<br>&gt;&gt; Thanks,<br>&gt;&gt;<br>&gt;&gt; - Celal Ziftci<br>&gt;<br>&gt;<br><br><br></blockquote></div>
<br><br clear="all"><br>-- <br>Saludos,<br>Hernán<br>