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>

Reply via email to