realbasic-nug
[Top] [All Lists]

Re: Should Paint event be passed up hierarchy?

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Should Paint event be passed up hierarchy?
From: Ask Greiffenberg <maillist@popgun.dk>
Date: Thu, 30 Oct 2008 08:02:02 +0100
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <fed2e2560810291449l4e20425bo58486d4fa5d98f18@mail.gmail.com>
References: <fed2e2560810291112m397b7708tfbf83e42ae0f9bc1@mail.gmail.com> <964DA580-94DE-4C90-B382-870E08AF3D2E@popgun.dk> <fed2e2560810291449l4e20425bo58486d4fa5d98f18@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
I would assume so, since the canvas might be transparent.

Have you tried to force the window not to paint (by putting a boolean in the windows paint event)


Perhaps you are looking for the optional eraseBackground property of the refresh method?



Den 29/10/2008 kl. 22.49 skrev Dennis Birch:

On Wed, Oct 29, 2008 at 12:46 PM, Ask Greiffenberg <maillist@popgun.dk> wrote:
I have no idea if this will help you, but are you aware of:

http://ramblings.aaronballman.com/2005/07/Double_Buffering.html

The last comment in the bottom have helped me a lot!! (the one about the way
the refreshes are called, and the workaround)

I wasn't aware of it, but it doesn't help in this particular
situation, and doesn't answer my question that I can see.

I probably shouldn't have used the term "flickering" in my question as
that is not the primary issue. In tthis particular case it really all
comes down to controlling when the window is refreshed, and that seems
to be somewhat out of my control.

Let me restate the question: Is it correct behavior for a window's
paint event handler to fire because a canvas that covers the window is
refreshed?

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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