Page 1 of 1

What is the 2.8 equivalent of wxBG_STYLE_PAINT?

Posted: Fri Jul 31, 2015 11:35 am
by Tapsa
I want to use buffered flicker free DC.
Documentation advises me to call this, but wxBG_STYLE_PAINT is not in wxWidgets source codes.

Code: Select all

wxWindow::SetBackgroundStyle(wxBG_STYLE_PAINT);
Without calling that, the flicker is obvious and the background of my wxPanel is never cleared.
I show graphics in small part of my whole window.

EDIT: Looks like I absolutely need to update to 3.

Re: What is the 2.8 equivalent of wxBG_STYLE_PAINT?

Posted: Fri Jul 31, 2015 12:28 pm
by doublemax
Catch the wxEraseEvent for that window and do nothing in the event handler.

Re: What is the 2.8 equivalent of wxBG_STYLE_PAINT?

Posted: Fri Jul 31, 2015 6:48 pm
by Tapsa
Thanks, it worked on my wxPanel.
I hope that this is not just some temporary luck.