X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f8b4a3fbe730e5843de98529cc2c1b03a7910ef..ba597ca8315df299a603990df4e0f334e3f21f6a:/contrib/samples/gizmos/dynsash/dynsash.cpp?ds=inline diff --git a/contrib/samples/gizmos/dynsash/dynsash.cpp b/contrib/samples/gizmos/dynsash/dynsash.cpp index e31b11c036..8c38649dc7 100644 --- a/contrib/samples/gizmos/dynsash/dynsash.cpp +++ b/contrib/samples/gizmos/dynsash/dynsash.cpp @@ -52,12 +52,12 @@ private: IMPLEMENT_APP(Demo) wxChar *HTML_content = -wxT("
Here is an example of how you can use wxDynamicSashWindow to allow your users to " -"dynamically split and unify the views of your windows. Try dragging out a few splits " -"and then reunifying the window." -"
Also, see the dynsash_switch sample for an example of an application which " -"manages the scrollbars provided by wxDynamicSashWindow itself."); +wxT("
Here is an example of how you can use wxDynamicSashWindow to allow your users to ") +wxT("dynamically split and unify the views of your windows. Try dragging out a few splits ") +wxT("and then reunifying the window.") +wxT("
Also, see the dynsash_switch sample for an example of an application which ") +wxT("manages the scrollbars provided by wxDynamicSashWindow itself."); bool Demo::OnInit() { wxInitAllImageHandlers(); @@ -78,8 +78,9 @@ bool Demo::OnInit() { SashHtmlWindow::SashHtmlWindow(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name) : wxHtmlWindow(parent, id, pos, size, style, name) { - Connect(-1, wxEVT_DYNAMIC_SASH_SPLIT, - (wxObjectEventFunction)(wxCommandEventFunction)(wxDynamicSashSplitEventFunction) &SashHtmlWindow::OnSplit); + Connect(-1, wxEVT_DYNAMIC_SASH_SPLIT, (wxObjectEventFunction) + (wxEventFunction) + (wxDynamicSashSplitEventFunction)&SashHtmlWindow::OnSplit); m_dyn_sash = parent; } @@ -95,7 +96,7 @@ wxSize SashHtmlWindow::DoGetBestSize() const { return wxHtmlWindow::GetBestSize(); } -void SashHtmlWindow::OnSplit(wxDynamicSashSplitEvent& event) { +void SashHtmlWindow::OnSplit(wxDynamicSashSplitEvent& WXUNUSED(event)) { wxHtmlWindow *html = new SashHtmlWindow(m_dyn_sash, -1); html->SetPage(HTML_content); }