Page 1 of 1
Restore Window/Dialog size 3.1.4 GTK3
Posted: Sat Jul 25, 2020 10:17 am
by rocrail
With the Ubuntu libwxgtk3.0 libraries, I could resize Windows/Dialogs with
Code: Select all
dialog->SetSize(x, y, width, height);
with the wx 3.1.4 and GTK3 this does no longer works.
Under macOS and Windows its still OK.
How to resize a Window/Dialog under Linux GTK3???
Re: Restore Window/Dialog size 3.1.4 GTK3
Posted: Sat Jul 25, 2020 10:26 am
by doublemax
This sounds like a bug. Can you reproduce it with the minimal sample? What was the last wxWidgets version that you know where this was still working?
Re: Restore Window/Dialog size 3.1.4 GTK3
Posted: Sat Jul 25, 2020 10:51 am
by rocrail
It still works with the Ubuntu libwx 3.0 libraries.
Getting the dialog size on close is no problem, but the restore does not work.
I will try it with the minimal sample, and report.
Re: Restore Window/Dialog size 3.1.4 GTK3
Posted: Sat Jul 25, 2020 11:09 am
by rocrail
In the dialogs sample you can reproduce it adding a SetSize call:
Code: Select all
void MyFrame::OnStandardButtonsSizerDialog(wxCommandEvent& WXUNUSED(event))
{
StdButtonSizerDialog dialog(this);
dialog.SetSize(10,200,1800,800); // Added for testing setting the Size.
dialog.ShowModal();
}
The x,y position is set, but not the size.
BTW: Resizing the Frame Window in the minimal sample is no problem; Is also no problem in my application.
Re: Restore Window/Dialog size 3.1.4 GTK3
Posted: Sat Jul 25, 2020 12:26 pm
by doublemax
I don't see anything in the changelog that could explain this behavior, so i still think this is a bug. Please open a ticket at
http://trac.wxwidgets.org
Re: Restore Window/Dialog size 3.1.4 GTK3
Posted: Sat Jul 25, 2020 12:35 pm
by rocrail