saj@chinet.chi.il.us (Stephen Jacobs) (03/12/89)
Another in my endless series of questions about obvious/obscure points of Atari ST programming. Is there a neat way for a program to tell whether a menu is dropped? I didn't think this would be an issue, because I thought that once a menu drops the main program should be suspended as long as the menu is down. Doesn't work that way. I don't really want the program I'm working on to update the screen while a menu selection is being made--- kinda the reverse of disabling menus while you do screen updates. I don't even have bright but unpleasant ideas on this one: best I've come up with is walk the rectangle list and see if the part the present application doesn't own looks like a menu. Not bright & not reliable. What's the right way? Steve J.
saj@chinet.chi.il.us (Stephen Jacobs) (03/13/89)
About 12 hours after I asked how to tell if a menu is dropped I figured out a way to do it (although it takes some discipline to make it work). Test the states of the TITLE objects in the menu. As long as they're all set to normal before the menu is activated, they should stay that way unless a menu drops. I haven't tested this yet, and I still worry that clicking off the menu without making a selection might not reset the TITLE states. Steve J.