home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!uwm.edu!cs.utexas.edu!bcm!aio!mark@cheers.jsc.nasa.gov
- From: mark@cheers.jsc.nasa.gov (Mark Manning)
- Subject: To:jafl@cco.caltech.edu
- Message-ID: <1992Nov13.150807.28333@aio.jsc.nasa.gov>
- Sender: news@aio.jsc.nasa.gov (USENET News System)
- Organization: Simulacron I
- Date: Fri, 13 Nov 1992 15:08:07 GMT
- Lines: 59
-
- Sorry to waste bandwidth guys and gals...but the e-mail demon punted my
- return mail back to me. :(
-
- John,
-
- I've checked all of the numbers. They all match with no discrepancies.
- Here is the code for the menu layout so you can see how I've done it. If
- there is anything wrong with it, please let me know. Thanks.
-
- ClearMenuBar;
- gAppleMenu := GetMenu( kAppleMenu );
- InsertMenu( gAppleMenu, 0);
- AddResMenu( gAppleMenu, 'DRVR');
- DrawMenuBar; { Draw the menu bar }
-
- gFileMenu := GetMenu( kFileMenu );
- InsertMenu( gFileMenu, 0 );
- DrawMenuBar; { Draw the menu bar }
-
- gEditMenu := GetMenu( kEditMenu );
- InsertMenu( gEditMenu, 0 );
- DrawMenuBar; { Draw the menu bar }
-
- gFormMenu := GetMenu( kFormMenu );
- InsertMenu( gFormMenu, 0);
- DrawMenuBar; { Draw the menu bar }
-
- gOptMenu := GetMenu( kOptMenu );
- InsertMenu( gOptMenu, 0 );
- DrawMenuBar; { Draw the menu bar }
-
- gFormatMenu := GetMenu( kFormatMenu );
- InsertMenu( gFormatMenu, 0 );
-
- gFontMenu := GetMenu( kFontMenu );
- AddResMenu( gFontMenu, 'FONT' );
- InsertMenu( gFontMenu, -1 );
- DrawMenuBar;
-
- GetSizeList;
-
- gSizeMenu := GetMenu( kSizeMenu );
-
- for tSizeNum := 1 to 256 do
- if gSizeList[tSizeNum] then
- begin
- NumToString( tSizeNum, tSizeName );
- AppendMenu( gSizeMenu, tSizeName );
- end;
-
- InsertMenu( gSizeMenu, -1 );
- DrawMenuBar;
-
- gStyleMenu := GetMenu( kStyleMenu );
- InsertMenu( gStyleMenu, -1 );
- DrawMenuBar;
-
- Let me know if you see anything wrong with how I'm doing this. And
- again I'm sorry that I've had to place this here.
-