realbasic-nug
[Top] [All Lists]

How do I set the grafport to direct Quickdraw calls to a particular wind

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: How do I set the grafport to direct Quickdraw calls to a particular window?
From: "Peter K. Stys" <pkstys at gmail dot com>
Date: Thu, 27 Apr 2006 15:00:13 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=JSdgtQEaQm9n/hUNMf3LfeeHcP/rj59D5cAUIc7BmGZFI5tHDp51zVT+e529tQp32XmoGFdRXBRvFSSLDzponHvz/hvVQ1l3POMOt1uAue8BQ5+NleC1NZH9daZL1zZBXbHvO1hdQ9AbpbjzBMJSEb+kkr7v8lo3kxakcGDmm/I=
I have some QD calls that draw stuff. Problem is, often the drawing
occurs at the right coordinates, but in the wrong window.  So I guess
I need to set the grafport of a particular window.

Do I use SetPort?  If so, what do I pass?

SetPort self.macWindowPtr causes a crash so that's not it.

Any ideas?

Incidentally, this wasn't an issue with earlier versions of RB, but
since 2K5 and 2K6, activating a window does not reset the grafport
accordingly.

Thanks,
Peter.


--
-------------------------------------------------------------------------------
Peter K. Stys, MD
Professor of Medicine(Neurology), Senior Scientist
Ottawa Health Research Institute, Div. of Neuroscience
Ottawa Hospital / University of Ottawa
Ontario, CANADA
tel:    (613)761-5444
fax:    (613)761-5330
http://www.ohri.ca/profiles/stys.asp
-------------------------------------------------------------------------------
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>