[wxMac] wxDialog::Center function improvement required
Vadim Zeitlin
vadim at wxwindows.org
Sun Mar 4 13:17:16 PST 2007
On Tue, 20 Feb 2007 20:38:08 +0100 H <H at h.com> wrote:
H> When calling wxDialog::Center the dialog will be centered on the screen.
H> This is normally not a problem but for large vertical dialogs this is a
H> problem because the main screen has on the upper part the menu bar. If
H> the dialog is now vertically centered part of the upper frame part is
H> hidden below the menubar although there is still space available in the
H> bottom part of the screen.
H> I suggest a modification of wxDialog::Center in a sense that it centers
H> the dialog on the screen after having subtracted the space required for
H> the menubar for the main screen.
This should already be the case. The problem is that
wxDisplay::GetClientArea() seems to be buggy under Mac. See
http://article.gmane.org/gmane.comp.lib.wxwidgets.devel/83499/
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list