[plt-scheme] show a snip in interactions pane

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Wed Nov 11 20:56:38 EST 2009

Look for 'matrix' in the collects system.

Copy and play what you find there.

It took me three or four interactions with Robby and/or Matthew to get  
my matrix stuff installed.

The docs contain a lot of stuff but not necessarily in a way that  
helps you get there.

-- Matthias



On Nov 11, 2009, at 6:48 PM, Jon Rafkind wrote:

> I was trying to draw colored strings by overriding the `draw' method  
> of string-snip% but my string is always drawn in black (foreground)  
> and white (background). Is it because the interactions pane always  
> prints the raw text from `get-text' ?
>
> (define (text-snip text)
> (new
>  (class string-snip%
>    (define/override (draw dc x y left top right bottom dx dy draw- 
> caret)
>      (send dc set-text-foreground (make-object color% 255 0 0)))
>    (super-new)
>    (send this insert text (string-length text)))))
>   (text-snip "hello")
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme



Posted on the users mailing list.