paint events cannot be constructed outside a native redraw in OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -331,6 +331,7 @@ void EventPropagationTestCase::ScrollWindowWithHandler()
|
|||||||
|
|
||||||
TestScrollWindow * const win = new TestScrollWindow(parent);
|
TestScrollWindow * const win = new TestScrollWindow(parent);
|
||||||
|
|
||||||
|
#ifndef __WXOSX__
|
||||||
TestPaintEvtHandler h('h');
|
TestPaintEvtHandler h('h');
|
||||||
win->PushEventHandler(&h);
|
win->PushEventHandler(&h);
|
||||||
wxON_BLOCK_EXIT_OBJ1( *win, wxWindow::PopEventHandler, false );
|
wxON_BLOCK_EXIT_OBJ1( *win, wxWindow::PopEventHandler, false );
|
||||||
@@ -338,6 +339,7 @@ void EventPropagationTestCase::ScrollWindowWithHandler()
|
|||||||
wxPaintEvent event(win->GetId());
|
wxPaintEvent event(win->GetId());
|
||||||
win->ProcessWindowEvent(event);
|
win->ProcessWindowEvent(event);
|
||||||
CPPUNIT_ASSERT_EQUAL( "ohPD", g_str );
|
CPPUNIT_ASSERT_EQUAL( "ohPD", g_str );
|
||||||
|
#endif
|
||||||
|
|
||||||
g_str.clear();
|
g_str.clear();
|
||||||
wxCommandEvent eventCmd(TEST_EVT);
|
wxCommandEvent eventCmd(TEST_EVT);
|
||||||
|
Reference in New Issue
Block a user