-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Urbach Sent: Wednesday, May 10, 2006 6:30 AM To: [EMAIL PROTECTED] Subject: Re: how to set the cursor position in TextMorph
Hi Celal, Better to know is what do you want to do. The accessor cursorWrapped: work very well and brings the curosor of the TextMorph to the right position. The little example below is how I try to get the answer on your question. "initialize the TextMorph" karl := TextMorph new openInWorld. karl contents: 'here comes the mouse'. "Show where the cursor is" Transcript show: karl cursor;cr. "result ==1" "change the position of the cursor" karl cursorWrapped: 6. "Show where the cursor is" Transcript show: karl cursor. "result == 6" Cheers, Frank -------- Original Message -------- Subject: how to set the cursor position in TextMorph (09-Mai-2006 19:47) From: Celal Ziftci <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] > Hi, > I am having problem in setting the cursor to a certain position in > TextMorph. I am trying the cursorWrapped: message, but it seems to be > not working (or I am misunderstanding its meaning). Any help or pointers > would be appreciated. > Thanks, > > - Celal Ziftci > _______________________________________________ Beginners mailing list [email protected] http://lists.squeakfoundation.org/mailman/listinfo/beginners
