Search found 65 matches
- Mon Apr 08, 2024 8:28 pm
- Forum: Announcements and Discoveries
- Topic: PDF Viewer
- Replies: 3
- Views: 6489
Re: PDF Viewer
I can confirm that wxPDFView works fine with wxWidgets 3.2.1 (the version I am on). Note that the readme says you need the pdfium binaries version 4012 (which is quite a few years old but they work fine) or later. I used the latest precompiled PDFium binaries v125.0.6406.0 (windows x64 v8), and in P...
- Thu Dec 01, 2022 3:16 pm
- Forum: C++ Development
- Topic: Exception in wxFontBase reference counter
- Replies: 9
- Views: 2435
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...
- Mon Nov 21, 2022 6:23 pm
- Forum: C++ Development
- Topic: Exception in wxFontBase reference counter
- Replies: 9
- Views: 2435
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.
- Mon Nov 21, 2022 6:04 pm
- Forum: C++ Development
- Topic: Exception in wxFontBase reference counter
- Replies: 9
- Views: 2435
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...
- Mon Nov 21, 2022 5:51 pm
- Forum: C++ Development
- Topic: Exception in wxFontBase reference counter
- Replies: 9
- Views: 2435
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 ...
- Mon Nov 21, 2022 5:05 pm
- Forum: C++ Development
- Topic: Exception in wxFontBase reference counter
- Replies: 9
- Views: 2435
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...
- Tue Sep 06, 2022 12:31 am
- Forum: C++ Development
- Topic: DPI handling in wxWidgets 3.2
- Replies: 5
- Views: 554
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...
- Fri Sep 02, 2022 7:57 pm
- Forum: C++ Development
- Topic: DPI handling in wxWidgets 3.2
- Replies: 5
- Views: 554
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...
- Thu Jul 14, 2022 2:31 pm
- Forum: General Development
- Topic: How do I make the ribbon bar larger?
- Replies: 6
- Views: 8759
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...
- Wed Jul 13, 2022 3:47 pm
- Forum: General Development
- Topic: How do I make the ribbon bar larger?
- Replies: 6
- Views: 8759
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.
- Wed Jul 13, 2022 1:41 am
- Forum: General Development
- Topic: How do I make the ribbon bar larger?
- Replies: 6
- Views: 8759
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(¤tW, ¤tH); currentH = currentH + currentH; mywxRibbonBar->SetSize(wxDefaultCoord, wxDefaultCoord, currentW, currentH, 0);
- Wed Jul 13, 2022 1:19 am
- Forum: General Development
- Topic: How do I make the ribbon bar larger?
- Replies: 6
- Views: 8759
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)...
- Tue Jan 28, 2020 6:37 pm
- Forum: C++ Development
- Topic: Cutting down on ribbon bar bitmaps
- Replies: 7
- Views: 1497
Re: Cutting down on ribbon bar bitmaps
I have implemented an enhancement around this, please see here https://trac.wxwidgets.org/ticket/18657
- Tue Jan 28, 2020 2:31 pm
- Forum: C++ Development
- Topic: Handling image alpha layers in wxImageList
- Replies: 1
- Views: 613
Re: Handling image alpha layers in wxImageList
Hmm, setting the mask flag to false in the wxImageList::Create calls, seems to fix this! Yai!
- Tue Jan 28, 2020 2:25 pm
- Forum: C++ Development
- Topic: Handling image alpha layers in wxImageList
- Replies: 1
- Views: 613
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...