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:
@@ -1693,6 +1693,22 @@ public:
|
||||
bool AltDown();
|
||||
};
|
||||
|
||||
|
||||
class wxGridEditorCreatedEvent : public wxCommandEvent {
|
||||
public:
|
||||
wxGridEditorCreatedEvent(int id, wxEventType type, wxObject* obj,
|
||||
int row, int col, wxControl* ctrl);
|
||||
|
||||
int GetRow();
|
||||
int GetCol();
|
||||
wxControl* GetControl();
|
||||
void SetRow(int row);
|
||||
void SetCol(int col);
|
||||
void SetControl(wxControl* ctrl);
|
||||
};
|
||||
|
||||
|
||||
|
||||
enum {
|
||||
wxEVT_GRID_CELL_LEFT_CLICK,
|
||||
wxEVT_GRID_CELL_RIGHT_CLICK,
|
||||
@@ -1709,6 +1725,7 @@ enum {
|
||||
wxEVT_GRID_SELECT_CELL,
|
||||
wxEVT_GRID_EDITOR_SHOWN,
|
||||
wxEVT_GRID_EDITOR_HIDDEN,
|
||||
wxEVT_GRID_EDITOR_CREATED,
|
||||
};
|
||||
|
||||
|
||||
@@ -1759,6 +1776,9 @@ def EVT_GRID_EDITOR_SHOWN(win, fn):
|
||||
def EVT_GRID_EDITOR_HIDDEN(win, fn):
|
||||
win.Connect(-1, -1, wxEVT_GRID_EDITOR_HIDDEN, fn)
|
||||
|
||||
def EVT_GRID_EDITOR_CREATED(win, fn):
|
||||
win.Connect(-1, -1, wxEVT_GRID_EDITOR_CREATED, fn)
|
||||
|
||||
"
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user