Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!ginosko!usc!pollux.usc.edu!papa From: papa@pollux.usc.edu (Marco Papa) Newsgroups: comp.sys.amiga Subject: Re: Mymenu, ET and SF! Message-ID: <20763@usc.edu> Date: 24 Oct 89 02:34:28 GMT References: <2259@nigel.udel.EDU> <7289@sdcsvax.UCSD.Edu> Sender: news@usc.edu Reply-To: papa@pollux.usc.edu (Marco Papa) Organization: Felsina Software, Los Angeles, CA Lines: 36 In article <7289@sdcsvax.UCSD.Edu> djohnson@beowulf.UCSD.EDU (Darin Johnson) writes: >In article <2259@nigel.udel.EDU> BPJ0%LEHIGH.BITNET@ibm1.cc.lehigh.edu (Bin, Lehigh and very Amiga.) writes: ||Now here's the problem. Everything boots up as usual and I run Atalk ||from the mymenu menu option (any of the four). Then when I exit Atalk ||the mymenu menus disappear. If I type mymenu it says Updating menus --- ||ok. | |I don't have ATalk, so I can't tell what it is doing, but I did write |MyMenu. It looks suspiciously like Workbench is getting a NEWPREFS(?) |message. When this happens, Workbench redraws/rebuilds its menus (assuming |someone may have changed the font). It doesn't redraw MyMenu's menus, |since it doesn't know about them. I tried working around this, but there |isn't an easy way to tell when Workbench is done with redrawing its |menus (other than waiting a second or two). |Best bet is to find out if ATalk is indeed sending a NEWPREFS (such as ^^^^^^^^^^^^^^^^^^ |changing serial parameters) when it starts up or exits, and find out if |it can be disabled. (Probably unlikely, but it may be slightly possible ^^^^^^^^ |that if serial preferences are exactly what ATalk wants, it may not do |the NEWPREFS) A-Talk III calls GetPrefs at loading time (to get parameters such as RTS/CTS, Xon-Xoff or no handshake, and to 'save' the current preferences). It also calls SetPrefs on exit (to restore WB colors and other saved Prefs parameters). Neither one can be disabled. As implemented, Mymenu is a kludge that can't be supported. It munges data structures that shouldn't be touched, and as such can have the 'side effects' you experience. Since other programs do the GetPrefs/SetPrefs combo, the problem won't appear with just A-Talk. Maybe a better version of MyMenu could be written. -- Marco Papa 'Doc' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= uucp:...!pollux!papa BIX:papa ARPAnet:pollux!papa@oberon.usc.edu "There's Alpha, Beta, Gamma, Diga and Caligari!" -- Rick Unland -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=