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.
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
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
--
Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
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>