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.
faruq
In need of some credit
Posts: 3 Joined: Mon Jun 28, 2021 9:38 am
Post
by faruq » Mon Jun 28, 2021 10:21 am
Hi,
I have an issue with wxFrame on macOS Big Sur with 4K Display (iMac Retina). wxFrame window lags when it's maximized/unmaximized. I'm using wxWidgets 3.1.5.
Here is the video:
https://drive.google.com/file/d/1s2sSuo ... sp=sharing
And here is the code:
Code: Select all
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <wx/notebook.h>
#include <wx/sizer.h>
class GUI_App: public wxApp {
public:
virtual bool OnInit();
};
bool GUI_App::OnInit() {
wxFrame* frame = new wxFrame(NULL, 1, "Test");
wxPanel* panel = new wxPanel(frame);
wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
wxNotebook* note = new wxNotebook(frame, 2);
wxPanel* p1 = new wxPanel(note);
wxPanel* p2 = new wxPanel(note);
note->AddPage(p1, "One", true);
note->AddPage(p2, "Two");
sizer->Add(note, 1, wxEXPAND, 0);
frame->SetSizer(sizer);
frame->Show();
return true;
}
IMPLEMENT_APP(GUI_App)
wxIMPLEMENT_WX_THEME_SUPPORT;
Thank you.
Best regards,
Faruq.
doublemax
Moderator
Posts: 19160 Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2
Post
by doublemax » Mon Jun 28, 2021 11:53 am
Does it also happen when you build and run the "minimal" sample that comes with wxWidgets?
And it does not happen with any other application?
Use the source, Luke!
faruq
In need of some credit
Posts: 3 Joined: Mon Jun 28, 2021 9:38 am
Post
by faruq » Mon Jun 28, 2021 5:40 pm
doublemax wrote: ↑ Mon Jun 28, 2021 11:53 am
Does it also happen when you build and run the "minimal" sample that comes with wxWidgets?
Yes, it's happen when wxFrame has sizer or a child that expands its size to wxFrame's size.
doublemax wrote: ↑ Mon Jun 28, 2021 11:53 am
And it does not happen with any other application?
Yes, it's only happen to wxWidgets app. "Audacity" app has the issue too.
doublemax
Moderator
Posts: 19160 Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2
Post
by doublemax » Mon Jun 28, 2021 5:48 pm
Please open a ticket at
http://trac.wxwidgets.org/ and provide the same information.
(you'll have to create an account there, it's unrelated to this forum).
Thanks.
Use the source, Luke!