🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1235

Re: Need help in THINK C

#1235
From: David Phillip Oster
Date: Tue, 24 Oct 1989 05:33
20 lines
1093 bytes
Here is how you retrieve the text from an edittext item in a dialog.
Remember to do this _before_ you DisposDialog() the dialog.

First, define a helper routine
/* GetDIHandle - return handle value of dialog item
 */
Handle GetDIHandle(i)short i;{
  short theType;
  Handle theHandle;
  Rect theRect;

  GetDItem(thePort, i, &theType, &theHandle, &theRect);
  return theHandle;
}

Then, you can fetch it like this:
Str255	s;

SetPort(myDialog);
GetIText(GetDIHandle(ITEM), s);
Technical Details
Message-ID: <32126@ucbvax.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster
References: <5306@lindy.Stanford.EDU> <15790@netnews.upenn.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster
From: oster@dewey.soe.berkeley.edu (David Phillip Oster)
Newsgroups: comp.lang.postscript,comp.sys.mac
Subject: Re: Need help in THINK C
Keywords: C programming
Message-ID: <32126@ucbvax.BERKELEY.EDU>
Date: 24 Oct 89 05:33:23 GMT
References: <5306@lindy.Stanford.EDU> <15790@netnews.upenn.edu>
Sender: usenet@ucbvax.BERKELEY.EDU
Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster)
Organization: School of Education, UC-Berkeley
Lines: 20