compilation fix for !wxUSE_BUTTON
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -456,6 +456,7 @@ void wxDialogBase::SetEscapeId(int escapeId)
|
|||||||
|
|
||||||
bool wxDialogBase::EmulateButtonClickIfPresent(int id)
|
bool wxDialogBase::EmulateButtonClickIfPresent(int id)
|
||||||
{
|
{
|
||||||
|
#if wxUSE_BUTTON
|
||||||
wxButton *btn = wxDynamicCast(FindWindow(id), wxButton);
|
wxButton *btn = wxDynamicCast(FindWindow(id), wxButton);
|
||||||
|
|
||||||
if ( !btn || !btn->IsEnabled() || !btn->IsShown() )
|
if ( !btn || !btn->IsEnabled() || !btn->IsShown() )
|
||||||
@@ -466,6 +467,10 @@ bool wxDialogBase::EmulateButtonClickIfPresent(int id)
|
|||||||
btn->GetEventHandler()->ProcessEvent(event);
|
btn->GetEventHandler()->ProcessEvent(event);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
#else // !wxUSE_BUTTON
|
||||||
|
wxUnusedVar(id);
|
||||||
|
return false;
|
||||||
|
#endif // wxUSE_BUTTON/!wxUSE_BUTTON
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxDialogBase::IsEscapeKey(const wxKeyEvent& event)
|
bool wxDialogBase::IsEscapeKey(const wxKeyEvent& event)
|
||||||
|
Reference in New Issue
Block a user