Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
rocrail
Super wx Problem Solver
Posts: 299 Joined: Fri Oct 02, 2009 2:02 pm
Post
by rocrail » Sat Jul 25, 2020 10:17 am
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???
doublemax
Moderator
Posts: 19163 Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2
Post
by doublemax » Sat Jul 25, 2020 10:26 am
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?
Use the source, Luke!
rocrail
Super wx Problem Solver
Posts: 299 Joined: Fri Oct 02, 2009 2:02 pm
Post
by rocrail » Sat Jul 25, 2020 10:51 am
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.
rocrail
Super wx Problem Solver
Posts: 299 Joined: Fri Oct 02, 2009 2:02 pm
Post
by rocrail » Sat Jul 25, 2020 11:09 am
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.
doublemax
Moderator
Posts: 19163 Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2
Post
by doublemax » Sat Jul 25, 2020 12:26 pm
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
Use the source, Luke!
rocrail
Super wx Problem Solver
Posts: 299 Joined: Fri Oct 02, 2009 2:02 pm
Post
by rocrail » Sat Jul 25, 2020 12:35 pm