From: Jouke V. <jo...@pv...> - 2001-10-11 07:12:12
|
> >Any ideas why? > > I don't have a wxPerl at hand here, but if you draw from 'new' > then the first paint event you get will destroy everything you painted. > If this is just a test case, and you do the drawing from an > event handler ( say in response to a menu/toolbar event ) then > I need to check at home. Eventually I indeed want to draw from an event handler, but for this test, I'm trying to create a ScrollWindow in a frame and try to paint on it from the constructor of the frame. The code gets executed without any warnings or errors, but the stuff just isn't displayed. Not even after a Refresh method or a resize ... > >#!/usr/bin/perl <snip code> > >package main; > > > >my $app = MyApp->new(); > >$app->MainLoop(); -- *-----------------------------------------------* |Jouke Visser |jo...@pv... | |Perl GUI Geek |http://www.pvoice.org | *-----------------------------------------------* PS: Notice new mailaddress!! |