[racket-dev] frame:editor-mixin not happy with a text%

From: Marijn (hkBst at gentoo.org)
Date: Tue Dec 27 05:20:44 EST 2011

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

according to the docs a frame:editor-mixin requires an editor%
argument that is an editor%[1], but it really wants its argument to be
a editor:basic-mixin.


#lang racket/gui

(require framework)

(application:current-app-name "Land Usage Calculator")

(define root-frame (new (frame:editor-mixin
(frame:standard-menus-mixin frame:basic%))
			(filename "Untitled")
			(editor% (editor:basic-mixin text%))
			#;(editor% text%) ))

(define root (send root-frame get-area-container))

(send root-frame show #t)


Marijn

[1]:http://docs.racket-lang.org/framework/Frame.html?q=default%20key%20bindings&q=menu-bar#%28def._%28%28lib._framework/main..rkt%29._frame~3aeditor-mixin%29%29
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk75m/wACgkQp/VmCx0OL2zetgCfQc/xnXrXOtoDW53tOwIajL3Z
nqgAnjoc4L2tO6AGp/0QEJeA4le1Nmu7
=G+DM
-----END PGP SIGNATURE-----


Posted on the dev mailing list.