Path: utzoo!attcan!uunet!lll-winken!ubvax!vsi1!apple!jmpdude From: jmpdude@Apple.COM (Mike Puckett) Newsgroups: comp.sys.mac.programmer Subject: Re: Routines to InsertMenuItem()? Message-ID: <22010@apple.Apple.COM> Date: 11 Dec 88 02:28:41 GMT References: <4258@Portia.Stanford.EDU> <900013@zaphod> Organization: Apple Computer Inc, Cupertino, CA Lines: 18 In article <900013@zaphod> liberte@zaphod.ncsa.uiuc.edu writes: > >Here is another IM error concerning menus. (I lost the address of the >guy at Apple who is collecting these.) > >IM V-241 PopUpMenuSelect, the result is a pascal integer (short) not a >longint. > >Dan LaLiberte >National Center for Supercomputing Applications >liberte@ncsa.uiuc.edu Wait a second! PopupMenuSelect *DOES* return a long (as documented), not a short. The hi-order part of the long contains the PopUpMenu's menu ID, and the lo-order part of the long contains the selected menu's item number. Mike Puckett jmpdude@apple.com