RE: ListView Column Width
- Posted by Derek Parnell <Derek.Parnell at SYD.RABOBANK.COM> May 26, 2002
- 441 views
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C20527.A9ABB0A0 charset=iso-8859-1 > -----Original Message----- > From: Dan Moyer [mailto:DANIELMOYER at prodigy.net] > Sent: Monday, 27 May 2002 12:35 > To: EUforum > Subject: Re: ListView Column Width > > > > Jon, > > I haven't used ListView, but a look at the ListView demo > suggests that you > just put a column width in the ListView creation after the > text; I changed > the "180" after "Library" to "80", and it gave a narrower > column (don't know > what the '<' & '^' are all about, though): > > LV = create( ListView, > { {"Library",180,'<'}, {"Author",116,'^'} }, > Win, > 320, > 40, > 300, --CW_USEDEFAULT, > 300, --CW_USEDEFAULT, > or_all({LVS_REPORT, LVS_SHOWSELALWAYS})) > > Dan Moyer > > ----- Original Message ----- > From: "Jon Snyder" <jongsnyder at hotmail.com> > To: "EUforum" <EUforum at topica.com> > Sent: Sunday, May 26, 2002 10:47 AM > Subject: ListView Column Width > > > > > > When using a listview with Win32lib how can you adjust the > width of the > > columns from the program? It would be great to see an example. > > > > > > Yes you can. Either at ListView creation time (as Dan mentioned above) or via the setLVColumn routine (I think that it's name). The '<', '^', '>' indicate left, centre and right aligned text respectively. ------ Derek. ================================================================== De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. ================================================================== The information contained in this message may be confidential and is intended to be exclusively for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. ================================================================== ------_=_NextPart_000_01C20527.A9ABB0A0 Content-Type: application/ms-tnef