[plt-scheme] unclickable clickbacks in interactions window snips

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue Jan 24 18:44:00 EST 2006

At Tue, 24 Jan 2006 15:41:59 -0800 (PST), Ryan Culpepper wrote:
> I discovered that when an expression evaluates to an editor-snip%
> object in the DrScheme interactions window, DrScheme actually inserts
> the snip into the window. This is wonderful!

If "wonderful" also entails "security hole" we're on the same page ;)

> But if I add clickbacks to the text displayed by the editor, they
> aren't activated when I click the text. The clickbacks work as
> expected when I put the same object into an editor-canvas in another
> frame.
> Is there anything I can do to get the clickbacks to work, or does
> DrScheme intentionally block clickbacks from user snips? (The
> editor-snip is not created by a tool, just by an ordinary MrEd
> program.)

You probably need to override the copy method (that's just a guess, but
that's usually what gets missed in this situation).


Posted on the users mailing list.