Python version=2.7.5 final 0
wxPython version=2.9.5.0 msw (classic)
wxDesigner version=2.14
I have a Horizontal StaticBoxSizer which contains different type widgets.
One of them is another StaticBoxSizer (but Vertical) which also contains
different type widgets. None of the TextCtrl widgets in the inner nested
Vertical StaticBoxSizer show their borders until the frame is resized, the
focus changes to each of the TextCtrl widgets, or the frame gets redrawn due
to switching back from overlapping windows (only the portion of the text
control(s) border that was covered by the overlapping window gets redrawn.
TextCtrl widgets contained in the outer Horizontal StaticBoxSizer, but
before or after the inner Vertical StaticBoxSizer, appear normal. Only the
TextCtrl widgets contained in the inner Vertical StaticBoxSizer are
affected. If EITHER outer OR inner StaticBoxSizer is changed to a simple
BoxSizer, the text controls are correct.
Is there a way to programmatically force the whole frame to get redrawn? I
tried Refresh(), Update(), and other things that did not work. Putting a
value into the TextCtrl (.SetLabel) will show the value but still not the
border.
I have a simple program which shows this issue. It has the Widget Inspection
Tool on the Admin menu. The population of the menubar and the frame's
widgets is code generated by wxDesigner 2.14.
simple.py
<http://wxpython-users.1045709.n5.nabble.com/file/n5718907/simple.py>
···
-----
Done is better than perfect -
but it is not done if it is not right.
--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/TextCtrl-in-nested-StaticBoxSizer-does-not-show-control-until-redrawn-tp5718907.html
Sent from the wxPython-users mailing list archive at Nabble.com.