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: Sun, 7 May 2006 17:43:03 -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>

On May 7, 2006, at 11:57 AM, Björn Eiríksson wrote:

Don't know exactly what you mean by "lock up other canvases" but have you tried to call it in the window.resize event, instead of the control.statechanged callback? Is there a difference?

It is actually called in neither of them.

It is called only in Paint event. But it happens after a Window is resized. To make it even stranger then the context that is getting drawn into is not even the Window context, its a off screen context.

By getting locked up then I mean that Canvas controls on the same window will stop drawing them selfs.

I have no problems with the DrawPicture in controls where I am using exclusive REALbasic Graphics calls. But that is not the case in the Grid controls where its a mixed world of REALbasic ports, QD and Quartz ports. And the DrawPicture does something to the QD port that I am unable to restore the state for. (Probably because I don't know what it does to the port)


Have you tried REALSelectGraphics instead of calling GetGWorld (&origPort ,&origDev); followed by SetGWorld, in case RB had mucked with the gworld in ways that would somehow change everything?

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>