Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!rutgers!iuvax!bsu-cs!mithomas From: mithomas@bsu-cs.bsu.edu (Michael Thomas Niehaus) Newsgroups: comp.sys.mac.programmer Subject: Adding DA's to a menu: Sample code Keywords: c source Message-ID: <10614@bsu-cs.bsu.edu> Date: 23 Jan 90 22:14:07 GMT Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 27 Here is a little menu setup routine that I pulled out of one of my applications. This routine works in Think's C 3.0 and 4.0. (I would mail it, but it seems the message that requested help got mangled by a "system improvement".) -Michael SetupMenus() { extern MenuHandle myMenus[3]; myMenus[1] = GetMenu(130); InsertMenu(myMenus[1],0); AddResMenu(myMenus[1],(ResType) 'DRVR'); myMenus[2] = GetMenu(131); InsertMenu(myMenus[2],0); DrawMenuBar(); } -- Michael Niehaus UUCP: !{iuvax,pur-ee}!bsu-cs!mithomas Apple Student Rep ARPA: mithomas@bsu-cs.bsu.edu Ball State University AppleLink: ST0374 (from UUCP: st0374@applelink.apple.com)