c++ – How to fire wxWidgets custom event outside of wxFrame


I would like to fire a wxWidgets custom event from outside of wxFrame or wxApp.
How do I do this?

Background
I have a wxGauge (progress bar) that I want to update from my Model (which is not part of the wxApp or wxFrame). The progress bar is updated via custom event.

In my code I have:
#include <wx/wx.h>
#include <wx/event.h>

Here’s what I have tried:
ProcessWindowEvent — not a part of the global namespace.
ProcessEvent — not found
GetEventHandler()->QueueEvent — “GetEventHandler” identifier not found

I’d like to fire custom event from my Model, that is not descended from wxFrame or wxApp.

Leave a Reply

Your email address will not be published. Required fields are marked *