How to get size of Panel wxwidgets

Hey,
i just started recently with wxwidgets, so i am a beginner.
I have trouble to get the size for my panel, i get them
but the dimensions are wrong.
The size is needed to match it with a image.
so when the panel grows, the image has to grow too.
Here is the way how i get the size :

...............
int x;
int y;
GetSize(&x,&y);
...............

its in the .cpp of the panel which i want to get the size from..
many thanks and best regards,

MrSY
In what regard are the values wrong?

Maybe you want GetClientSize(...)?
i was able to solve it :D
the values were constantly on 20 .
with this method i get the real values..
but thanks.
..............................................................................................................
void PlatzPanel::OnMove(wxSizeEvent& event) {


wxSize size = event.GetSize();

this->text1->SetLabel(wxString::Format(wxT("x: %d"), size.x));
this->text2->SetLabel(wxString::Format(wxT("y: %d"), size.y));
}
..............................................................................................................
Registered users can post here. Sign in or register to post.