Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!well!gurgle From: gurgle@well.sf.ca.us (Pete Gontier) Newsgroups: comp.sys.mac.programmer Subject: inserting hierarchicals at MenuSelect time Keywords: menu hierarchical hier menuselect trap patch hack Message-ID: <24118@well.sf.ca.us> Date: 9 Apr 91 22:46:01 GMT Organization: cellular Lines: 24 Folks: Doing some tricks under System 7 with the Menu Manager. Namely, I'm adding a menu to the menu bar at MenuSelect time. Everything works dandy but for one detail. I've been having intermittent problems with some hierarchical menus I am hanging off this added menu. Occaisionally, they simply don't appear. No triangle at the right end, no menu appearing. It's as if the Menu Manager pretends I never told it what to do. Some C-like pseudo-code: SetItemMark ( mh, 1, 'x' ); SetItemCmd ( mh, 1, 0x1B ); if ( GetItemMark ( mh, 1 ) != 'x' ) Debugger ( ); if ( GetItemCmd ( mh, 1 ) != 0x1B ) Debugger ( ); Occaisionally, the hierarchicals will fail to appear. When they do, this code drops into the debugger. Should I bother DTS with this one or am I doing something stupid? -- Pete Gontier, gurgle@well.sf.ca.us Software Imagineer, Kiwi Software, Inc.