How to get the size of a window

Hello,

My Problem now is, that parent.GetSize() only returns the ClientSize of
the parent-window (wxFrame) and not the whole size of the window. Also there
was no GetPos() or something like that for the wxFame.

wxFrame has a GetPosition() method because it's derived (inherited) from
wxWindow class. (And wxWindow has a GetPosition() method)

Alternatively you could say wxFrame.Centre() to center the Frame on
screen.

Atti

Hello Atti,

wxFrame has a GetPosition() method because it's derived (inherited) from
wxWindow class. (And wxWindow has a GetPosition() method)

...thats right ...I must have been blind... Thanks for that!

Alternatively you could say wxFrame.Centre() to center the Frame on
screen.

The Problem with that is, that I have a Window with some Buttons as the Apps
Menubar and then some Client-windows that should stick to the Menubar.

Am I right, that the clientsize + the size of Titlebar and borders would be
the whole Size of the Window?

So, is there any possibility to find out these (OS-dependent) Sizes??

Thanks in advance,

Bjoern

···

--
small office solutions
info@sosnetz.de - http://www.sosnetz.de

Hi,

Am I right, that the clientsize + the size of Titlebar and borders would

be

the whole Size of the Window?

I think GetSize() or GetSizeTuple() gives the whole size of the window. I
may have missed some of the earlier mails but it seems this is what you are
looking for. GetClientSize() returns only the client size.

So, is there any possibility to find out these (OS-dependent) Sizes??

wxSystemSettings gives you all the system dependent sizes of things like
window borders, captions, scroll bars, etc.

Rick King
Southfield MI

Hi Rick,

[...]
I think GetSize() or GetSizeTuple() gives the whole size of the window. I

... unfortunately not. My Window was 780 X 80 and GetSize gave me 752 x 56 or
something like that and I think, this could only be the "inner size".

may have missed some of the earlier mails but it seems this is what you are
looking for. GetClientSize() returns only the client size.

> So, is there any possibility to find out these (OS-dependent) Sizes??

wxSystemSettings gives you all the system dependent sizes of things like
window borders, captions, scroll bars, etc.

TNX 1.0E6 !!!
I think this will do what I need.

Bye,

Bjoern.

···

Am Montag, 13. Januar 2003 17:57 schrieb Rick King:
--
small office solutions
info@sosnetz.de - http://www.sosnetz.de