I have a dialogue which is larger than it's parent, so when it displays, part of it is off screen at the bottom as it appears to be vertically centred on parent, which is shown full screen.
Is there a simple way to display a dialogue screen centred?
Show dialogue centre screen, not centre parent? Topic is solved
Re: Show dialogue centre screen, not centre parent?
CentreOnScreen method does not work as expected? Which platform is it?
Re: Show dialogue centre screen, not centre parent?
I haven't found centreofscreen method! Thanks, I'll look for it.
Re: Show dialogue centre screen, not centre parent?
You misread my post, it's CentreOnScreen, inherited from wxTopLevelWindow: http://docs.wxwidgets.org/trunk/classwx ... 9e43b03c29
Re: Show dialogue centre screen, not centre parent?
Read it on phone in sunlight with poor eyesight!PB wrote:You misread my post, it's CentreOnScreen, inherited from wxTopLevelWindow: http://docs.wxwidgets.org/trunk/classwx ... 9e43b03c29
Re: Show dialogue centre screen, not centre parent?
After a bit of faffing about I found that this->CenterOnScreen() executed last (after Fit()ing and Layout()ing) did the trick. Thank you.