On Mon, Jun 1, 2009 at 6:11 PM, lostgallifreyan <lostgallifre...@gmail.com> wrote: > > I know, that's why I just sent the post I sent just before I found this one > of yours. It contains full context so no further circles of guessing are > needed. It's taking too much time to reduce to contextless samples so this is > as good as I can get it. I need to know if it's only working because of some > bug that happens to favour it, or if there's a proper way to get the same > results. >
I ran the code and I see that the EVT_PAINT handler is incessantly called when you scroll over and down a bit. I would guess that is because you have overlapping windows which is not supported by wxWidgets. Before you can make any headway you have to get it to stop doing that. Put a print(os.date()) statement in the EVT_PAINT handler to see what I mean. I suggest trying to use a single wxWindow to do all the drawing and to clip the bitmap and lines to only draw the visible portions. You can even use a wxScrolledWindow if you like to make it more obvious to the user that they can scroll around. Regards, John ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users