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

From: Marijn (hkBst at gentoo.org)
Date: Mon Oct 17 10:33:26 EDT 2011

-----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 sub-window had the
focus before and call that subwindow's on-focus method to restore
focus. This will recursively restore the focus.

Conversely when you click the title bar of a different window frame B
to deselect window A, then A's on-focus method is also called with as
sole argument #f. The same recursive process as above is used to
remove focus from any subwindows.

Is that correct?

Thanks,

Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6cPLYACgkQp/VmCx0OL2zgrwCfRuLlF6mXUewIDdbYwERfVYbD
/t8AnROa84PhDDWvzQW4w6HLwYxffRlZ
=BKMB
-----END PGP SIGNATURE-----


Posted on the users mailing list.