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
Super wx Problem Solver
Super wx Problem Solver
Posts: 299
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Restore Window/Dialog size 3.1.4 GTK3

Post 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???
Best regards,
Rob.
https://wiki.rocrail.net
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Restore Window/Dialog size 3.1.4 GTK3

Post 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?
Use the source, Luke!
User avatar
rocrail
Super wx Problem Solver
Super wx Problem Solver
Posts: 299
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Restore Window/Dialog size 3.1.4 GTK3

Post 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.
Best regards,
Rob.
https://wiki.rocrail.net
User avatar
rocrail
Super wx Problem Solver
Super wx Problem Solver
Posts: 299
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Restore Window/Dialog size 3.1.4 GTK3

Post 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.
Best regards,
Rob.
https://wiki.rocrail.net
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Restore Window/Dialog size 3.1.4 GTK3

Post 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
Use the source, Luke!
User avatar
rocrail
Super wx Problem Solver
Super wx Problem Solver
Posts: 299
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Restore Window/Dialog size 3.1.4 GTK3

Post by rocrail »

OK, just added a new ticket:
https://trac.wxwidgets.org/ticket/18854
Best regards,
Rob.
https://wiki.rocrail.net
Post Reply