Re: List View Column Widths
- Posted by Derek Parnell <ddparnell at bigpond.com> Jun 03, 2001
- 400 views
Tony, try this... sequence colwidths integer colw colwidths = {} for colnum = 0 to 9999 do colw = sendMessage(myLV, LVM_GETCOLUMNWIDTH, colnum, 0) if colw = 0 then exit end if colwidths &= colw end for if zero is returned, it means that colnum doesn't exist. ------ Derek Parnell Melbourne, Australia "To finish a job quickly, go slower." ----- Original Message ----- From: "Tony Steward" <figjam at nlc.net.au> To: "EUforum" <EUforum at topica.com> Sent: Tuesday, January 02, 2001 9:41 AM Subject: List View Column Widths > > > Hi All, > Is it possible to get the widths of columns from a list view. > > What I wish to do is save to disk the column widths when my program closes, > so when it opens next time it will be as it was before. I want to do this > because to autosize a listview of 2000 lines is too time consuming and to do > this every time you use the program seems a waste. > > Thanks > Tony > > > >