Dear Chris,
Thank you for giving me a reply on this matter,
Now my question is all solved!
Kindly Regards,
mk
···
----- Original Message -----
From: Christopher Barker <Chris.Barker@noaa.gov>
To: wxPython-users@lists.wxwidgets.org
Sent: Sun, 20 Jan 2008 12:22:48 -0800
Subject: Re: [wxPython-users] Dynamic Resizing and Centering Image.
mkey wrote:
"If I want to re-scaling images, is it OK to bind EVT_SIZE handler or not?"
Yes, if you want to re-scale when the Window changes size, than an
EVT_SIZE handler tis the place to do it.the confused steamed from the fact that you added about "Centering" not
re-sizing, and the sample I sent did not re-size.Take a look at that code, thought as it seems likely that you'd want to
maintain the aspect ratio when you re-size the image -- which the
EVT_SIZE handler you sent did not do.-Chris
--
Christopher Barker, Ph.D.
OceanographerEmergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main receptionChris.Barker@noaa.gov
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org