TreeListCtrl repaint problem inside Panel

Windows 2000.
WxPython 2.5 for Python 2.3

I do have the statement
self.sizer.Add(tree)
immediately after tree creation but the control is still painted
incorrectly.

Thanks a lot. Eugene

Robin Dunn wrote:

···

Eugene Borodkin wrote:
> WxPython users,
>
> Need some help here. I have a TreeListControl (with column headers)
> placed inside a wxPanel.
>
> No matter how I size it and lay it out, the header(s) get obscured or
> partially lost. Then when I scroll the list, the headers occasionally
> reappear but in the wrong place.

Platform and version?

>
>
> Here is a snippet of my code:
> -------
> class myPanel(wxPanel):
>
> def __init__(self,parent):
> wxPanel.__init__(self,parent,-1)
>
> self.sizer = wxBoxSizer(wxVERTICAL)
> self.SetSizer(self.sizer)
>
> tree = gizmos.TreeListCtrl(self, -1, size=(250,300), style =
> wx.TR_DEFAULT_STYLE)
>
> self.Layout()

Any reason why you don't add the tree to the sizer?

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

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org