added wxWindow::Freeze/Thaw(), implemented them for wxGTK::wxTextCtrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-07-26 08:33:53 +00:00
parent d6ddcd574b
commit 0cc7251efe
6 changed files with 69 additions and 0 deletions

View File

@@ -1290,3 +1290,19 @@ wxSize wxTextCtrl::DoGetBestSize() const
wxSize ret( wxControl::DoGetBestSize() );
return wxSize(80, ret.y);
}
void wxTextCtrl::Freeze()
{
if ( HasFlag(wxTE_MULTILINE) )
{
gtk_text_freeze(GTK_TEXT(m_text));
}
}
void wxTextCtrl::Thaw()
{
if ( HasFlag(wxTE_MULTILINE) )
{
gtk_text_thaw(GTK_TEXT(m_text));
}
}