Compilation and warnings fixes for wxUSE_HELP=0
This commit is contained in:
parent
f28bdb9a92
commit
6aff1c8c64
@ -3887,6 +3887,7 @@ wxAccStatus wxWindowAccessible::GetDescription(int WXUNUSED(childId), wxString*
|
|||||||
{
|
{
|
||||||
wxCHECK( GetWindow() != NULL, wxACC_FAIL );
|
wxCHECK( GetWindow() != NULL, wxACC_FAIL );
|
||||||
|
|
||||||
|
(void)description;
|
||||||
#if wxUSE_HELP
|
#if wxUSE_HELP
|
||||||
wxString ht(GetWindow()->GetHelpTextAtPoint(wxDefaultPosition, wxHelpEvent::Origin_Keyboard));
|
wxString ht(GetWindow()->GetHelpTextAtPoint(wxDefaultPosition, wxHelpEvent::Origin_Keyboard));
|
||||||
if (!ht.empty())
|
if (!ht.empty())
|
||||||
@ -3904,6 +3905,7 @@ wxAccStatus wxWindowAccessible::GetHelpText(int WXUNUSED(childId), wxString* hel
|
|||||||
{
|
{
|
||||||
wxCHECK( GetWindow() != NULL, wxACC_FAIL );
|
wxCHECK( GetWindow() != NULL, wxACC_FAIL );
|
||||||
|
|
||||||
|
(void)helpText;
|
||||||
#if wxUSE_HELP
|
#if wxUSE_HELP
|
||||||
wxString ht(GetWindow()->GetHelpTextAtPoint(wxDefaultPosition, wxHelpEvent::Origin_Keyboard));
|
wxString ht(GetWindow()->GetHelpTextAtPoint(wxDefaultPosition, wxHelpEvent::Origin_Keyboard));
|
||||||
if (!ht.empty())
|
if (!ht.empty())
|
||||||
|
@ -6093,6 +6093,7 @@ wxAccStatus wxDataViewCtrlAccessible::GetHelpText(int childId, wxString* helpTex
|
|||||||
wxDataViewCtrl* dvCtrl = wxDynamicCast(GetWindow(), wxDataViewCtrl);
|
wxDataViewCtrl* dvCtrl = wxDynamicCast(GetWindow(), wxDataViewCtrl);
|
||||||
wxCHECK( dvCtrl, wxACC_FAIL );
|
wxCHECK( dvCtrl, wxACC_FAIL );
|
||||||
|
|
||||||
|
#if wxUSE_HELP
|
||||||
if ( childId == wxACC_SELF )
|
if ( childId == wxACC_SELF )
|
||||||
{
|
{
|
||||||
*helpText = dvCtrl->GetHelpText();
|
*helpText = dvCtrl->GetHelpText();
|
||||||
@ -6112,6 +6113,11 @@ wxAccStatus wxDataViewCtrlAccessible::GetHelpText(int childId, wxString* helpTex
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return wxACC_OK;
|
return wxACC_OK;
|
||||||
|
#else
|
||||||
|
(void)childId;
|
||||||
|
(void)helpText;
|
||||||
|
return wxACC_NOT_IMPLEMENTED;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the keyboard shortcut for this object or child.
|
// Returns the keyboard shortcut for this object or child.
|
||||||
|
Loading…
Reference in New Issue
Block a user