Search found 87 matches

by 72deluxe
Mon Nov 18, 2019 10:55 pm
Forum: Platform Related Issues
Topic: Dark mode 3.1.3 macOS
Replies: 5
Views: 432

Re: Dark mode 3.1.3 macOS

Thanks for that tip. I had a look through the code to see where it is handled and there's some code in the carbon directory but only mention of it once in cocoa. I managed to get it working anyway. I debugged it by adding a wxApp-level HandleEvent override function to see what events were being hand...
by 72deluxe
Mon Nov 18, 2019 4:29 pm
Forum: C++ Development
Topic: Sizing wxGrid
Replies: 5
Views: 223

Re: Sizing wxGrid

Ah I see what you mean. The grid will be created according to the wxDefaultSize passed in at the beginning, and then resized by the sizer. If you want the grid on the left to be narrower than the one on the right, set the proportion of the grids within the sizer differently. You have a total of 9 co...
by 72deluxe
Mon Nov 18, 2019 4:15 pm
Forum: C++ Development
Topic: Sizing wxGrid
Replies: 5
Views: 223

Re: Sizing wxGrid

I am sorry but I don't understand the question. wxGrid has a size parameter in its constructor which defines the created size of the grid. You could pass in a different size instead of wxDefaultSize, eg. dialog size.x / 2? Alternatively, if you add two grids into a horizontal wxBoxSizer and allocate...
by 72deluxe
Mon Nov 18, 2019 4:10 pm
Forum: Platform Related Issues
Topic: Dark mode 3.1.3 macOS
Replies: 5
Views: 432

Re: Dark mode 3.1.3 macOS

The call to Bind is being called in the constructor of myFrame. I think the documentation is wrong because the release notes for 3.1.3 ( https://raw.githubusercontent.com/wxWidgets/wxWidgets/v3.1.3/docs/changes.txt ) specifically mentions "Support for macOS Mojave and later dark mode." for wxOSX. Al...
by 72deluxe
Mon Nov 18, 2019 3:07 pm
Forum: C++ Development
Topic: Sizing wxGrid
Replies: 5
Views: 223

Re: Sizing wxGrid

You could try grid->AutoSizeColumns() ? Alternatively you could attach a size event handler to your grid and iterate through the columns, eg. to set all columns to the same width for the width of the grid. void myFrame::OnGridSize(wxSizeEvent &event) { int totalWidth = event.GetSize().x; int numberO...
by 72deluxe
Mon Nov 18, 2019 11:01 am
Forum: Platform Related Issues
Topic: Dark mode 3.1.3 macOS
Replies: 5
Views: 432

Dark mode 3.1.3 macOS

Hello I have seen that support for dark mode has been added in 3.1.3. I tried adding a comment on the page http://wxwidgets.org/news/2019/10/wxwidgets-3.1.3-released/ but it seems to have been marked as spam. I have built this under Mojave and tried the following: Bind(wxEVT_SYS_COLOUR_CHANGED, &myF...
by 72deluxe
Thu Oct 10, 2019 2:29 pm
Forum: Platform Related Issues
Topic: Mac slow bitmap drawing Mojave
Replies: 14
Views: 545

Re: Mac slow bitmap drawing Mojave

For now, I have written my code to not draw the gradient'd bitmap that I was caching and drawing if the platform is greater than Sierra.
Most activity will likely continue on the bug report at https://trac.wxwidgets.org/ticket/18516 instead of here.

Thanks for the suggestions nonetheless.
by 72deluxe
Mon Sep 30, 2019 8:44 pm
Forum: Platform Related Issues
Topic: Mac slow bitmap drawing Mojave
Replies: 14
Views: 545

Re: Mac slow bitmap drawing Mojave

I draw a bitmap over other basic primitives (filled arcs, lines, a circle). It is an animated pie chart. This openGL implementation looks very interesting though, thank you. I will try something shortly or just revert to using a graphics context every time if the screen depth != 32. It just seemed s...
by 72deluxe
Mon Sep 30, 2019 6:57 pm
Forum: Platform Related Issues
Topic: Mac slow bitmap drawing Mojave
Replies: 14
Views: 545

Re: Mac slow bitmap drawing Mojave

I've added a demo program on the support ticket (https://trac.wxwidgets.org/attachment/t ... 6/demo.cpp).
by 72deluxe
Mon Sep 30, 2019 3:13 pm
Forum: Platform Related Issues
Topic: Mac slow bitmap drawing Mojave
Replies: 14
Views: 545

Re: Mac slow bitmap drawing Mojave

OK I will put one together, apologies
by 72deluxe
Mon Sep 30, 2019 3:08 pm
Forum: Platform Related Issues
Topic: Mac slow bitmap drawing Mojave
Replies: 14
Views: 545

Re: Mac slow bitmap drawing Mojave

I cannot post the traces to the ticket as the maximum upload size is 275.0 KB, so the Google Drive link will have to do. Sorry - hope that's alright?
by 72deluxe
Mon Sep 30, 2019 3:04 pm
Forum: Platform Related Issues
Topic: Mac slow bitmap drawing Mojave
Replies: 14
Views: 545

Re: Mac slow bitmap drawing Mojave

Thanks for the speedy reply. Traces are available here:
https://drive.google.com/open?id=14sh2d ... 6FOsTuVIKm

I will attach the two trace zip files to the ticket.

Traces are on Instruments on Sierra for the sierra.trace.zip, and from Instruments on Mojave for mojave.trace.zip.
by 72deluxe
Mon Sep 30, 2019 2:14 pm
Forum: Platform Related Issues
Topic: Mac slow bitmap drawing Mojave
Replies: 14
Views: 545

Re: Mac slow bitmap drawing Mojave

I have opened this as https://trac.wxwidgets.org/ticket/18516 and will update this forum as/when anything changes. Thanks very much.
I have also mentioned this on StackOverflow to cast a wider net: https://stackoverflow.com/questions/58168080.

Suggestions are welcome in the interim!
by 72deluxe
Mon Sep 30, 2019 2:00 pm
Forum: Platform Related Issues
Topic: Mac slow bitmap drawing Mojave
Replies: 14
Views: 545

Re: Mac slow bitmap drawing Mojave

Thanks for the reply Max. I will.
by 72deluxe
Mon Sep 30, 2019 10:46 am
Forum: Platform Related Issues
Topic: Mac slow bitmap drawing Mojave
Replies: 14
Views: 545

Re: Mac slow bitmap drawing Mojave

Replying to myself, I see that my High Sierra is running at 32 bit depth but my Mojave is running at 24 bit. Looking in src/osx/core/bitmap.cpp, I see the comment that the bitmaps are ALWAYS 32 bit and wxBitmapRefData::Create sets m_depth to 32, although the overloaded constructor wxBitmapRefData::C...