home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14278 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.9 KB  |  49 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!aero.org!speedy.aero.org!news
  3. From: killer@wimpy (karl kowalski)
  4. Subject: Unhighlighted Static Edit Text Fields and Hierarchical Popup Menus
  5. Message-ID: <1992Aug20.180751.10464@speedy.aero.org>
  6. Keywords: Edit Text hilighliting Menus hierarchical popups
  7. Sender: news@speedy.aero.org
  8. Nntp-Posting-Host: wimpy.aero.org
  9. Organization: The Aerospace Corporation; El Segundo, CA
  10. Distribution: general
  11. Date: Thu, 20 Aug 1992 18:07:51 GMT
  12. Lines: 35
  13.  
  14. Hi!
  15.  
  16. Sorry to be bringing a possibly trivial question to the net (and hopefully
  17. it's not a RT(F)M answer), but...
  18.  
  19. Anyone have the time to explain how to make static and edit text fields
  20. in a dialog box unhighlighted (and thus, user-inaccessible)? The Control 
  21. Manager doesn't like it 
  22. when I do
  23.  
  24.     GetDItem( theDialog, EDIT_TEXT_ITEM, &type, &handle, &rect );
  25.     HiliteControl( (ControlHandle)handle, INACTIVE );
  26.  
  27. something about a Bus Error shows up in SADE. It doesn't mind when I
  28. do the same thing to a static item, although that doesn't do what I want
  29. anyway. Clearly it can be done; MPW's Create Build dialog has items
  30. that are highlighted or not dependent upon the setting of a group of
  31. radio buttons. I can do HideDItem and ShowDItem (to work around the
  32. problem) but I'd really really really prefer the hilit/unhilit state.
  33.  
  34. In another channel, how can I make a popup menu have a submenu on
  35. one or more of its items? I know the guidelines say "Thou shouldst not"
  36. but I think I have a reasonable reason for it (and I'd like to see if
  37. I can do it anyway - programming for programming's sake). It seems
  38. like it should be doable - using SetItemCmd and SetItemMark on the
  39. popup menu item I want sub'ed, but I haven't gotten it to work so far.
  40. Any hints?
  41.  
  42. Please respond via email to the address below. I'm not sure my machine
  43. sets its reply-to address correctly.
  44.  
  45. Cheers,
  46.  
  47. Karl G Kowalski
  48. killer@wimpy.aero.org
  49.