home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!cs.utexas.edu!bcm!lib!mdarpi1.mda.uth.tmc.edu!draper
- From: draper@odin.mda.uth.tmc.edu (E.J. Draper)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: external window probs
- Message-ID: <7729@lib.tmc.edu>
- Date: 5 Nov 1992 18:27:00 GMT
- References: <cey3rKG00iV0M5y18i@andrew.cmu.edu>
- Sender: usenet@lib.tmc.edu
- Organization: U.T.M.D. Anderson Cancer Center
- Lines: 40
- Nntp-Posting-Host: mdarpi1.mda.uth.tmc.edu
- X-UserAgent: Nuntius v1.1.1d12
- X-XXMessage-ID: <A71EC4933F01019A@mdarpi1.mda.uth.tmc.edu>
- X-XXDate: Thu, 5 Nov 92 18:31:15 GMT
-
- In article <cey3rKG00iV0M5y18i@andrew.cmu.edu> George J. Baxter,
- gb2a+@andrew.cmu.edu writes:
-
- > test = &((XWEventInfoPtr)(paramPtr->params[1]))->event;
-
- Here's a little code that I think will help out...
-
- pascal void main(XCmdPtr paramPtr)
- {
- if (paramPtr->paramCount == -1)
- DoEvent(paramPtr);
- else
- DoSetup(paramPtr);
- }
-
- void DoEvent(XCmdPtr paramPtr)
- {
- GrafPtr savePort;
- EventRecord myEvent;
- WindowPtr myWindow;
- XWEventInfoPtr myXWEventInfoPtr;
-
- myXWEventInfoPtr = (XWEventInfoPtr) (paramPtr->params[0]);
- myWindow = myXWEventInfoPtr->eventWindow;
- myEvent = myXWEventInfoPtr->event;
-
- GetPort(&savePort);
- SetPort(myWindow);
- ProcessEvent(paramPtr, myXWEventInfoPtr, myWindow, &myEvent);
- SetPort(savePort);
- }
-
-
- Does this help?
-
-
- |E|J- ED DRAPER
- rEpar|D|<- Radiologic/Pathologic Institute
- The University of Texas M.D. Anderson Cancer Center
- draper@odin.mda.uth.tmc.edu
-