void GetDefaultWindowRect(wxRect *defRect)
{
*defRect = wxGetClientDisplayRect();
defRect->width = 600;
defRect->height = 400;
//These conditional values assist in improving placement and size
//of new windows on different platforms.
#ifdef __WXGTK__
defRect->height += 20;
#endif
#ifdef __WXMSW__
defRect->height += 40;
#endif
#ifdef __WXMAC__
defRect->height += 55;
#endif
}
Note above the conditional changes in height based on operating system.
After having seen numerous reports of default windows opening behind the 55
pixels tall Mac menubar I took a closer look at this. Note that on the Mac
the height is increased by 55 when according to my calculations the absolute
X (upper edge) should be increased by 55 and the height should be decreased
by 55:
#ifdef __WXMAC__
defRect->x += 55;
defRect->height -= 55;
#endif
I think that the #ifdef __WXGTK__ implies a Linux compile. I have seen a
couple of reports of default Windows having their title bars hidden on
Linux. A similar repair might be in order there as well.
As for the Windows compile, I can come up with no rationale but I see no
possible problem.
If there is a valid reason for changing the height alone, the initial height
should start out at numeral 420, the WXGTK condition should be removed, and
the other two conditions decreased by 20.
--Ed
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel