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