Light gray background of wxTreebook on macOS
Light gray background of wxTreebook on macOS
Hi Everyone!
I'm using wxWidgets 3.1.4 on macOS mojave (10.14.6). After upgrading to 3.1.4 I started seeing a light gray background in wxTreebooks, but only in the region that has no text:
Is there a flag that I would need to change regarding to reset the background to white? Is it a feature or a bug?
Thank you, I appreciate all responses.
Andrea
I'm using wxWidgets 3.1.4 on macOS mojave (10.14.6). After upgrading to 3.1.4 I started seeing a light gray background in wxTreebooks, but only in the region that has no text:
Is there a flag that I would need to change regarding to reset the background to white? Is it a feature or a bug?
Thank you, I appreciate all responses.
Andrea
Re: Light gray background of wxTreebook on macOS
Hi,
Do you see the same in the notebook sample?
How did you build wxWidgets? What was exact configure line?
Thank you.
Do you see the same in the notebook sample?
How did you build wxWidgets? What was exact configure line?
Thank you.
Re: Light gray background of wxTreebook on macOS
Hello,
This code produces these dialogs on macOS (with wx 3.1.4) and on Windows (wx. 3.1.3):
The notebook behaves well, only the treebook shows up with a different background color. I also noticed that wxEditableListBox behaves in a similar way: initially the entire list is gray and no text is shown, then when you click on a row, the text becomes visible having a white background.
These are the configuration flags we use:
--with-opengl --with-cocoa --enable-compat30 --with-libjpeg --with-libpng --with-zlib --enable-std_iostreams --enable-std_string --enable-protocols --enable-ftp --enable-fs-inet --enable-protocols --enable-ftp --enable-fs-inet --without-macosx-sdk --with-macosx-version-min=10.10 --with-macosx-version-min=10.10 CPPFLAGS=-I/opt/X11/include LDFLAGS=-L/opt/X11/lib PKG_CONFIG=/usr/bin/false
Thank you!
This code produces these dialogs on macOS (with wx 3.1.4) and on Windows (wx. 3.1.3):
Code: Select all
void CHelloWorldDlg::CreateControls()
{
CHelloWorldDlg* itemDialog1 = this;
wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
itemDialog1->SetSizer(itemBoxSizer2);
wxStaticText* itemStaticText3 = new wxStaticText( itemDialog1, wxID_STATIC, _("Treebook"), wxDefaultPosition, wxDefaultSize, 0 );
itemBoxSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
wxTreebook* treebook = new wxTreebook(itemDialog1, wxID_ANY, wxDefaultPosition, wxSize(-1, 100), wxBK_DEFAULT);
itemBoxSizer2->Add(treebook, 1, wxGROW | wxALL, 5);
wxStaticText* itemStaticText4 = new wxStaticText(itemDialog1, wxID_STATIC, _("Notebook"), wxDefaultPosition, wxDefaultSize, 0);
itemBoxSizer2->Add(itemStaticText4, 0, wxALIGN_CENTER_HORIZONTAL | wxALL, 5);
wxNotebook* notebook = new wxNotebook(itemDialog1, wxID_ANY, wxDefaultPosition, wxSize(100, 120), wxBK_DEFAULT);
itemBoxSizer2->Add(notebook, 1, wxALIGN_CENTER_HORIZONTAL | wxALL, 5);
wxWindow* panel = new wxPanel(notebook);
notebook->AddPage(panel, wxT("Panel"));
wxButton* itemButton5 = new wxButton( itemDialog1, wxID_CANCEL, _("&Close"), wxDefaultPosition, wxDefaultSize, 0 );
itemBoxSizer2->Add(itemButton5, 0, wxALIGN_CENTER_HORIZONTAL |wxALL, 5);
}
These are the configuration flags we use:
--with-opengl --with-cocoa --enable-compat30 --with-libjpeg --with-libpng --with-zlib --enable-std_iostreams --enable-std_string --enable-protocols --enable-ftp --enable-fs-inet --enable-protocols --enable-ftp --enable-fs-inet --without-macosx-sdk --with-macosx-version-min=10.10 --with-macosx-version-min=10.10 CPPFLAGS=-I/opt/X11/include LDFLAGS=-L/opt/X11/lib PKG_CONFIG=/usr/bin/false
Thank you!
Re: Light gray background of wxTreebook on macOS
Hi,
So if you build the notebook sample that comes with the wxWidgets will you see the same difference?
I also find it weird that you configure line contains some options twice. And also there is some weird ones:
You sure about that configure line?
Thank you.
So if you build the notebook sample that comes with the wxWidgets will you see the same difference?
I also find it weird that you configure line contains some options twice. And also there is some weird ones:
Code: Select all
--without-macosx-sdk --with-macosx-version-min=10.10
Thank you.
Re: Light gray background of wxTreebook on macOS
Hello,
Yes, I see the same behavior in the notebook example: the wxNotebook is fine but the wxTreebook has the light gray background.
Does it have to do with any of the configure's options?
What would you recommend instead of this: "--without-macosx-sdk --with-macosx-version-min=10.10" ?
Thank you.
Yes, I see the same behavior in the notebook example: the wxNotebook is fine but the wxTreebook has the light gray background.
Does it have to do with any of the configure's options?
What would you recommend instead of this: "--without-macosx-sdk --with-macosx-version-min=10.10" ?
Thank you.
Re: Light gray background of wxTreebook on macOS
Hello,
I configured the build as you suggested and the notebook sample still shows the treebook with a light gray background: Is it a feature or bug?
Thank you.
I configured the build as you suggested and the notebook sample still shows the treebook with a light gray background: Is it a feature or bug?
Thank you.
Re: Light gray background of wxTreebook on macOS
Hi,
I don't know.
Try to send an E-mail to wx-users ML.
This forum is for users by users of the library.
Thank you.
I don't know.
Try to send an E-mail to wx-users ML.
This forum is for users by users of the library.
Thank you.
Re: Light gray background of wxTreebook on macOS
Hello,
Following your advice I did ask that group and it turned out to be a bug that was recently fixed: https://trac.wxwidgets.org/ticket/18940
Thank you for all your help!
Following your advice I did ask that group and it turned out to be a bug that was recently fixed: https://trac.wxwidgets.org/ticket/18940
Thank you for all your help!