realbasic-plugins
[Top] [All Lists]

Re: What does REALbasic DrawPicture do

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: What does REALbasic DrawPicture do
From: Alfred Van Hoek <vanhoek at mac dot com>
Date: Mon, 8 May 2006 04:44:42 -0400
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <FA7809D6-DB10-4C06-8473-D5EB070E2C6A at einhugur dot com> <7C7346CB-A60E-4DDA-8577-C80D169B3733 at mac dot com> <1DD6BCDD-9834-4486-8BE5-8CE23DF7714D at einhugur dot com> <0F04765E-48BE-41E6-8C99-601F0B190EBE at mac dot com> <9DAFDFF5-0709-4152-BD60-E5F7C1410E79 at einhugur dot com>

On May 7, 2006, at 6:40 PM, Björn Eiríksson wrote:

Yes tried that, and tried using both REALSelectGraphics and SetGWorld, also tried the old SetPort.

Tried everything that I can think of


Ok,

1) g->m_Graphics. Is it possible that you require to call REALGetControlGraphics, instead of always using the global one you initially obtained?

2) While I know it is the mac platform you're dealing with, we know that on windows the paint event can provide different contexts, so you might want to call REALGetControlGraphics every time when the paint event is fired on the mac. Not doing so could explain why canvases lock on the window, because of an apparently invalid context in g->m_Graphics.

If you also have tried this, then there is certainly something that requires clarification from RS. Dynamic access should work.

Alfred

        

_______________________________________________
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>