home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12848 < prev    next >
Encoding:
Text File  |  1992-07-22  |  2.9 KB  |  62 lines

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