Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!pur-ee!pur-phy!murphy From: murphy@pur-phy (William J. Murphy) Newsgroups: comp.sys.amiga.tech Subject: Re: Programming multiple Menu Selections Message-ID: <2126@pur-phy> Date: 10 Apr 89 14:50:36 GMT References: <2124@pur-phy> Reply-To: murphy@newton.physics.purdue.edu.UUCP (William J. Murphy) Organization: Purdue Univ. Physics Dept., W. Lafayette, IN Lines: 22 In article <2124@pur-phy> murphy@newton.physics.purdue.edu (William J. Murphy) writes: >From what I have discerned from Mortimore, if number is not a valid >menuNumber then ItemAddress will return a NULL. Is it correct to trap >for this potential error condition? Maybe something like this? > >if ((number = ItemAddress(main_menu[0], number)-NextSelect) == NULL) > number = MENUNULL; Before I get flamed for the obvious mistake, I will correct it. number = ItemAddress(main_menu[0], number)->NextSelect; if (number == NULL) number = MENUNULL; This seemed to take care of the problem I experienced, but now I am asking myself how do you select multiple menu choices? I tried a few things such as SHIFT-RMB LMB, LMB... In Browser one can multiple select files with SHIFT-LMB, but is multiple selection supposed to be a feature of menus? >Finally, I guess I am asking how do others support multiple menu selections. Bill Murphy