hpoppe@bierstadt.ucar.edu (Herb Poppe) (03/22/89)
Last night I was working on a HyperCard stack that requires HC 1.2 or later. I wanted to use "answer" to put up a dialog box if the version being used was earlier. But I couldn't fit my message on the single line available. After futzing around with abbreviations and bad grammar the light finally went on. Since this was a dialog box, there would be a good chance that there was a resource template for it in HC's resource fork. If it existed, I could modify it for a multi-line TextEdit box. I got out ResEdit 1.2b3 and went browsing though HC's DLOG resources and sure enough, there it was: DLOG/DITL 2101 "Answer" ("Ask" is 2100). At first I thought of modifying it right there, but then no one else using my stack would see more than one line. So I copied the DLOG and DITL to the resource fork of my stack and modifed them there. I added 18 to the bottom of the window and TextEdit rects, and 18 to the top and bottom of the three button rects. This gave me a 2-line TextEdit box in the "Answer" dialog, just what I needed. The same technique could be applied to the "Ask" dialog. Thanks, Bill, for not hard-codeing those DLOGs into HC. Herb Poppe NCAR INTERNET: hpoppe@ncar.ucar.edu (303) 497-1296 P.O. Box 3000 CSNET: hpoppe@ncar.CSNET Boulder, CO 80307 UUCP: hpoppe@ncar.UUCP
englandr@phoenix.Princeton.EDU (Scott Englander) (03/22/89)
By the way, a shareware XFCN (or XCMD?) called ShowDialog will do practically anything you want with dialog boxes, and a thousand times more. Comes with excellent demos. -- - Scott