[plt-scheme] How to change colors in an editor object

From: Daniel Egger (degger at gmx.ch)
Date: Tue May 20 13:18:33 EDT 2003

> 
> On Monday, May 19, 2003, at 03:59  PM, Daniel Egger wrote:
> 
> >   For list-related administrative tasks:
> >   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
> > Hello!
> >
> > In school we had to make a metacircular evaluator. It works fine so 
> > far but
> > I'd like to enhance it a little bit.
> > We have created an editor-obeject to make some user-interactions. It 
> > prints
> > text in this way: (send TranscriptEditor insert "text"). Now I'd like 
> > to
> > change the color of the text, i.e. for an error output that should be 
> > red. Is
> > this possible? And if yes how?
> > I've read something about a change-style method wich speaks about 
> > changing
> > the text color in an editor-object but this option isn't really 
> > documented
> > unfortunetaly.
> 
> Not documented?  Go to help desk, search for 'change-style', click on 
> the entry that reads
> 
> (send a-text change-style delta start end counts-as-mod?) in 
> "change-style"
> 
> Perhaps you're not aware of DrScheme's Help Desk?
> 
> john
> 

Of course I am aware of DrScheme's Help Desk!
What I meant with "this option isn't really documented" is the option to
change the color.
Imo it's not too obvious that it's called "set-delta-foreground".

But thanks anyway, now it works

Daniel

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!



Posted on the users mailing list.