Set the ID and the event object in the events

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-05-18 02:33:37 +00:00
parent 7343610edc
commit 7c2c2e0742

View File

@ -759,9 +759,10 @@ class CaptionBar(wx.Window):
if send_event: if send_event:
event = CaptionBarEvent(wxEVT_CAPTIONBAR) event = CaptionBarEvent(wxEVT_CAPTIONBAR)
event.SetId(self.GetId())
event.SetEventObject(self)
event.SetBar(self) event.SetBar(self)
self.GetEventHandler().ProcessEvent(event) self.GetEventHandler().ProcessEvent(event)
event.Skip()
def OnChar(self, event): def OnChar(self, event):