[ wxwindows-Patches-1652077 ] make wxEvtHandler::AddPendingEvent
virtual
SourceForge.net
noreply at sourceforge.net
Sun Feb 4 17:26:23 PST 2007
Patches item #1652077, was opened at 2007-02-05 02:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1652077&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Common
Group: new feature
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: yaro (yaro_23)
Assigned to: Nobody/Anonymous (nobody)
Summary: make wxEvtHandler::AddPendingEvent virtual
Initial Comment:
would like to request making
wxEvtHandler::AddPendingEvent a virtual method.
If it is made virtual, then it makes custom event handlers derived from wxEvtHandler more flexible. For example you can have AddPendingEvent that doesn't add the event handler to the global list of all wx event handlers. This is useful for event processing in a thread where we want events to be processed from the context of the thread not from the main thread.
I have written a "CommandThread" class that can process wx events from the context of the thread, it works with connect or macros. But since AddPendingEvent isn't virtual, ::wxPostEvent doesn't behave in the way we would like as it calls wxEvtHandler::AddPendingEvent and not my custom AddPendingEvent.
Patch is in the attachment
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1652077&group_id=9863
More information about the wx-dev
mailing list