#12704: Some flickering in wxStyledTextCtrl with syntax highlighting in wxGTK.
--------------------------+-------------------------------------------------
Reporter: ruslanch | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxStyledText | Version: 2.9-svn
Keywords: flickering | Blockedby:
Patch: 1 | Blocking:
--------------------------+-------------------------------------------------
I have some flickering in wxStyledTextCtrl with syntax highlighting in
wxGTK. To avoid this problem is enough to use wxBufferedPaintDC in
wxPaintEvent handler:
{{{
void wxStyledTextCtrl::OnPaint(wxPaintEvent& WXUNUSED(evt)) {
#ifdef __WXGTK__
wxBufferedPaintDC dc(this);
#else
wxPaintDC dc(this);
#endif
m_swx->DoPaint(&dc, GetUpdateRegion().GetBox());
}
}}}
--
Ticket URL: <http://trac.wxwidgets.org/ticket/12704>
#12704: Some flickering in wxStyledTextCtrl with syntax highlighting in wxGTK.
--------------------------+-------------------------------------------------
Reporter: ruslanch | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.9.2
Component: wxStyledText | Version: 2.9-svn
Keywords: flickering | Blockedby:
Patch: 1 | Blocking:
--------------------------+-------------------------------------------------
Changes (by ruslanch):
* milestone: => 2.9.2
--
Ticket URL: <http://trac.wxwidgets.org/ticket/12704#comment:1>
#12704: Some flickering in wxStyledTextCtrl with syntax highlighting in wxGTK.
--------------------------+-------------------------------------------------
Reporter: ruslanch | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxStyledText | Version: 2.9-svn
Keywords: flickering | Blockedby:
Patch: 1 | Blocking:
--------------------------+-------------------------------------------------
Changes (by vadz):
* milestone: 2.9.2 =>
Comment:
Very strange, GTK+ 2.0 is supposed to perform its own double buffering (as
most of the other modern systems, i.e. OS X and Windows since Vista). Does
anybody know if STC do something to deactivate GTK+ double buffering by
chance?
--
Ticket URL: <http://trac.wxwidgets.org/ticket/12704#comment:2>
#12704: Some flickering in wxStyledTextCtrl with syntax highlighting in wxGTK.
--------------------------+-------------------------------------------------
Reporter: ruslanch | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxStyledText | Version: 2.9-svn
Keywords: flickering | Blockedby:
Patch: 1 | Blocking:
--------------------------+-------------------------------------------------
Comment(by robind):
Replying to [comment:2 vadz]:
> Does anybody know if STC do something to deactivate GTK+ double
buffering by chance?
It doesn't. wxSTC is all fairly generic wx code at the bottom level.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/12704#comment:3>
#12704: Some flickering in wxStyledTextCtrl with syntax highlighting in wxGTK.
--------------------------+-------------------------------------------------
Reporter: ruslanch | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxStyledText | Version: 2.9-svn
Keywords: flickering | Blockedby:
Patch: 1 | Blocking:
--------------------------+-------------------------------------------------
Comment(by ruslanch):
I have not dug far, but if you comment out:
{{{
style | = wxVSCROLL | wxHSCROLL;
}}}
in wxStyledTextCtrl::Create, the problem disappears. But will not work
scrollbars.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/12704#comment:4>