Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!rochester!bullwinkle!batcomputer!hsgj From: hsgj@batcomputer.TN.CORNELL.EDU (Dan Green) Newsgroups: net.micro.amiga Subject: Need Help w/String Gadgets Message-ID: <431@batcomputer.TN.CORNELL.EDU> Date: Tue, 10-Jun-86 21:03:34 EDT Article-I.D.: batcompu.431 Posted: Tue Jun 10 21:03:34 1986 Date-Received: Sat, 14-Jun-86 05:24:09 EDT Organization: Theory Center, Cornell U., Ithaca NY Lines: 47 Keywords: String Gadgets, Requesters Another Amiga Question: In my desperate attempt to create a way for a user to input a filename (from my C prog) I have discovered that string gadgets can be attached to Requester windows. That, unfortunately, is my problem. I used the InitRequester(MyRequester) to initialize a requester structure, and then filled in the position. (eg MyRequester.Width = 100, etc). I then created a struct Gadget MyGadget. Operating from the RKM v2 intuition.h documentation, I filled in the Gadget.Type with STRGADGET. I assume this means a string gadget which lets you input a line of text. Now there was an UNDOCUMENTED field in the Gadget struct that I didn't know what to do with. It is called "SpecialInfo" and the RKM merely says, its (paraphrased) "a special data pointer required by String Gadgets". Of course, no where else anywhere was this thing mentioned. So I set it to NULL. Then I did a ReqWindow = BuildSysRequest( and for the parameters I used the current window and the size info, and three IntuiText thingies. Then later on in my program, when I wanted the requester displayed, I did a Request(MyRequester,ReqWindow). Results: Immediately after the BuildSysRequest got executed a requester popped up that had a Positive gadget, a Negative gadget, but no goddamn string gadget. The Amiga never waited for me to call the Request() function, instead it built the window when BuildSysRequest was called. The Request window had no close box or other way to kill it - clicking on the Pos or Neg gadgets did nothing except inverse video the gadgets. According to my lousy Sybex "Amiga Programmers Handbook" *supposedly* no requester window will be generated until Request() is called. Obviously that was wrong... My Question: Can anyone tell me (a) how to use String Gadgets, (b) how to incorporate these gadgets into Requesters, and (c) whether anyone has JUST the Intuition Manual for sale... Sample code would be VERY nice, but english is ok, too. I have V1.1 of Kickstart and Workbench, and Lattice v3.3. Oh by the way: when my program actually did get around to executing the Request() function, the amiga emitted a low sustained beep, and the screen cycled blue and white 2pixel high bars for about 30 seconds. Then it auto rebooted. My apartment-mate was impressed. "Gee, you can turn the screen into a barbershop pole!" Thanks very much for reading this long tale of frustrations :-) -- Dan Green ARPA: hsgj@vax2.ccs.cornell.edu ~~~~~~~~~ BITNET: hsgj@cornella UUCP: {decvax,ihnp4,allegra}!cornell!batcomputer!hsgj