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: Joe Strout <joe@inspiringapps.com>
Date: Thu, 30 Oct 2008 09:24:34 -0600
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: <fed2e2560810291112m397b7708tfbf83e42ae0f9bc1@mail.gmail.com>
References: <fed2e2560810291112m397b7708tfbf83e42ae0f9bc1@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
On Oct 29, 2008, at 12:12 PM, Dennis Birch wrote:

Its frontmost layer is a canvas that displays content from
a PDF file, generated with calls to MBS plugin functions. When there
is a change in the content (such as a page change), it refreshes
itself (with a call to "me.refresh"), which triggers its Paint event
handler. But it seems to pass the event up to the window as it also
triggers the window's Paint event handler. That seems like a bug to
me.

It's not a bug. That's how it has to work. Avoid calling Refresh if you don't want to repaint everything in that area of the window. (You might instead draw directly to the canvas .graphics, for example.)

Best,
- Joe

--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.com





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