Creating a second Frame at a relative position

I'm trying to pop up a secondary wxFrame at a specific position
relative to items in my main frame, something like this:

···

--------------

main frame x|
--------------|
File |
--------------|
             >
  align here>| ------------
             >> frame 2 x|

-------------- |------------|
                > >
                 ............

There are a couple of problems, particularly in a cross-platform
environment:

(a) On Linux Frame.GetRect() understandably returns the rectangle of
the raw X11 window, and doesn't take into account any border/
decoration added by the window manager, so it is impossible to get the
x position of the the second window to align exactly at the edge of
the first.

(b) On Windows, MenuBar.GetRect() returns garbage so that the height
of the menu bar cannot be taken into account when calculating y
position of the second window.

(c) On neither platform can I see a way of determining the height of
the title bar.

(a) doesn't matter too much. But: has anyone else run into (b), and
should it be reported as a bug (I'm getting it on both 2.4 and 2.6)?
And is there an answer to (c)?

--
______________________________________________

APR Smartlogik Ltd.
Simon Arrowsmith
Senior Software Engineer
Rustat House, Clifton Road, Cambridge CB1 7EJ
tel: +44 (0)1223 271 045
fax: +44 (0)1223 271 010
map: http://www.aprsmartlogik.com/contact/cambridgemap.php
mailto: simon.arrowsmith@aprsmartlogik.com
web: www.aprsmartlogik.com
*******************************************************
This e-mail may contain proprietary and confidential information and is
intended for the recipient(s) only. If an addressing or transmission error
has misdirected this e-mail, please notify the systems administrator by
forwarding this e-mail to mailto:postmaster@aprsmartlogik.com. If you
are not the intended recipient(s) - disclosure, distribution, copying or
printing of this e-mail is strictly prohibited.
********************************************************

To answer some of my own questions, SystemSettings_GetMetric() is the
solution to my problems on Windows. But it doesn't support any of the
things I need (MENU_Y, CAPTION_Y, BORDER_X) on Linux (wxPython2.6), so
(a) and some of (c) are still issues.

···

On Tuesday 16 August 2005 15:21, Simon Arrowsmith wrote:

(a) On Linux Frame.GetRect() understandably returns the rectangle of
the raw X11 window, and doesn't take into account any border/
decoration added by the window manager, so it is impossible to get the
x position of the the second window to align exactly at the edge of
the first.

(b) On Windows, MenuBar.GetRect() returns garbage so that the height
of the menu bar cannot be taken into account when calculating y
position of the second window.

(c) On neither platform can I see a way of determining the height of
the title bar.

--
______________________________________________

APR Smartlogik Ltd.
Simon Arrowsmith
Senior Software Engineer
Rustat House, Clifton Road, Cambridge CB1 7EJ
tel: +44 (0)1223 271 045
fax: +44 (0)1223 271 010
map: http://www.aprsmartlogik.com/contact/cambridgemap.php
mailto: simon.arrowsmith@aprsmartlogik.com
web: www.aprsmartlogik.com
*******************************************************
This e-mail may contain proprietary and confidential information and is
intended for the recipient(s) only. If an addressing or transmission error
has misdirected this e-mail, please notify the systems administrator by
forwarding this e-mail to mailto:postmaster@aprsmartlogik.com. If you
are not the intended recipient(s) - disclosure, distribution, copying or
printing of this e-mail is strictly prohibited.
********************************************************