Search found 15164 matches

by doublemax
Mon Oct 26, 2020 11:39 am
Forum: C++ Development
Topic: png ImageButton, unknown data format
Replies: 4
Views: 156

Re: png ImageButton, unknown data format

Did you call wxInitAllImageHandlers?
https://docs.wxwidgets.org/trunk/group_ ... 7bd44c6823

BTW: You might be interested in wxStandardPaths to avoid hardcoded paths:
https://docs.wxwidgets.org/trunk/classw ... paths.html
by doublemax
Sat Oct 24, 2020 9:21 pm
Forum: General Development
Topic: Integration of wxWidgets with VulkanSceneGraph (vsg)
Replies: 1
Views: 71

Re: Integration of wxWidgets with VulkanSceneGraph (vsg)

Are there any wxWidgets functions related to Vulkan? Maybe a boolean to indicate if the underlying platform supports it and a function to retrieve the Vulkan surface info? No, there is nothing Vulkan related in wxWidgets. Usually the link between wxWidgets and another API that needs access to a win...
by doublemax
Sat Oct 24, 2020 12:49 pm
Forum: C++ Development
Topic: How best to hold and modify a bitmap in wxPanel
Replies: 2
Views: 93

Re: How best to hold and modify a bitmap in wxPanel

Return a pointer/reference to the wxBitmap and use wxMemoryDC to modify it.
by doublemax
Sat Oct 24, 2020 8:51 am
Forum: C++ Development
Topic: Looking for a widget that has columns.
Replies: 2
Views: 59

Re: Looking for a widget that has columns.

wxListCtrl would be my first choice. But it depends on your requirements, e.g. should every field be editable, or do you need to display bitmaps?

https://docs.wxwidgets.org/trunk/classwx_list_ctrl.html
by doublemax
Thu Oct 22, 2020 3:33 pm
Forum: Platform Related Issues
Topic: Appli works well on macOS, but not working on Windows 10
Replies: 5
Views: 183

Re: Appli works well on macOS, but not working on Windows 10

If I replace "wxClientDC dc(menu);" by "wxPaintDC dc(menu);" I obtain what I want. No, unfortunately it's not that simple. In SimpleMenu you need to add a paint event handler and perform inside all custom drawing there. https://wiki.wxwidgets.org/Painting_your_custom_control Can you post its code? ...
by doublemax
Thu Oct 22, 2020 2:07 pm
Forum: Platform Related Issues
Topic: Appli works well on macOS, but not working on Windows 10
Replies: 5
Views: 183

Re: Appli works well on macOS, but not working on Windows 10

How is it supposed to look? wxClientDC dc(menu); imagePanel->Render(dc); imagePanel->PaintNow(); Whatever this does, it's bad and probably the cause of your issues. Everything you draw onto a wxClientDC will be overdrawn by the next regular paint event. If you need custom drawing, use a paint event ...
by doublemax
Thu Oct 22, 2020 1:24 pm
Forum: Compiler / Linking / IDE Related
Topic: error mismatch between static and dynamic release
Replies: 2
Views: 66

Re: error mismatch between static and dynamic release

You're mixing two different things here. The configurations e.g. "Debug" vs "Debug DLL" only determine whether wxWidgets itself it built as static library or as DLL. The settings "Multi-threaded DLL (/MD)" vs "Multi-threaded Debug DLL (/MDd)" determine how the CRTs are linked. These are always set t...
by doublemax
Thu Oct 22, 2020 9:54 am
Forum: Platform Related Issues
Topic: Appli works well on macOS, but not working on Windows 10
Replies: 5
Views: 183

Re: Appli works well on macOS, but not working on Windows 10

Did you run the application in debug mode? If not, please do so and check if you get any assert messages. The entete class has an jpg image (the logo of the projet), some texte and one or two buttons. Where is the image loaded from? Is it in external file? If yes, how do you build the path to load i...
by doublemax
Thu Oct 22, 2020 9:36 am
Forum: C++ Development
Topic: How to use wxTimer?
Replies: 2
Views: 77

Re: How to use wxTimer?

What's the question/problem?
by doublemax
Thu Oct 22, 2020 9:01 am
Forum: Platform Related Issues
Topic: wxMediaCtrl crash on NVIDIA
Replies: 5
Views: 123

Re: wxMediaCtrl crash on NVIDIA

First of all: It's hard to imagine that the problem lies within wxWidgets. But just for my better understanding: Are there two displays connected? Or are they both active even with only one display? Then how do you switch between the two GPUs? And noticed that VLC and windows media player can't be s...
by doublemax
Thu Oct 22, 2020 8:03 am
Forum: C++ Development
Topic: wxDateTime assert
Replies: 4
Views: 127

Re: wxDateTime assert

Do you have any understanding of this?
Sorry, no idea. But it looks like there's something fundamentally wrong with un-/initializing wxWidgets itself. I've never developed a Window service, so i don't know what kind additional limitations or requirements exist there.
by doublemax
Wed Oct 21, 2020 6:33 pm
Forum: Compiler / Linking / IDE Related
Topic: Need help with using `wxMediaCtrl`.
Replies: 17
Views: 293

Re: Need help with using `wxMediaCtrl`.

I played around with your code and noticed that the default mediaplayer backend under Windows, wxMEDIABACKEND_DIRECTSHOW, does not generate the wxEVT_MEDIA_LOADED event (any more?). When using wxMEDIABACKEND_WMP10, it worked. Here are the modified files. I made a few other changes for testing purpos...
by doublemax
Wed Oct 21, 2020 6:03 am
Forum: Compiler / Linking / IDE Related
Topic: Need help with using `wxMediaCtrl`.
Replies: 17
Views: 293

Re: Need help with using `wxMediaCtrl`.

This is the line from the sample: this->Connect(wxID_MEDIACTRL, wxEVT_MEDIA_PLAY, wxMediaEventHandler(wxMediaPlayerNotebookPage::OnMediaPlay)); It catches the event at the wxFrame. Note that this works, because all events that derive from wxCommandEvent propagate upwards in the window hierarchy unti...
by doublemax
Tue Oct 20, 2020 8:53 pm
Forum: C++ Development
Topic: Processing of key messages
Replies: 1
Views: 75

Re: Processing of key messages

That doesn't sound like the problem is caused by wxWidgets. Being a GUI library wxWidgets of course receives and handles all Windows messages regarding key presses, generates wxWidgets events for them and sends them into the event queue for windows to process them (or not). If your wxWidgets control...
by doublemax
Tue Oct 20, 2020 6:57 pm
Forum: Compiler / Linking / IDE Related
Topic: Need help with using `wxMediaCtrl`.
Replies: 17
Views: 293

Re: Need help with using `wxMediaCtrl`.

I don't work under Linux myself, and i've never heard of meson files, so i can't help with this. Try to get the wxWidgets sources and build the libraries yourself. Then building the samples with the provided makefiles should be easy. https://wiki.wxwidgets.org/Compiling_and_getting_started#Prerequis...