Re: [etoys-dev] How can I color one character of text?
Bert Freudenberg <[email protected]> Fri, 15 Mar 2013 01:25:45 +0100
| Newsgroups | gmane.comp.lang.smalltalk.squeak.squeakland |
|---|---|
| Message-ID | <[email protected]> |
On 2013-03-15, at 01:05, Steve Thomas <sthomas1-gQhbkF4bah9Wk0Htik3J/[email protected]> wrote: > I am working on a word recognition/typing program in Etoys for Haiti. (and anyone else who needs it). > > I need to be able to change the color of the character at cursor. > > How can I do this? (squeak code is fine) setColorAtCursor: color | m | m := self costume renderedMorph. m text addAttribute: (TextColor color: color) from: m cursor to: m cursor. m changed - Bert - _______________________________________________ squeakland mailing list [email protected] http://lists.squeakland.org/mailman/listinfo/squeakland