Gerson Kurz wrote:
I have a MDI app with various child windows. The default layout is two
windows aligned (as in "Tile vertically"). When the user resizes the main
frame, I want the child windows to automatically resize as well, so as to
keep the two window layout.Now, I have a problem calculating offsets with / without toolbar present.
a) You cannot pass the return value of GetClientSize() to resize the clients
directly, you have to decrease both x and y by 4. This seems a bit
suspicious to me - how come its exactly 4 ?b) If you have a toolbar present, you have to correct the y-value of
GetClientSize() by the height of the toolbar TO A NEGATIVE VALUE.e.g. without toolbar my y-pos is 0, with toolbar it is -24.
Sounds like a bug in wxMDIParentFrame. Please submit a bug report about it with a "wxMSW" category.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!