re ListCtrl

"Michael Pilecki" <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <000501c35c90$6f039e60$f81f30cb@MPPDEVEL>
Hi,

I am trying to use the ListCtrl with report View But I am having trouble
working out how to use the ListItem correctly. I've looked at the wxWindows
Documentation and I am trying to do the following.

lstctrl = new ListCtrl(this,ID_LSTCTRL,new Point(15,125),new
Size(560,300),ListCtrl.wxLC_REPORT  );
lstctrl.InsertColumn(0,"Column1",ListCtrl.wxLIST_FORMAT_CENTER ,100);
lstctrl.InsertColumn(1,"Column2",ListCtrl.wxLIST_FORMAT_CENTER ,110);
lstctrl.InsertColumn(2,"Column3",ListCtrl.wxLIST_FORMAT_CENTER ,250);

lstItem = new ListItem();
lstItem.Id = 0;
lstItem.Text = "Fred";
lstctrl.InsertItem(lstItem);


Are there any examples for the ListCtrl or could anyone point me in the
right direction as to how to use this correctly

Thanks

Michael



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.