Path: utzoo!attcan!uunet!imagery!p5.f22.n282.z1.FIDONET.ORG!Jim.Spencer From: Jim.Spencer@p5.f22.n282.z1.FIDONET.ORG (Jim Spencer) Newsgroups: comp.sys.mac.programmer Subject: Default values in a dialo Message-ID: <33.25FF85FB@imagery.FIDONET.ORG> Date: 15 Mar 90 01:36:02 GMT Sender: ufgate@imagery.FIDONET.ORG (newsout1.26) Organization: FidoNet node 1:282/22.5 - Macintosh SmorgasBo, Bloomington MN Lines: 19 >Is there a way to place default values into an editable item in a dialog >box. So when you first invoke the dialog box there are default values >already in the editable item. I'm guessing that one way of doing it is to >place the default values in the resource file and after the GetNewDialog to >grab the values from the resource file and place it in the editable item >area. Its even easier than that. In ResEdit, when you create the EditText item, there is a box for typing in the default text. In Rez or similar resource compiler inputs, there is a field for the default text just as there is for a static text item. You can of course do it the way you suggest. Put the text in a STR resource or build it in your application and then use SetIText to actually put it into the dialog. -- Jim Spencer - via FidoNet node 1:282/33 UUCP: ...!uunet!imagery!22.5!Jim.Spencer ARPA: Jim.Spencer@p5.f22.n282.z1.FIDONET.ORG