For Programmers: Free Programming Magazines  


Home > Archive > Smalltalk > June 2004 > Different styles in TextEditor









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Different styles in TextEditor
Piotrek Goik

2004-06-03, 7:28 pm

Hello,

I need some help with TextEditor widget.
I load some bolded or coloured text to the it at the window initialization.
I would like to write something in that widget using plain text. All the new
characters would be plain with the old ones still formated as in the
beggining and I have absolutely no idea how do it.

Thanks
Piotr Goik


Sascha Doerdelmann

2004-06-03, 7:28 pm

"Piotrek Goik" <desmo19@interia.pl> wrote:
> I need some help with TextEditor widget.
> I load some bolded or coloured text to the it at the window initialization.
> I would like to write something in that widget using plain text. All the new
> characters would be plain with the old ones still formated as in the
> beggining and I have absolutely no idea how do it.


In VisualWorks senders of ParagraphEditor>>#changeEmphasisKey: define
escape sequences to change some aspects of the text formatting while
typing. You can change or extend this behaviour by defining your own
keyboard dispatch table.

Cheers
Sascha
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com