Re: Enabling/disabling menu items

Matthew Flatt <mflatt-sDh8Nw2yj/[email protected]>
Newsgroups gmane.comp.lang.racket.user,gmane.lisp.scheme.plt
Message-ID <[email protected]>
At Tue, 11 Jun 2019 16:45:05 -0400, James Platt wrote:
> It looks like there is not way to enable and disable (grey out) menu
> items the way that there is with buttons.

There's no `enable` initialization argument for `menu-item%`, but
there's an `enable` method the same as for `button%` instances. If
would be nice to have an `enable` initialization argument to create an
initially disabled menu item, but you can send `enable` just after
creating the menu item.

Is that what you were looking for, or do you have something else in
mind?

-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/5d00151a.1c69fb81.49370.e241SMTPIN_ADDED_MISSING%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.