Search found 64 matches

by wxBen
Thu Dec 01, 2022 3:16 pm
Forum: C++ Development
Topic: Exception in wxFontBase reference counter
Replies: 9
Views: 2375

Re: Exception in wxFontBase reference counter

After taking a closer look at the call stack: The font in question is this one: // the font returned by GetFont(wxSYS_DEFAULT_GUI_FONT): it is created when // GetFont() is called for the first time and deleted by wxSystemSettingsModule static wxFont *gs_fontDefault = NULL; void wxSystemSettingsModu...
by wxBen
Mon Nov 21, 2022 6:23 pm
Forum: C++ Development
Topic: Exception in wxFontBase reference counter
Replies: 9
Views: 2375

Re: Exception in wxFontBase reference counter

OOC: Just purely curious doublemax, I do not get out much, your location next to your name always shows as $fce2, is that http://www.fce2.eu/ (which is what Google says), which sadly does not work anymore since flash is gone, and there is not much else there.
by wxBen
Mon Nov 21, 2022 6:04 pm
Forum: C++ Development
Topic: Exception in wxFontBase reference counter
Replies: 9
Views: 2375

Re: Exception in wxFontBase reference counter

I added some code to make the sure the popup and child html windows are fully shut down earlier on. That can only help. That could explain why we only sometimes see this, depends if someone triggered the popup. With that and the deep cloning of the wxFont, I shall see if we still get this. As always...
by wxBen
Mon Nov 21, 2022 5:51 pm
Forum: C++ Development
Topic: Exception in wxFontBase reference counter
Replies: 9
Views: 2375

Re: Exception in wxFontBase reference counter

Our application does use threads, but not in a way that should impact this. But you know... worth investigating. We only call wxEntryCleanup after the user interface has been shut down fully. I wonder if its the tooltips that are maybe still active while we shut down, they use a wxHTML window which ...
by wxBen
Mon Nov 21, 2022 5:05 pm
Forum: C++ Development
Topic: Exception in wxFontBase reference counter
Replies: 9
Views: 2375

Exception in wxFontBase reference counter

We recently upgraded from wxWidgets 3.0.4 to 3.2.1. Our application is a large C++ application that is not wxWidgets based, but does use the wxBase, wxCore, wxHTML, and wxRibbon dlls. It uses the wxWidgets ribbon bar. Since the upgrade, we sometimes get the assertion shown below (at the bottom) when...
by wxBen
Tue Sep 06, 2022 12:31 am
Forum: C++ Development
Topic: DPI handling in wxWidgets 3.2
Replies: 5
Views: 515

Re: DPI handling in wxWidgets 3.2

It doesn't sound like a good idea to fight against wxWidgets' internal DPI handling, it's probably better to adjust your wx code to match the wxWidgets way of doing things. As you're only using one fixed DPI value in your patches, i assume is your app is only marked as "DPI aware", but no...
by wxBen
Fri Sep 02, 2022 7:57 pm
Forum: C++ Development
Topic: DPI handling in wxWidgets 3.2
Replies: 5
Views: 515

DPI handling in wxWidgets 3.2

I love wxWidgets! I am using wxWidgets 3.2.0 with a large native Windows C++ application =D> . The application is DPI aware and uses its own GUI toolkit (it is not a wxWidgets application) and DPI handling. The application also uses some wxWidgets components, such as the ribbon bar. It all works bea...
by wxBen
Thu Jul 14, 2022 2:31 pm
Forum: General Development
Topic: How do I make the ribbon bar larger?
Replies: 6
Views: 4917

Re: How do I make the ribbon bar larger?

Yes, but some systems with 8K resolution have Windows magnify everything 250%. With such a huge upscale, the ribbon bar starts to look pretty tiny. Our application is DPI aware, so when Windows says "make everything 50% bigger" we use larger fonts etc. so things do not become blurry. Every...
by wxBen
Wed Jul 13, 2022 3:47 pm
Forum: General Development
Topic: How do I make the ribbon bar larger?
Replies: 6
Views: 4917

Re: How do I make the ribbon bar larger?

If you are on a high DPI machine and the application is not DPI aware, then Windows can magnify everything. I shall try larger icons and a larger font and step into the ribbon bar to see what size it suggests initially and why.
by wxBen
Wed Jul 13, 2022 1:41 am
Forum: General Development
Topic: How do I make the ribbon bar larger?
Replies: 6
Views: 4917

Re: How do I make the ribbon bar larger?

I can do this, but that just makes the area bigger, it does not make the ribbon bar higher, the buttons bigger: int currentW, currentH; mywxRibbonBar->GetSize(&currentW, &currentH); currentH = currentH + currentH; mywxRibbonBar->SetSize(wxDefaultCoord, wxDefaultCoord, currentW, currentH, 0);
by wxBen
Wed Jul 13, 2022 1:19 am
Forum: General Development
Topic: How do I make the ribbon bar larger?
Replies: 6
Views: 4917

How do I make the ribbon bar larger?

Our native non wxWidgets C++ application uses the wxRibbonBar widget to show a ribbon bar at the top of its window. Works great! Our application also allows users to magnify views. So to that purpose, I would like to be able to tell the ribbon bar to the bigger than normal (as if using a higher DPI)...
by wxBen
Tue Jan 28, 2020 6:37 pm
Forum: C++ Development
Topic: Cutting down on ribbon bar bitmaps
Replies: 7
Views: 1476

Re: Cutting down on ribbon bar bitmaps

I have implemented an enhancement around this, please see here https://trac.wxwidgets.org/ticket/18657
by wxBen
Tue Jan 28, 2020 2:31 pm
Forum: C++ Development
Topic: Handling image alpha layers in wxImageList
Replies: 1
Views: 590

Re: Handling image alpha layers in wxImageList

Hmm, setting the mask flag to false in the wxImageList::Create calls, seems to fix this! Yai!
by wxBen
Tue Jan 28, 2020 2:25 pm
Forum: C++ Development
Topic: Handling image alpha layers in wxImageList
Replies: 1
Views: 590

Handling image alpha layers in wxImageList

I have been experimenting with using wxImageList in buttonbar.cpp, and it drastically reduces the number of GDI handles. NICE. However, there is one problem, wxImageList::Add checks to see if the bitmap has an alpha (mine do, they are 32 bpp with a transparency layer), it converts it to a wxImage, i...
by wxBen
Tue Jan 28, 2020 2:22 pm
Forum: C++ Development
Topic: Cutting down on ribbon bar bitmaps
Replies: 7
Views: 1476

Re: Cutting down on ribbon bar bitmaps

Thank you for all the help. I have also posed the information below as a new item https://forums.wxwidgets.org/viewtopic.php?f=1&t=46785 since it is really a separate question. --------- I have been experimenting with using wxImageList in buttonbar.cpp, and it drastically reduces the number of G...