Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: AoH-Silence on October 11, 2004, 10:35 PM

Title: B.net Icons - The How To (Help!)
Post by: AoH-Silence on October 11, 2004, 10:35 PM
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.

Title: Re: B.net Icons - The How To (Help!)
Post by: AoH-Silence on October 11, 2004, 10:52 PM
Also (sorry for double post) I have tried a method thx to a friend and here are the results:

(http://img35.exs.cx/img35/3031/bneticon1.png)

Then once Debug is pressed:

(http://img35.exs.cx/img35/333/bneticon2.png)

Thx again everyone for taking the time to look at this and help a fellow programmer  :)
Title: Re: B.net Icons - The How To (Help!)
Post by: Grok on October 11, 2004, 11:03 PM
Your ImageList control does not have any icons in it.
Title: Re: B.net Icons - The How To (Help!)
Post by: AoH-Silence on October 11, 2004, 11:29 PM
ohh but it does, do I put anything in the Tag and Key fields?
Title: Re: B.net Icons - The How To (Help!)
Post by: Stealth on October 11, 2004, 11:45 PM
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.
Title: Re: B.net Icons - The How To (Help!)
Post by: Grok on October 12, 2004, 09:54 AM
As Stealth said,

ListView1.Icons = ImageList1
or
ListView1.SmallIcons = ImageList1
Title: Re: B.net Icons - The How To (Help!)
Post by: MyndFyre on October 12, 2004, 09:24 PM
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!!!
Title: Re: B.net Icons - The How To (Help!)
Post by: 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!
Title: Re: B.net Icons - The How To (Help!)
Post by: LivedKrad on October 17, 2004, 12:32 PM
And then, once you've readded all of the icons, will you not again have the some problem of initializing your imagelist object?
Title: Re: B.net Icons - The How To (Help!)
Post by: Hdx on October 24, 2004, 06:05 AM
(http://deadly7.uni.cc/HdxBmx27/icons.JPG)
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 (http://www.deadly7.uni.cc/HdxBmx27/Icons/)
Have fun.
~-~(HDX)~-~
Title: Re: B.net Icons - The How To (Help!)
Post by: Grok on October 24, 2004, 10:44 AM
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).