PM...........For clarification, symptoms seen in both WinXP and Linux
(DSL/Debian).
At 6:07 PM -0700 4/21/06, Paul Mathews wrote:
>The above works fine for cvsDicePair(0), i.e., the non-cloned Canvas, but
it
>never fires for any of the other instances.
How are you judging that? It might be true, but that would be a bug
that I'd think I would have seen, and I've never seen anything like
it. It strikes me as more likely that some logic flaw is causing the
drawing not to appear.
PM....Have tried various approaches, including setting breakpoint in Paint
Event
and conditional break on Index value (see below), all with result that there
are
no breaks with cloned canvases. I've dragged various other windows over
Window1,
with the result that breakpoint in Paint is triggered for non-cloned
Canvases,
only. Absent the breakpoint, non-cloned Canvases refresh properly....
To tell the difference, I would suggest adding something like this:
System.DebugLog "Painting canvas " + str(Index)
as the very first line of the Paint event. Then, look in the Console
(on OS X) or DebugView (on Win32) to see which canvases are painting.
You could also try something like this:
if Index = 5 then break // let's stop in the debugger for canvas 5
PM....Did this, and only the non-cloned Canvases cause break.....
This will drop you into the debugger when Index = 5, which not only
proves that it's actually firing, but then lets you step through the
code to see if anything is amiss.
Finally, as a separate test, I'd suggest commenting out your entire
Paint event and adding this code instead:
g.FillOval 0, 0, g.width, g.height
This code should be so simple as to be fool-proof. I'd expect to see
an oval for each and every canvas; if you don't, then it's almost
certainly the case that the rest of your canvases are either
malpositioned or have Visible=False.
HTH,
- Joe
.....Just did the last test you suggest, i.e, FillOval (having first set
ForeColor to a visible color), with the result that non-cloned Canvases
fill with Ovals and cloned canvases do nothing. I'm not sure what is
meant by 'malpositioned', but operations like FillRect work just fine
in Methods, I just don't get any refresh from Paint Event.
Paul
_______________________________________________
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>
From Mon 24 Apr 2006 10:48:36 -0600
Return-Path: <gettingstarted-bounces at lists dot realsoftware dot com>
Received: from lists.realsoftware.com (209.198.132.125) by realsoftware.com
with ESMTP (Eudora Internet Mail Server 3.1.3);
Mon, 24 Apr 2006 11:48:47 -0500
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id 04BEF1217081; Mon, 24 Apr 2006 11:48:42 -0500 (CDT)
X-Original-To: gettingstarted at lists dot realsoftware dot com
Delivered-To: gettingstarted at lists dot realsoftware dot com
Received: from jareth.dreamhost.com (jareth.dreamhost.com [66.33.198.201])
by lists.realsoftware.com (Postfix) with ESMTP id 260171217073
for <gettingstarted at lists dot realsoftware dot com>;
Mon, 24 Apr 2006 11:48:37 -0500 (CDT)
Received: from [10.0.1.2] (c-67-174-105-26.hsd1.co.comcast.net [67.174.105.26])
by jareth.dreamhost.com (Postfix) with ESMTP id 442F2191F82
for <gettingstarted at lists dot realsoftware dot com>;
Mon, 24 Apr 2006 09:48:36 -0700 (PDT)
Date: Mon, 24 Apr 2006 10:48:36 -0600
From: joe at strout dot net
To: Getting Started <gettingstarted at lists dot realsoftware dot com>
In-Reply-To: <OMEMIIPCHEKAIIJNFBAACECFCJAA dot opto at whidbey dot com>
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20060424164836 dot 442F2191F82 at jareth dot dreamhost dot com>
Subject: RE: Cloned Canvas doesn't trigger Paint event?
X-BeenThere: gettingstarted at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Sender: gettingstarted-bounces at lists dot realsoftware dot com
Errors-To: gettingstarted-bounces at lists dot realsoftware dot com
You wrote:
> .....Just did the last test you suggest, i.e, FillOval (having first set
> ForeColor to a visible color), with the result that non-cloned Canvases
> fill with Ovals and cloned canvases do nothing. I'm not sure what is
> meant by 'malpositioned', but operations like FillRect work just fine
> in Methods, I just don't get any refresh from Paint Event.
My "malpositioned" I mean positioned somewhere that you can't see them -- most
likely, off the window, or perhaps embedded in some other control that's been
set to invisible.
My current best bet is that it's either that, or the cloned controls are
invisible for some reason (either they have .Visible=False, or some parent
control they belong to does).
HTH,
- Joe
--
Joe Strout -- joe at strout dot net
Verified Express, LLC "Making the Internet a Better Place"
http://www.verex.com
_______________________________________________
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>
|