SetSize Problem
Vadim Zeitlin
vadim at wxwindows.org
Fri May 4 00:17:29 PDT 2007
On Thu, 3 May 2007 22:58:21 -0700 Terry Farnham <TerryF at PipeWorks.Com> wrote:
TF> I am having an issue with SetSize on my top level wxFrame window. At
TF> initialization, I call SetSize to reposition and resize the frame to
TF> what the user had set the window to at the time they last closed the
TF> application. The following is a stack dump from Visual Studio that
TF> illustrates the problem. Looking closely at the dump(sorry if it
TF> doesn't come through very well), my app makes a call to
TF> wxWindowBase::SetSize(181, 215,...). I had the breakpoint set on my
TF> handler that catches the move event. Notice that before I get the
TF> event, there is a call to wxWindow::HandleMove(185,265).
This is the difference between window and client coordinates. I.e. the
coordinates in EVT_MOVE handler are for the client area origin, not the top
left corner of the title bar. I'm not totally sure if it's the same under
the other ports but I believe it is for at least wxGTK.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list