StaticBox 2.9.3.1 and SetDoubleBuffered

Chasing my EraseBackground issue I tried to use SetDoubleBuffered but I find that it causes an issue that sibling controls of StaticBox are no longer shown.

This can be seen by adding at line 10 of the demo the following.

         self.SetDoubleBuffered(True)

Werner

I assume you mean 2.9 running on Windows. If so then that's not too surprising given how static boxes work with siblings and how Windows does the double buffering. 2.9 is supposed to better support having the items be children of the static box now so you may want to try that instead, however in that case you will want to use a normal BoxSizer assigned to the static box to manage the layout of the children instead of using a StaticBoxSizer.

···

On 3/28/12 8:07 AM, werner wrote:

Chasing my EraseBackground issue I tried to use SetDoubleBuffered but I
find that it causes an issue that sibling controls of StaticBox are no
longer shown.

This can be seen by adding at line 10 of the demo the following.

self.SetDoubleBuffered(True)

--
Robin Dunn
Software Craftsman