Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!cornell!batcomputer!itsgw!imagine!pawl22.pawl.rpi.edu!jesup From: jesup@pawl22.pawl.rpi.edu (Randell E. Jesup) Newsgroups: comp.sys.amiga Subject: Re: Graphics and Intuition Questions Message-ID: <639@imagine.PAWL.RPI.EDU> Date: 10 Apr 88 04:33:00 GMT References: <480@lamont.Columbia.edu> Sender: news@imagine.PAWL.RPI.EDU Reply-To: jesup@pawl22.pawl.rpi.edu (Randell E. Jesup) Organization: RPI Public Access Workstation Lab - Troy, NY Lines: 26 In article <480@lamont.Columbia.edu> adam@lamont.Columbia.edu (adam levin) writes: >1. Is the code fragment on p127 of the Intuition Manual for processing a > menu event correct? When I use it, and extend-select (select more than > one item from a menu strip), my event handler gets in an infinite loop. > I looked through a lot of the PD source code I've collected from BBSs and > none of them pay attention to NextSelect. NextSelect is VERY important! Otherwise, it ignores multiple menu selections. Just make sure everything is casted right (often forgotten in the RKM examples). If in doubt, walk through with a debugger. >2. After using SetAfPt() and SetDrMd() to do subsequent fills with a bi- > color pattern, I want to go back to using a solid color. Must I use > SetAfPt (with a pattern of say, {0xffff, 0xffff}), or is there a more > proper way of resetting it? You are right that the RKMs don't say what to do, but after looking at graphics/gfxmacros.h, I'd say set the fields in the Rastport to NULL, their default state. Do both the pointer and size, just in case, though I suspect just the pointer would do. // Randell Jesup Lunge Software Development // Dedicated Amiga Programmer 13 Frear Ave, Troy, NY 12180 \\// beowulf!lunge!jesup@steinmetz.UUCP (518) 272-2942 \/ (uunet!steinmetz!beowulf!lunge!jesup) BIX: rjesup (-: The Few, The Proud, The Architects of the RPM40 40MIPS CMOS Micro :-)