Path: utzoo!mnetor!uunet!husc6!im4u!ut-sally!utah-cs!thomson From: thomson@utah-cs.UUCP (Richard A Thomson) Newsgroups: comp.sys.amiga.tech Subject: Re: Gadgets and requesters: trying to get started Message-ID: <5420@utah-cs.UUCP> Date: 19 Apr 88 16:52:24 GMT References: <27194@cca.CCA.COM> Reply-To: thomson@cs.utah.edu.UUCP (Richard A Thomson) Organization: University of Utah CS Dept Lines: 54 In article <27194@cca.CCA.COM> jack@cca.CCA.COM (Jack Orenstein) writes: >... In particular, I can't find any discussion of how to attach >a requester to a window. I suggest reading chapter 7 in the Intuition manual: "Requesters and Alters". From there I got the following info: (Using Requesters, pg. 7-7) 1. Declare or allocate a Requester structure 2. Initialize the structure with a call to InitRequester() 3. Fill out the Requester with your specs for gadgets, text, borders and imagery. 4. If you are using the IDCMP for input, decide whether to use the special functions provided. 5. Display the requester by calling either: * Request(), or * SetDMRequest() so the user can bring up the requester. >... the window data >structure in intuition.h has a FirstRequest field, a DMRequest field >(what does the DM stand for?), and a ReqCount field. The DMRequest field stands for "double menu request". This is a special kind of requester that can be attached to a window through SetDMRequest(). The requester is brought up every time the user double-clicks on the menu button. >Also, how do the sizes of the requester and any attached >gadgets relate? Are gadget coordinates relative to the requester or to >the window containing the requester? Gadgets always have their coordinates relative to the object (window, requester, or screen). In the Intuition manual, on pg. 5-8 under "Gadget Select Box", it says ``The location is an offset from one of the corners of the display element (window, screen, or requester) that contains the gadget." >Are there other fields (in the requester or window) that have to be set? Yes. There are fields you have to set in the requester structure, depending on what kind of requester you want to make. >Are there commands for displaying and clearing requesters? Are there any >books with more complete information? > >Jack Orenstein As always, the true source of information on this stuff is the Intuition Manual (some people don't like it, but I think its pretty clear on most stuff) and the ROM Kernel Manuals. Perhaps Rob himself would like to clarify where to find the stuff in his book(s) [I don't have them :-]. -- -- Rich Richard Thomson 3190 MEB, University of Utah, Salt Lake City, UT 84112 thomson@cs.utah.edu (801) 584-4555: Talk to a machine, they're lonely.