[racket] how to add text-field-style behavior to rectangles drawn on a canvas
On 10/05/11 15:02, Matthew Flatt wrote:
> At Wed, 05 Oct 2011 15:00:06 +0200, Marijn wrote:
>> Suppose one has a spreadsheet-like grid drawn on a canvas%. How does
>> one add text-field%-style behavior to the rectangles drawn?
>
> You could implement an `editor-admin%' subclass to manage a `text%'
> within the grid.
I've prepared a chopped-down attempt which defines an editor, an
administrator and a display class and instantiates them.
Unfortunately the editor doesn't appear on the screen where I thought
I'd let the administrator tell it to appear.
I'm not sure why it doesn't work. Any help?
Marijn
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: minimal-editor-admin-sample.rkt
URL: <http://lists.racket-lang.org/users/archive/attachments/20111007/0206d781/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.racket-lang.org/users/archive/attachments/20111007/0206d781/attachment.sig>