Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-18 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/18/11 14:14, Matthew Flatt wrote: > Just to be clear (hopefully!), the direct `on-focus' call that I > described happens only at the window layer, while there is an > explicit downward chaining as you described at the > `editor<%>'/`snip%' layer

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-18 Thread Matthew Flatt
At Tue, 18 Oct 2011 10:53:36 +0200, Marijn wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/18/11 01:39, Matthew Flatt wrote: > > At Mon, 17 Oct 2011 16:33:26 +0200, Marijn wrote: > >> Is it correct, that when you click the title bar of a window > >> frame to select it, this caus

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-18 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/18/11 01:39, Matthew Flatt wrote: > At Mon, 17 Oct 2011 16:33:26 +0200, Marijn wrote: >> Is it correct, that when you click the title bar of a window >> frame to select it, this causes the on-focus method of that frame >> to be called. > > That'

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-17 Thread Matthew Flatt
At Mon, 17 Oct 2011 16:33:26 +0200, Marijn wrote: > Is it correct, that when you click the title bar of a window frame to > select it, this causes the on-focus method of that frame to be called. That's not what's supposed to happen. The `on-activate' method of the frame should be called, though.

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-17 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi list, I have some more questions about the gui classes. Is it correct, that when you click the title bar of a window frame to select it, this causes the on-focus method of that frame to be called. Further that on-focus method should check which su

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-07 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/07/11 14:17, Matthew Flatt wrote: > At Fri, 07 Oct 2011 13:06:23 +0200, Marijn wrote: >> I've prepared a chopped-down attempt which defines an editor, an >> administrator and a display class and instantiates them. >> >> Unfortunately the editor

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-07 Thread Matthew Flatt
At Fri, 07 Oct 2011 13:06:23 +0200, Marijn wrote: > 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. >

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-07 Thread Marijn
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%'

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-06 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/06/11 16:17, Matthew Flatt wrote: > At Thu, 06 Oct 2011 16:07:01 +0200, Marijn wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> >> On 10/06/11 13:31, Matthew Flatt wrote: >>> At Thu, 06 Oct 2011 12:40:18 +0200, Marijn wrote: - - T

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-06 Thread Matthew Flatt
At Thu, 06 Oct 2011 16:07:01 +0200, Marijn wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/06/11 13:31, Matthew Flatt wrote: > > At Thu, 06 Oct 2011 12:40:18 +0200, Marijn wrote: > >> - - The display (a grid in my case) should create an > >> editor-admin% which in turn should ha

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-06 Thread Matthew Flatt
At Thu, 06 Oct 2011 15:13:01 +0200, Marijn wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/06/11 13:31, Matthew Flatt wrote: > > At Thu, 06 Oct 2011 12:40:18 +0200, Marijn wrote: > >> - - The get-max-view method is not used to determine a bounding > >> box of all displays of thi

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-06 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/06/11 13:31, Matthew Flatt wrote: > At Thu, 06 Oct 2011 12:40:18 +0200, Marijn wrote: >> - - The display (a grid in my case) should create an >> editor-admin% which in turn should have a field to refer back to >> its display. When an editor becom

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-06 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/06/11 13:31, Matthew Flatt wrote: > At Thu, 06 Oct 2011 12:40:18 +0200, Marijn wrote: >> - - The get-max-view method is not used to determine a bounding >> box of all displays of this editor in display coordinates (which >> doesn't even make sens

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-06 Thread Matthew Flatt
At Thu, 06 Oct 2011 12:40:18 +0200, Marijn wrote: > - - The display (a grid in my case) should create an editor-admin% which > in turn should have a field to refer back to its display. When an > editor becomes available to the display, the display will notify the > editor of the editor-admin% insta

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-06 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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

Re: [racket] how to add text-field-style behavior to rectangles drawn on a canvas

2011-10-05 Thread Matthew Flatt
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. _