[wxPython-users] Scrollbar help with DynamicSashWindow

Robin Dunn robin at alldunn.com
Fri Mar 23 11:09:18 PDT 2007


Danny Shevitz wrote:

> In my test code, there were some glimmers of hope that,  for instance, 
> GetEffectiveMinSize does what I want.
> When I edited my root node to a really long string, it did give me 
> something larger than the explicit size of
> the TreeCtrl, but on subsequent edits (making the label even longer). 
> GetEffectiveMinSize never seems to
> change again.


Most controls will cache the best size after calculating it, so it 
doesn't have to do the calculation again unless something changes, like 
adding a new item.  You can force it to forget this cached best size by 
calling InvalidateBestSize()


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list