Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!rochester!PT.CS.CMU.EDU!andrew.cmu.edu!mp1u+ From: mp1u+@andrew.cmu.edu (Michael Portuesi) Newsgroups: comp.sys.amiga Subject: Gadget ID codes? Message-ID: Date: Sun, 18-Oct-87 00:07:37 EDT Article-I.D.: andrew.IVS3u9y00WAENjc04b Posted: Sun Oct 18 00:07:37 1987 Date-Received: Sun, 18-Oct-87 21:42:44 EDT Organization: Carnegie Mellon University Lines: 20 I want to present a requester in the current window with a string gadget for user input and two boolean gadgets for "OK" and "Cancel." If the user selects "Cancel", obviously I don't want to do anything. What is the correct way to determine what gadget the user activated to end the requester? I set the GadgetID field of each of my gadget definitions to a unique value. I throw the requester up on the screen, wait for an IDCMP message, extract the code from the message structure, then reply to it. My assumption is that the message code would contain the ID of the selected gadget that caused the requester to end, although the Intuition manual doesn't really tell you what it should contain. Is my assumption correct? --M Michael Portuesi / Carnegie-Mellon University ARPA/UUCP: mp1u+@andrew.cmu.edu BITNET: rainwalker@drycas (a uVax-1 run by CMU Computer Club) "Boys living next door are never what they seem" --Bananarama, "Robert DeNiro's Waiting"