From: Mark D. <mar...@zn...> - 2007-03-28 17:44:55
|
Vaughn Staples wrote: > Mark, > > I've used the standard "ColourDialog" in wxPerl; does there also exist > ones for selecting line styles & fill patterns that are commonly used > when drawing on a canvas? I'm suspecting that what I'm seeking doesn't > exist ... I just want to rule it out. > Hi, You'll need your own custom dialogs for these things. On zooming, use $dc->SetUserScale. For example $dc->SetUserScale(0.5,0.5) zooms to 50%. You have to call SetUserScale everytime you use the dc, so in addition to in your drawing routines it also needs to go into your mouse events routines BEFORE you call $event->GetLogicalPosition( $dc ); Regards Mark |