[etoys-dev] How can I color one character of text?
Bert Freudenberg
bert at freudenbergs.de
Thu Mar 14 20:25:45 EDT 2013
On 2013-03-15, at 01:05, Steve Thomas <sthomas1 at gosargon.com> 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 -
-------------- n?chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.squeakland.org/pipermail/etoys-dev/attachments/20130315/1eaaf36f/attachment-0001.html>
-------------- n?chster Teil --------------
Ein Dateianhang mit Bin?rdaten wurde abgetrennt...
Dateiname : PastedGraphic-14.png
Dateityp : image/png
Dateigr??e : 38203 bytes
Beschreibung: nicht verf?gbar
URL : <http://lists.squeakland.org/pipermail/etoys-dev/attachments/20130315/1eaaf36f/attachment-0001.png>
More information about the etoys-dev
mailing list