ExpandoTextCtrl & EVT_LAYOUT_NEEDED
Larry Bates
larry.bates at websafe.com
Tue Sep 25 16:13:09 PDT 2007
Robin Dunn wrote:
> Larry Bates wrote:
>> I'm having problems getting this working correctly. When
>> ExpandoTextCtrl increases its vertical height (as it should) it is not
>> resizing/reloacting the two listctrls that are below it. I've tried
>>
>> def OnRefit(self, evt):
>> self.Fit()
>>
>>
>> def OnRefit(self, evt):
>> self.Fit()
>> self.Layout()
>>
>> def OnRefit(self, evt):
>> self.Layout()
>> self.Fit()
>
> What is self? What is the relationship of self to the ExpandoTextCtrl?
> What is the structure of the sizers? (A small runnable sample would
> have answered all these questions and more...)
>
>>
>> What is odd is that if I just grab the lower right corner of the
>> window and resize it even a little, everything works like a charm.
>
> This is a sure sign that a Layout will take care of the problem, but the
> how and the where will depend on the answers to the above questions
> (and/or a runnable sample.)
>
Sorry, I'm running Python version of wxWindows so that code is "runnable".
self is Python's way of referencing this (I think that is how C does it).
The answer seems to be to add a:
self.Refresh() at the end and it looks GREAT!
-Larry
More information about the wxpython-users
mailing list