[racket-dev] application:current-app-name not appearing in Help menu

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Wed Jan 11 13:59:51 EST 2012

I think the docs you found were actually the docs for the
frame:editor-mixin, not just frame:standard-menus-mixin. So, you want
something like this:

#lang racket/gui

(require framework)

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

(define f%
  (class (frame:text-mixin
          (frame:editor-mixin
           (frame:standard-menus-mixin frame:basic%)))
    (define/override (help-menu:create-about?) #t)
    (super-new))

(define root-frame (new f% (width 200) (height 200)))
(send root-frame show #t)

I see that there is a bug when you actually select the menu item, tho.
I'll push a fix for that shortly.

Robby

On Tue, Dec 27, 2011 at 4:04 AM, Marijn <hkBst at gentoo.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> the docs for application:current-app-name say that it is used in the
> Help menu, but that doesn't seem to work for the following program:
>
>
> #lang racket/gui
>
> (require framework)
>
> (application:current-app-name "Land Usage Calculator")
>
> (define root-frame (new (frame:standard-menus-mixin frame:basic%)
>                        (label (application:current-app-name))
>                        (width 200)
>                        (height 200) ))
>
> (send root-frame show #t)
>
>
> Marijn
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.18 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk75mEoACgkQp/VmCx0OL2xClgCeMUZ6Xn8UBPH3PNZ225yiYQQb
> xXEAn29Z77e/r+slBRmGHtcJktBhRESf
> =UWwC
> -----END PGP SIGNATURE-----
> _________________________
>  Racket Developers list:
>  http://lists.racket-lang.org/dev



Posted on the dev mailing list.