Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Death-Merchant on October 10, 2003, 08:08 PM

Title: Simple VB question.
Post by: Death-Merchant on October 10, 2003, 08:08 PM
Is there a way to get rid of the highlight in a listview when you click on it?
Title: Re:Simple VB question.
Post by: Skywing on October 10, 2003, 08:41 PM
Quote from: Death-Merchant on October 10, 2003, 08:08 PM
Is there a way to get rid of the highlight in a listview when you click on it?
Yes.  Owner draw it and don't duplicate that behavior.
Title: Re:Simple VB question.
Post by: Adron on October 10, 2003, 08:53 PM
Quote from: Skywing on October 10, 2003, 08:41 PM
Yes.  Owner draw it and don't duplicate that behavior.

And that's an answer for a "Simple VB question"? I was thinking of owner-drawing it, but I wasn't willing to try to explain how to owner-draw a listbox in VB..
Title: Re:Simple VB question.
Post by: UserLoser on October 10, 2003, 09:06 PM
May be simple for you, Skywing, but most of the people here don't know how to create owner drawn listboxes & subclass. :P
Title: Re:Simple VB question.
Post by: Skywing on October 10, 2003, 09:42 PM
Quote from: Adron on October 10, 2003, 08:53 PM
Quote from: Skywing on October 10, 2003, 08:41 PM
Yes.  Owner draw it and don't duplicate that behavior.

And that's an answer for a "Simple VB question"? I was thinking of owner-drawing it, but I wasn't willing to try to explain how to owner-draw a listbox in VB..
It's  the only solution that I know of.  Feel free to suggest something else.
Title: Re:Simple VB question.
Post by: Adron on October 11, 2003, 11:07 AM
Maybe you could mess with the colors so clicking on it isn't visible...
Title: Re:Simple VB question.
Post by: Arta on October 11, 2003, 02:15 PM
That would be my suggestion also
Title: Re:Simple VB question.
Post by: iNsAnE-MS on October 12, 2003, 09:14 AM
Subclassing is fun for the whole family!  :o