• Welcome to Valhalla Legends Archive.
 

B.net Icons - The How To (Help!)

Started by AoH-Silence, October 11, 2004, 10:35 PM

Previous topic - Next topic

AoH-Silence

ok I have Visual Basic 6 Enterprize Edition and I am trying to get B.net Icons to display infront of the names. I have a ListView1 and ImageList1 (named as ClientIcons) and they have the image and everything alright. But I do not know what to do from there. can anyone provide some intel? Please and Thank you. Thx for your time and effort in advance.


AoH-Silence

Also (sorry for double post) I have tried a method thx to a friend and here are the results:



Then once Debug is pressed:



Thx again everyone for taking the time to look at this and help a fellow programmer  :)

Grok

Your ImageList control does not have any icons in it.

AoH-Silence

ohh but it does, do I put anything in the Tag and Key fields?

Stealth

Quote from: Grok on October 11, 2004, 11:03 PM
Your ImageList control does not have any icons in it.

Or, the ListView's .Icons / .SmallIcons property isn't set to your image list.

Edit: Tag and Key fields are not required, but you may use them if you find it convenient.
- Stealth
Author of StealthBot

Grok

As Stealth said,

ListView1.Icons = ImageList1
or
ListView1.SmallIcons = ImageList1

MyndFyre

Egad!  Rename it from ImageList1!  How the hell are you supposed to know what ImageList1 does as opposed to ImageList2 when you have 10 Image List objects?!?  Don't document code; let your code document itself!!!
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.

AoH-Silence

ok I have decided to look at my imagelist and completly remove and add again, this will result in the lost of my icons. Does anyone know where I can find the basic icons? (starx, star, jsr, jsrx, war2, war3, etc.)I dont need ladder and normal game stat icons. thx!

LivedKrad

And then, once you've readded all of the icons, will you not again have the some problem of initializing your imagelist object?

Hdx


Right click your channel list.
Goto properties.
Vlivk the Icons tab
Set the "Small" Setting to your image list.
Hit apply.
Have fun it *should* work If not tell us so.
Also you are in need of images?
A few i've collected
Have fun.
~-~(HDX)~-~

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

Grok

Quote from: AoH-Silence on October 13, 2004, 07:42 PM
ok I have decided to look at my imagelist and completly remove and add again, this will result in the lost of my icons. Does anyone know where I can find the basic icons? (starx, star, jsr, jsrx, war2, war3, etc.)I dont need ladder and normal game stat icons. thx!

Not necessary!  Extract the individual icons from the bni at runtime, load them into the imagelist at runtime with LoadPicture(), but keep the extracted icons as default images for when bncs does not provide you an icon you had previously (this might never happen, but design for robustness).