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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user