Panel and ListCtrl

Hi all,
I have a ListCtrl into a Panel.
I would like to make the ListCtrl fitting the Panel size.

How can I do this?

Thanks a lot.

Paolo

Paolo Zaffino wrote:

I have a ListCtrl into a Panel.
I would like to make the ListCtrl fitting the Panel size.
How can I do this?

    panel = wx.Panel( self, -1 )
    vbox = wx.BoxSizer( wx.VERTICAL )
    listctrl = wx.ListCtrl( panel, -1, ... )
    vbox.Add( listctrl, 1, wx.EXPAND )
    panel.SetSizer( vbox )

The 1 makes it expand to fill the vertical space. The EXPAND makes it
expand to fill the horizontal space.

ยทยทยท

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.