X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aec18ff785687e1d0830da8cd287903128a994c6..33ac313082104acc337cae4c52a2772527c76dac:/samples/widgets/textctrl.cpp?ds=sidebyside diff --git a/samples/widgets/textctrl.cpp b/samples/widgets/textctrl.cpp index a32a3e51c2..9fc4ead7eb 100644 --- a/samples/widgets/textctrl.cpp +++ b/samples/widgets/textctrl.cpp @@ -41,7 +41,6 @@ #include "widgets.h" -#if 1 #include "icons/text.xpm" // ---------------------------------------------------------------------------- @@ -555,8 +554,10 @@ void TextWidgetsPage::CreateText() valueOld, wxDefaultPosition, wxDefaultSize, flags); + + // cast to int needed to silence gcc warning about different enums m_sizerText->Add(m_text, 1, wxALL | - (flags & wxTE_MULTILINE ? wxGROW + (flags & wxTE_MULTILINE ? (int)wxGROW : wxALIGN_TOP), 5); m_sizerText->Layout(); } @@ -700,7 +701,8 @@ void TextWidgetsPage::OnButtonLoad(wxCommandEvent& WXUNUSED(event)) { long elapsed = sw.Time(); wxLogMessage(_T("Loaded file '%s' in %lu.%us"), - filename.c_str(), elapsed / 1000, elapsed % 1000); + filename.c_str(), elapsed / 1000, + (unsigned int) elapsed % 1000); } } } @@ -756,4 +758,4 @@ void TextWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& event) { CreateText(); } -#endif +