Added EVT_GRID_EDITOR_CREATED and wxGridEditorCreatedEvent so the user
code can get access to the edit control when it is created, (to push on a custom event handler for example.) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -62,6 +62,7 @@ class SimpleGrid(wxGrid):
|
||||
|
||||
EVT_GRID_EDITOR_SHOWN(self, self.OnEditorShown)
|
||||
EVT_GRID_EDITOR_HIDDEN(self, self.OnEditorHidden)
|
||||
EVT_GRID_EDITOR_CREATED(self, self.OnEditorCreated)
|
||||
|
||||
|
||||
def OnCellLeftClick(self, evt):
|
||||
@@ -169,6 +170,11 @@ class SimpleGrid(wxGrid):
|
||||
(evt.GetRow(), evt.GetCol(), evt.GetPosition()))
|
||||
evt.Skip()
|
||||
|
||||
def OnEditorCreated(self, evt):
|
||||
self.log.write("OnEditorCreated: (%d, %d) %s\n" %
|
||||
(evt.GetRow(), evt.GetCol(), evt.GetControl()))
|
||||
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user