Search found 53 matches
- Tue Jan 28, 2020 6:37 pm
- Forum: C++ Development
- Topic: Cutting down on ribbon bar bitmaps
- Replies: 7
- Views: 660
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: 248
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: 248
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...
- Tue Jan 28, 2020 2:22 pm
- Forum: C++ Development
- Topic: Cutting down on ribbon bar bitmaps
- Replies: 7
- Views: 660
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 GDI h...
- Mon Jan 27, 2020 9:44 pm
- Forum: C++ Development
- Topic: Cutting down on ribbon bar bitmaps
- Replies: 7
- Views: 660
Re: Cutting down on ribbon bar bitmaps
It looks like the ribbon bar code does not do much with the images other than hangs onto them and draws them really. So making wxRibbonbar support wxImageList should be easy, famous last words. 

- Mon Jan 27, 2020 9:15 pm
- Forum: C++ Development
- Topic: Cutting down on ribbon bar bitmaps
- Replies: 7
- Views: 660
Re: Cutting down on ribbon bar bitmaps
We are not leaking GDI objects, I have been checking for that, trust me. It is just a bit odd that the application at startup is using nearly 2000 GDI images. Mind you, the number does not change much, and it is still far from the 10000, its just a bit surprising... But in general in very large comp...
- Mon Jan 27, 2020 6:47 pm
- Forum: C++ Development
- Topic: Cutting down on ribbon bar bitmaps
- Replies: 7
- Views: 660
Cutting down on ribbon bar bitmaps
If you look at wxRibbonButtonBar::AddButton, you will see that it uses four bitmaps, so if you have a large application, you can easily end up with task manager showing you are using 2000 GDI objects, most of which come from these bitmaps. And most of these bitmaps will never be used. Windows limits...
- Fri Sep 21, 2018 9:41 pm
- Forum: C++ Development
- Topic: Hybrid button on ribbon bar always getting cut off
- Replies: 5
- Views: 1205
Re: Hybrid button on ribbon bar always getting cut off
Thank you. Please see here: https://trac.wxwidgets.org/ticket/18226#ticket
- Fri Sep 21, 2018 7:53 pm
- Forum: C++ Development
- Topic: Hybrid button on ribbon bar always getting cut off
- Replies: 5
- Views: 1205
Re: Hybrid button on ribbon bar always getting cut off
I have been debugging it and here is what I found. In src\ribbon\buttonbar.cpp, note that method AddButton calls InsertButton which does this: m_layouts_valid = false; Good good. But in panel.cpp method wxRibbonPanel::Realize note how m_smallest_unminimised_size gets set via a call to m_art: minimum...
- Thu Sep 20, 2018 6:03 pm
- Forum: C++ Development
- Topic: Hybrid button on ribbon bar always getting cut off
- Replies: 5
- Views: 1205
Re: Hybrid button on ribbon bar always getting cut off
We have been able to reproduce it locally, so I can debug it. Our application is an enormous application, which uses some wxWidget UI components. It is not DPI aware, I am barely DPI aware. But thanks, doublemax, I shall investigate. Since I shall have to fix this, I shall debug this and post here w...
- Thu Sep 20, 2018 5:08 pm
- Forum: C++ Development
- Topic: Hybrid button on ribbon bar always getting cut off
- Replies: 5
- Views: 1205
Hybrid button on ribbon bar always getting cut off
Our application uses the wxWidgst ribbon bar, wxWidets 3.0.2.7. Some clients, and we have never seen this ourselves, experience a problem that button bar buttons of the type wxRIBBON_BUTTON_HYBRID get cut off, as shown by the attached screen. The top button should read "Re-solve" and then have a dro...
- Wed Oct 29, 2014 8:58 pm
- Forum: The Code Dump
- Topic: Icon to data URI
- Replies: 0
- Views: 2289
Icon to data URI
Suppose you are on Windows and you have an HICON and you need to generate HTML with the image embedded inside the HTML, that is, you need to convert it to something of the form: <img src="data:image/png;base64, iVBORw bla bla"/> How can you do it, especially if the icon could be anything, you need t...
- Wed Jan 02, 2013 9:47 pm
- Forum: Open Discussion
- Topic: Ribbon bar patent
- Replies: 0
- Views: 3481
Ribbon bar patent
Hi, Just curious: I realize this has come up before, but does anyone know definitively whether Microsoft patented the ribbon bar UI and whether that impacts the wxWidgets ribbon bar? There are some references that they were trying to patent it, but that you can use it unless you compete with Office,...
- Thu Dec 13, 2012 8:10 pm
- Forum: C++ Development
- Topic: constant global strings
- Replies: 16
- Views: 7185
Re: constant global strings
I have a little bit of experience with this, and here are a few thoughts, also expressed above: If you use ANSI strings (non UNICODE) and you make use of extended characters (ASCII codes above 127), then those extended ASCII characters will definitely NOT display correctly on all machines. Windows f...
- Fri Nov 30, 2012 8:51 pm
- Forum: C++ Development
- Topic: How to Clear TextCtrl on Click?
- Replies: 32
- Views: 12646
Re: How to Clear TextCtrl on Click?
You can still get Visual Studio 2003 from MSDN, if you have access to that. The regular downloads site only lists the 2008, 2010 and 2012 versions. Alternatively, you can also look into Dev C++ and CodeBlocks on sourceforge. I believe both support wxWidgets and if you Google it you can find multiple...