Restore Window/Dialog size 3.1.4 GTK3

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.
Post Reply
User avatar
rocrail
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Restore Window/Dialog size 3.1.4 GTK3

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???
Best regards,
Rob.

User avatar
doublemax
Moderator
Moderator
Posts: 14976
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Restore Window/Dialog size 3.1.4 GTK3

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!

User avatar
rocrail
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Restore Window/Dialog size 3.1.4 GTK3

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.
Best regards,
Rob.

User avatar
rocrail
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Restore Window/Dialog size 3.1.4 GTK3

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.
Best regards,
Rob.

User avatar
doublemax
Moderator
Moderator
Posts: 14976
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Restore Window/Dialog size 3.1.4 GTK3

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!

User avatar
rocrail
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Restore Window/Dialog size 3.1.4 GTK3

Post by rocrail » Sat Jul 25, 2020 12:35 pm

OK, just added a new ticket:
https://trac.wxwidgets.org/ticket/18854
Best regards,
Rob.

Post Reply