[plt-scheme] dual-editor snip

From: Jordan Johnson (jmj at fellowhuman.com)
Date: Sun Apr 12 20:04:26 EDT 2009

On Apr 11, 2009, at 9:01 AM, Robby Findler wrote:

> I'm sorry I'm just quickly tuning in, but did you try making a
> pasteboard with two editor-snip%s that contain the two text%s?

OK, vertical-pasteboard% is doing what I want.  One more thing:

> You can
> show and remove them as you wish (but you will have to do some work to
> make sure the editor-snip%s are always the right size).

Regarding that sizing -- I want to keep the two subordinate snips'  
widths equal, and need to know:
	- How can I detect whether a text% has been resized as a result of  
the user's typing?
	- Is set-min-width a reliable way to control the width of the two  
subordinate editor-snip%s?  That is, if snip A is wider than snip B  
(as reported by get-extent), set B's min-width to be the width of A.   
Or is there a better way?

Thanks,
jmj


Posted on the users mailing list.