Path: blue.weeg.uiowa.edu!news.uiowa.edu!uunet!cs.utexas.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!irsman From: irsman@iastate.edu (Ian Schmidt) Newsgroups: comp.sys.apple2.programmer Subject: Re: How to start program without losing menu bar? Date: 21 Aug 1994 15:08:00 GMT Organization: Iowa State University, Ames, IA Lines: 33 Distribution: world Message-ID: <337qkg$4ba@news.iastate.edu> References: <94232.232613KCR103@psuvm.psu.edu> NNTP-Posting-Host: las1.iastate.edu In article tombo@mail.on-line.co.uk (Richard King) writes: >>I would like to have my program start without switching to a blank >>screen between the finder and the application. Thanks in advance. >>Ken >> >I'm fairly sure that this is accomplished by setting one of the bits in >the AUXTYPE word. There's an init call TSUKUE which does this >automatically, and that sets the word to $DB07, as against $DB02(?). >This is OTOMH, and I'm sure David will correct me if I've misremembered! The auxtype is broken down as follows: $DBxx - the DB indicates that the low byte contains valid data. xx is bitmapped: Bit 0 = 1 means the program is GS/OS aware and uses long prefixes and class 1 calls. Bit 1 = 1 means the program is a desktop application [this is the 'smooth launch' bit]. Bit 2 = 1 means the program is MessageCenter aware and with appropriate icons you can launch a document from Finder and the program will load the document on startup. Therefore, $DB01 = text program, GS/OS aware $DB02 = graphics program, P16 $DB03 = graphics program, GS/OS aware $DB04 = text program, P16, MessageCenter aware $DB05 = text program, GS/OS, MessageCenter aware $DB06 = graphics program, P16, MessageCenter aware $DB07 = graphics program, GS/OS, MessageCenter aware -- Ian Schmidt - irsman@iastate.edu - irsman@rush.cc.edu - BAZ IS RIGHT! - INSOC: "If you've got to belong to something, belong to us and we'll make you PC"