home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!uchinews!quads!jcav
- From: jcav@quads.uchicago.edu (JohnC)
- Subject: Re: Things That May Become Dim
- Message-ID: <1992Jul22.171644.7212@midway.uchicago.edu>
- Sender: news@uchinews.uchicago.edu (News System)
- Reply-To: jcav@midway.uchicago.edu
- Organization: The Royal Society for Putting Things on Top of Other Things
- References: <1992Jul22.111616.3574@reed.edu>
- Date: Wed, 22 Jul 1992 17:16:44 GMT
- Lines: 49
-
- In article <1992Jul22.111616.3574@reed.edu> orpheus@reed.edu (P. Hawthorne) writes:
- >Is depending on the enableFlags of a MenuHandle asking for trouble? Say,
- >to disable all items in a single blow, or to find out swiftly whether any
- >commands are enabled?
-
- Since the menu definition procedure uses the enable flags to determine the
- enabled-ness of an item, it's probably safe to use them. Calling
- _DisableItem with an item number of zero is defined to disable the entire
- menu at once, overriding the individual item enable flags. _EnableItem with
- item zero removes this "override". One note: there are only 31 possible
- enable flags (plus one for the menu as a whole). Any additional items are
- defined to always be enabled. Of course, if your menu has more than 31
- items and is not a Font menu, something is wrong. :-)
-
- >If all of the commands in a menu are dimmed, should the menu's title on
- >the menu bar also be dimmed?
-
- That's what the interface guidelines say, and it makes sense.
-
- >If a non-movable modal dialog is up, should all of the menu titles on the
- >menu bar be dimmed, since you can't use them? What if one of the menus is
- >hilited to begin with, such as the Apple menu after bringing up an about
- >window that goes away as soon as you click?
-
- The guidelines say that menus and menu items that aren't available should be
- dimmed. Before System 7, you couldn't click anywhere outside a modal dialog
- box, so it made sense to disable the entire menu bar. Since System 7, Apple
- recommends that the Apple, Edit and other system menus remain available during
- modal dialogs. I think the system handles this auto-magically for most cases.
-
- >Should the menu bar be visible when the application has just been
- >launched and the splash screen is hanging out?
-
- I think that's up to the programmer. I wouldn't show the menu bar until the
- application was ready to interact with the user.
-
- >If a dialog window is deactivated, perhaps by the application being
- >suspended or another dialog coming up, should the dialog items be
- >dimmed?
-
- I think so. You should certainly dim things that look different when
- they're "inactive", such as scrollbars, text selections/insertion points,
- and default button outlines.
-
- --
- John Cavallino | EMail: jcav@midway.uchicago.edu
- University of Chicago Hospitals | John_Cavallino@uchfm.bsd.uchicago.edu
- Office of Facilities Management | USMail: 5841 S. Maryland Ave, MC 0953
- B0 f++ c+ g++ k s++ e+ h- pv | Chicago, IL 60637
-