Resizing drawings in a wxFrame

David Bolen db3l at fitlinxx.com
Fri Jan 25 00:21:11 EST 2002


"Duncan Smith" <buzzard at urubu.freeserve.co.uk> writes:

> I have a general query about resizing drawings in a wxFrame.  I have tried
> the usual? dc.SetUserScale(x/548.0, y/364.0) (where my original window is of
> size 548, 364).  The trouble is that on a resize parts of the drawing tend
> to disappear behind toolbars and statusbars.  I have tinkered a lot without
> much success.  Does it just require more tinkering, or is there an obvious /
> standard solution I'm missing?  Thanks in advance for any help.

How are you determining the window size?  I think it should work
properly if you use GetClientSize() (instead of GetSize()) to take
into account window decorations, and then also use
GetClientAreaOrigin() to take toolbars into account.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list