use NavigateIn() method instead of sending wxNavigationKeyEvent directly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5644933fa6
commit
2a1cf3e9ad
@ -92,11 +92,9 @@ private:
|
|||||||
|
|
||||||
void OnIdle(wxIdleEvent& event);
|
void OnIdle(wxIdleEvent& event);
|
||||||
|
|
||||||
void DoNavigate(long flags)
|
void DoNavigate(int flags)
|
||||||
{
|
{
|
||||||
wxNavigationKeyEvent event;
|
if ( m_panel->NavigateIn(flags) )
|
||||||
event.SetFlags(flags);
|
|
||||||
if ( m_panel->ProcessEvent(event) )
|
|
||||||
wxLogStatus(this, _T("Navigation event processed"));
|
wxLogStatus(this, _T("Navigation event processed"));
|
||||||
else
|
else
|
||||||
wxLogStatus(this, _T("Navigation event ignored"));
|
wxLogStatus(this, _T("Navigation event ignored"));
|
||||||
|
Loading…
Reference in New Issue
Block a user