Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!vm.epas.utoronto.ca!MEGGIN From: MEGGIN@vm.epas.utoronto.ca (David Megginson) Newsgroups: comp.sys.atari.st Subject: Saving the menu bar Message-ID: <89Dec9.080019est.57438@ugw.utcs.utoronto.ca> Date: 9 Dec 89 12:53:18 GMT References: Sender: usenet@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 14 In response to the question about saving the menu bar: The menubar disappears when you execute a TOS program from a GEM program and then return (using the VDI escape functions to get a TOS screen). There are a couple of ways to save the menu bar. First, if your application is actually an application (ie. it owns the menu bar), just use menu_bar() to hide the menu before you run a program, and use it to redisplay the menu afterwards. If it is an accessory (be careful here!), call wind_get() with window handle 0 (DESK) to get the working area of the desktop, and you should be able to presume that everything from 0 to X with width Y is the menu bar (use the VDI raster functions to save it!). Good luck. David Megginson, Centre for Medieval Studies, Toronto