I have a c++ wxwidgets project, and I am trying to add icons to a wxbitmapcombobox, I…
Jump to turn (6)
- 1I have a c++ wxwidgets project, and I am trying to add icons to a wxbitmapcombob
- 2I tried your suggestions and also double-checked the file existence, and nothing
- 3nothing changed, still the same problem. what else can I do?
- 4Here is my full code, help me fix this error. I already tested this code without
- 5in the code I shown you before, the set method is called before to the AddSystem
- 6I tried your suggestion and you were right, my original bitmap size were 24, and
- User
I have a c++ wxwidgets project, and I am trying to add icons to a wxbitmapcombobox, I added the elements and tested them and it works fine, but when I try to add a bitmap to an element it the bitmapcombobox clear and doesn't show anything, not even the elements previously added. What is happening? how can I fix it or add bitmaps correctly?
wxBitmap icon = ("res/systems/Colecovision.png", wxBITMAP_TYPE_PNG); bcomboBoxSystem->Append("Item 1"); bcomboBoxSystem->SetItemBitmap(0, icon);
- Assistant