]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/toolbooktest.cpp
Return raw text, not markup, from wxWebViewWebKit::GetSelectedText().
[wxWidgets.git] / tests / controls / toolbooktest.cpp
index 858440556c18da85e3a2c53adda3318824796746..58b8f535bab194314e574b2283de2824b5634a86 100644 (file)
@@ -36,10 +36,12 @@ private:
     virtual wxBookCtrlBase *GetBase() const { return m_toolbook; }
 
     virtual wxEventType GetChangedEvent() const
-    { return wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED; }
+    { return wxEVT_TOOLBOOK_PAGE_CHANGED; }
 
     virtual wxEventType GetChangingEvent() const
-    { return wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING; }
+    { return wxEVT_TOOLBOOK_PAGE_CHANGING; }
+
+    virtual void Realize() { m_toolbook->GetToolBar()->Realize(); }
 
     CPPUNIT_TEST_SUITE( ToolbookTestCase );
         wxBOOK_CTRL_BASE_TESTS();
@@ -56,7 +58,7 @@ private:
 // register in the unnamed registry so that these tests are run by default
 CPPUNIT_TEST_SUITE_REGISTRATION( ToolbookTestCase );
 
-// also include in it's own registry so that these tests can be run alone
+// also include in its own registry so that these tests can be run alone
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ToolbookTestCase, "ToolbookTestCase" );
 
 void ToolbookTestCase::setUp()