[plt-scheme] Re: Changing the draw behaviour of a selected editor snip

From: Stephen De Gabrielle (stephen.degabrielle at acm.org)
Date: Mon Nov 9 08:24:21 EST 2009

Hi Matthew,

It occurs to me that I'll need to duplicate pasteboard to make the
changes anyway!

I'll see what I can do.

Thanks again,

Stephen

On Monday, November 9, 2009, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> The way that a selection is drawn is currently not an overrideable
> method. It's built into the `draw' method in
> "collects/mred/private/wxme/pasteboard.ss".
>
> If you'd like to change "pasteboard.ss" to add a method, I'd be willing
> to apply a patch.
>
> More generally, if you think it would be easier to work at the same
> level as "pasteboard.ss" and "text.ss" (reusing part of the
> "pasteboard.ss" implementation, but not all of it), I think it would
> make sense to add "grid.ss" as a third kind of built-in `editor<%>'.
>
> At Mon, 9 Nov 2009 09:54:46 +0000, Stephen De Gabrielle wrote:
>> Hi,
>> I'm trying to Change the draw behaviour of a selected editor snip in a
>> pasteboard%.
>>
>> I am making a datagrid editor on top of pasteboard and editor-snip
>> because I don't want to duplicate functionality.
>>
>> My problem is how I can determine where the 'compass point' square
>> dots that are used to show an editor snip is selected are drawn- so I
>> can override with my own draw method(invert).
>>
>> Any pointers gratefully accepted.
>>
>> Thanks, Stephen
>>
>> ps code
>>  http://code.google.com/p/projects-project/source/browse/trunk/gui/DataGrid.ss
>>
>> --
>>
>> --
>> Stephen De Gabrielle
>> stephen.degabrielle at acm.org
>> Telephone +44 (0)20 85670911
>> Mobile        +44 (0)79 85189045
>> http://www.degabrielle.name/stephen
>> _________________________________________________
>>   For list-related administrative tasks:
>>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>

-- 

--
Stephen De Gabrielle
stephen.degabrielle at acm.org
Telephone +44 (0)20 85670911
Mobile        +44 (0)79 85189045
http://www.degabrielle.name/stephen


Posted on the users mailing list.