The attached screenshot demonstrates a problem I’ve been having getting my frame to refresh following a change in the
height of my wxExpandoTextCtrl. The inspectiontool has led me to believe that the solution lies with the frames [Refresh]
method: calling obj.Refresh(), where obj = Frame, immediately repaints the screen. Unfortunately no matter where I put
such calls in my program, I get no response. The only other way I can trigger an update that removes these artifacts is
by manually resizing the frame
The expando sends an EVT_ETC_LAYOUT_NEEDED event when the size of its content changes. It is expected that if anything up the containment hierarchy should should redo its layout at that time then it will catch the event and call Layout. It looks like in this case that would be a good time to do the Refresh too.
···
On 12/14/12 10:06 AM, Paul wrote:
Hi all,
The attached screenshot demonstrates a problem I've been having getting
my frame to refresh following a change in the
height of my wxExpandoTextCtrl. The inspectiontool has led me to believe
that the solution lies with the frames [Refresh]
method: calling obj.Refresh(), where obj = Frame, immediately repaints
the screen. Unfortunately no matter where I put
such calls in my program, I get no response. The only other way I can
trigger an update that removes these artifacts is
by manually resizing the frame