[SOLVED] Custom selected color in ListView

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: [SOLVED] Custom selected color in ListView

Re: [SOLVED] Custom selected color in ListView

Post by tmplinshi » 04 Oct 2013, 05:23

Luckily, I copied 2 lines from your Class_TransparentListBox, now the text color changes too :D

[spoiler]

Code: [Select all] [Expand]GeSHi © Codebox Plus


[/spoiler]

Re: Custom selected color in ListView

Post by tmplinshi » 04 Oct 2013, 04:16

Thanks a lot, just me! Works like a charm! :mrgreen:

Re: Custom selected color in ListView

Post by just me » 04 Oct 2013, 03:38

Of course, it can be done:

Code: [Select all] [Expand]GeSHi © Codebox Plus



Edit: Changed script!

Re: Ownerdraw listview?

Post by tmplinshi » 04 Oct 2013, 01:18

Thanks Zaelia. But we will see a default selected color first (for about 0.1 seconds). For example:

Code: [Select all] [Expand]GeSHi © Codebox Plus

Re: Ownerdraw listview?

Post by Zelio » 03 Oct 2013, 16:48

There are ton of example on the old forum, libraries to use are for example LVX, LVA, RAGRID. Do some search with words "autohotkey colored listview". But maybe better to wait an expert, maybe someone updated an old library this years.

sample from Poly :
http://www.autohotkey.com/board/topic/2 ... -controls/
http://www.autohotkey.net/~Titan/dl/LVX.zip

You will have to play with event when row are selected or not, control leaved or not, ...

[SOLVED] Custom selected color in ListView

Post by tmplinshi » 03 Oct 2013, 11:54

A few days ago I found an AutoIt script, which create a Ownerdraw listview, it looks like:
Image
This is what I was looking for all the time. It has a custom highlight (selected) color! How to do it in ahk? The AutoIt code:

[Spoiler]

Code: [Select all] [Expand]GeSHi © Codebox Plus

[/Spoiler]

Top