From: Mark D. <mar...@zn...> - 2007-03-19 18:32:23
|
Hi, I assume you just want to remove individual items rather than clear the whole canvas? Sorry, I have no code snippet but the function you need is Wx::DC::SetLogicalFunction The general approach is to repeat the drawing code after setting the appropriate logical function - so overwriting returns you to the original background. I don't have the correct logical functions to use, but hopefully this points you in the right direction. Regards Mark Gene Beaumont wrote: > Can anyone supply info and/or code snippet concerning how to undo/redo > text & primitives that are drawn on a canvas that is created via the > following: > > my $dc = Wx::PaintDC->new( $self ); > > Thanks, > Gene > > Eugene S. Beaumont Jr. > Senior Consultant > Intercept Technology Inc. > *** Essayons *** > Office: 1-404-352-0111 x924 > Fax: 585.768.9372 > http://www.intercept.com > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users |