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:
@@ -143,6 +143,11 @@ public:
|
||||
|
||||
void SetModified() { m_modified = TRUE; }
|
||||
|
||||
// GTK+ textctrl is so dumb that you need to freeze/thaw it manually to
|
||||
// avoid horrible flicker/scrolling back and forth
|
||||
virtual void Freeze();
|
||||
virtual void Thaw();
|
||||
|
||||
// wxGTK-specific: called recursively by Enable,
|
||||
// to give widgets an oppprtunity to correct their colours after they
|
||||
// have been changed by Enable
|
||||
|
@@ -143,6 +143,11 @@ public:
|
||||
|
||||
void SetModified() { m_modified = TRUE; }
|
||||
|
||||
// GTK+ textctrl is so dumb that you need to freeze/thaw it manually to
|
||||
// avoid horrible flicker/scrolling back and forth
|
||||
virtual void Freeze();
|
||||
virtual void Thaw();
|
||||
|
||||
// wxGTK-specific: called recursively by Enable,
|
||||
// to give widgets an oppprtunity to correct their colours after they
|
||||
// have been changed by Enable
|
||||
|
@@ -519,6 +519,12 @@ public:
|
||||
// clear the window entirely
|
||||
virtual void Clear() = 0;
|
||||
|
||||
// freeze the window: don't redraw it until it is thawed
|
||||
virtual void Freeze() { }
|
||||
|
||||
// thaw the window: redraw it after it had been frozen
|
||||
virtual void Thaw() { }
|
||||
|
||||
// adjust DC for drawing on this window
|
||||
virtual void PrepareDC( wxDC & WXUNUSED(dc) ) { }
|
||||
|
||||
|
Reference in New Issue
Block a user