Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Don Cullen on September 16, 2005, 01:11 AM

Title: [VB6] Listview Alternative
Post by: Don Cullen on September 16, 2005, 01:11 AM
I'm coding a channel list that contains names, game/flag icons, and ping icons. When I performed a search, I came up with Listview, and I immediately started messing around with that. I found out that for one, the listview wasn't formatted (the columns) the way I'd prefer they would be, for two, there wasn't a way to disable the horizional scrollbar AFAICS.

So I'm wondering if there's any alternatives to Listview?

[Edited to avoid double posting]

P.S. Thanks in advance for any input given. :)
Title: Re: [VB6] Listview Alternative
Post by: MyndFyre on September 16, 2005, 03:22 AM
Custom draw a listbox.

Custom draw your own control period.

I mean, yes, there are plenty of alternatives.
Title: Re: [VB6] Listview Alternative
Post by: rabbit on September 16, 2005, 11:48 PM
Quote from: Kyro on September 16, 2005, 01:11 AM
I'm coding a channel list that contains names, game/flag icons, and ping icons. When I performed a search, I came up with Listview, and I immediately started messing around with that. I found out that for one, the listview wasn't formatted (the columns) the way I'd prefer they would be, for two, there wasn't a way to disable the horizional scrollbar AFAICS.

So I'm wondering if there's any alternatives to Listview?

[Edited to avoid double posting]

P.S. Thanks in advance for any input given. :)
You can change the width to elminiate th horizontal bar.
You can change the formatting style (you probably want lvwReport style).
Title: Re: [VB6] Listview Alternative
Post by: Don Cullen on September 17, 2005, 12:08 AM
Change the width, how? And its already lvwreport style.
Title: Re: [VB6] Listview Alternative
Post by: Topaz on September 17, 2005, 12:49 AM
Stretch it?
Title: Re: [VB6] Listview Alternative
Post by: Don Cullen on September 17, 2005, 01:27 AM
No- i meant automatically... how do i control the width of each column at run time?
Title: Re: [VB6] Listview Alternative
Post by: Topaz on September 17, 2005, 01:32 AM
I don't think i\you can.
Title: Re: [VB6] Listview Alternative
Post by: Tazo on September 17, 2005, 08:33 AM
off the top of my head

listview1.columnheaders(1).Width = listview1.width - listview1.columnheaders(2).width - 100


this works if say 1 is users and 2 is ping. (I have my ping width set to 475, and this bit of code works for me)
HTH.
Title: Re: [VB6] Listview Alternative
Post by: LordNevar on September 17, 2005, 09:14 AM
Just right click on it, click properties, and the Column Header Tab, and set it up from there. You can make as many columns as you want for as big as you want the listview, I use mine for icon and ping, that's about it, and it works just fine.
Title: Re: [VB6] Listview Alternative
Post by: Topaz on September 17, 2005, 10:56 PM
"Runtime"