Define wxPG toolbar event handler only if library is compiled with toolbar classes.
Include wxPropertyGridManager::OnToolbarClick() code only if wxUSE_TOOLBAR is set to 1. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -656,7 +656,9 @@ protected:
|
|||||||
|
|
||||||
void OnPaint( wxPaintEvent &event );
|
void OnPaint( wxPaintEvent &event );
|
||||||
|
|
||||||
|
#if wxUSE_TOOLBAR
|
||||||
void OnToolbarClick( wxCommandEvent &event );
|
void OnToolbarClick( wxCommandEvent &event );
|
||||||
|
#endif
|
||||||
void OnResize( wxSizeEvent& event );
|
void OnResize( wxSizeEvent& event );
|
||||||
void OnPropertyGridSelect( wxPropertyGridEvent& event );
|
void OnPropertyGridSelect( wxPropertyGridEvent& event );
|
||||||
void OnPGColDrag( wxPropertyGridEvent& event );
|
void OnPGColDrag( wxPropertyGridEvent& event );
|
||||||
|
@@ -1719,6 +1719,7 @@ bool wxPropertyGridManager::EnsureVisible( wxPGPropArg id )
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
#if wxUSE_TOOLBAR
|
||||||
void wxPropertyGridManager::OnToolbarClick( wxCommandEvent &event )
|
void wxPropertyGridManager::OnToolbarClick( wxCommandEvent &event )
|
||||||
{
|
{
|
||||||
int id = event.GetId();
|
int id = event.GetId();
|
||||||
@@ -1788,6 +1789,7 @@ void wxPropertyGridManager::OnToolbarClick( wxCommandEvent &event )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user