Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!mattd From: mattd@Apple.COM (Matt Deatherage) Newsgroups: comp.sys.apple Subject: Re: Menus in NDA windows Message-ID: <36882@apple.Apple.COM> Date: 30 Nov 89 07:11:57 GMT References: <8911300611.AA17058@apple.com> Organization: Apple Computer Inc, Cupertino, CA Lines: 36 In article <8911300611.AA17058@apple.com> JWANKERL@UTCVM.BITNET ("Josef W. Wankerl") writes: >A friend of mine (and publisher of GS+, a gs specific magazine here in >the Chattanooga area) has been writing a NDA which could use a menu >bar - maybe in the info bar area. But he hasn't been able to make >it work using only a minimal amount of code. I thought that >TaskMasterDA would handle it, but he says that it won't. Is there an >easy way to do this? > >|* Joe "Gonzo" Wankerl | [Rest of signature deleted; I will keep my own counsel about what should and should not be my opinion.] If you mean "handle" as in it will put the menu bar there, track it and tell you what selection was made, the answer is "no". The reason is similar to the reason TaskMaster can't automatically update windows for you (IOW, you don't pass an update routine to it) - it has no idea of what you want to do. If you mean "handle" as in "I have an Info Bar procedure which draws the menu bar, then TaskMaster should tell me when there's a click in the menu bar so I can call MenuSelect and then act on the menu choice", the answer is "yes." Strategies for this are discussed in Apple IIgs Technical Note #3. Even easier is a pop-up menu as a control, which TaskMasterDA will handle for you. All you'll have to do is check to see which control was selected, and when it's the pop-up, go get the current selection from the control record. -- ----------------------------------------------------------------------------- Matt Deatherage, Apple Computer, Inc. | "The opinions expressed in this tome Send PERSONAL mail ONLY (please) to: | should not be construed to imply that Amer. Online: Matt DTS | Apple Computer, Inc., or any of its ThisNet: mattd@apple.com | subsidiaries, in whole or in part, ThatNet: (stuff)!ames!apple!mattd | have any opinion on any subject." Other mail by request only, please. | "So there." -----------------------------------------------------------------------------