1. ListView Column Width
- Posted by Erik-Jan van Kampen <e_vankampen at hotmail.com> Feb 20, 2002
- 466 views
Hi, I am writing a small program in which a ListView shows columns with names and columns with numbers. I was trying to set the width of the columns upon creating them, but I can't figure out how to do that. Can anyone help me with this? Thanks, Erik-Jan van Kampen.
2. ListView Column Width
- Posted by Jon Snyder <jongsnyder at hotmail.com> May 26, 2002
- 463 views
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.
3. Re: ListView Column Width
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> May 26, 2002
- 457 views
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. > > > >
4. Re: ListView Column Width
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> May 28, 2002
- 457 views
You're very welcome, Judith. :) This is the kind of thing I like most about the Euphoria community: someone asks us a question, then someone else (who might just barely know what they're talking about) gives an answer, and that answer helps yet another person, whose work helps us all. Neat! Dan Moyer ----- Original Message ----- From: "Judith" <camping at txcyber.com> To: "EUforum" <EUforum at topica.com> Subject: RE: ListView Column Width > > I had not noticed in the listview examples that you could create the > ListView with the column lengths and alignment. This is much easier than > the sendMessage I put into IDE to do this. I'll make some changes for > the next release. Thanks Dan. > > With the next IDE release, probably August or September, I'll be > requiring the use of the latest Win32lib. I'll be using several new > routines recently developed; the one Derek mentions below is one of > them. > > Judith > > Derek Parnell wrote: > > > > > -----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. > > > > 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. > > 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. > > > > > > > > >