int CacheColour( const wxColour& colour );
// Sets up basic event handling for child control
- void SetupChildEventHandling( wxWindow* wnd, int id );
+ void SetupChildEventHandling( wxWindow* wnd );
void CustomSetCursor( int type, bool override = false );
// -----------------------------------------------------------------------
// Setups event handling for child control
-void wxPropertyGrid::SetupChildEventHandling( wxWindow* argWnd, int id )
+void wxPropertyGrid::SetupChildEventHandling( wxWindow* argWnd )
{
+ wxWindowID id = argWnd->GetId();
+
if ( argWnd == m_wndEditor )
{
this->Connect(id, wxEVT_MOTION,
#endif
wxWindow* primaryCtrl = GetEditorControl();
- SetupChildEventHandling(primaryCtrl, wxPG_SUBID1);
+ SetupChildEventHandling(primaryCtrl);
// Focus and select all (wxTextCtrl, wxComboBox etc)
if ( flags & wxPG_SEL_FOCUS )
#endif
m_wndEditor2->Show();
- SetupChildEventHandling(m_wndEditor2,wxPG_SUBID2);
+ SetupChildEventHandling(m_wndEditor2);
// If no primary editor, focus to button to allow
// it to interprete ENTER etc.