• Welcome to Valhalla Legends Archive.
 

[VB6] Listview Alternative

Started by Don Cullen, September 16, 2005, 01:11 AM

Previous topic - Next topic

Don Cullen

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. :)
Regards,
Don
-------

Don't wonder why people suddenly are hostile when you treat them the way they shouldn't be- it's called 'Mutual Respect'.

MyndFyre

Custom draw a listbox.

Custom draw your own control period.

I mean, yes, there are plenty of alternatives.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

rabbit

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).
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

Don Cullen

Change the width, how? And its already lvwreport style.
Regards,
Don
-------

Don't wonder why people suddenly are hostile when you treat them the way they shouldn't be- it's called 'Mutual Respect'.


Don Cullen

No- i meant automatically... how do i control the width of each column at run time?
Regards,
Don
-------

Don't wonder why people suddenly are hostile when you treat them the way they shouldn't be- it's called 'Mutual Respect'.

Topaz


Tazo

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.

LordNevar

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.

A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
The greatest trick the Devil ever pulled, was convincing the world he didn't exsist.