🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #6802

Saving the menu bar

#6802
From: David Megginson
Date: Sat, 09 Dec 1989 12:53
14 lines
1243 bytes
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
Technical Details
Message-ID: <89Dec9.080019est.57438@ugw.utcs.utoronto.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!vm.epas.utoronto.ca!MEGGIN
References: <INFO-ATARI16-REQUEST@WSMR-SIMTEL20.ARMY.MIL>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <INFO-ATARI16-REQUEST@WSMR-SIMTEL20.ARMY.MIL>
Sender: usenet@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 14