Sign in to follow this  
Followers 0
JohnBailey

Listview Color a specific Column and Row Item

11 posts in this topic

This is sort of like being able to color a "cell" in the listview. How do I do that. I can find out how to color a row in a listview, but I cant' even find how to color a column let alone a "cell."


A decision is a powerful thing

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

I think this can be done only with ownerdrawn listview. Search "ownerdraw" on forum for more info.

EDIT:

But there are example AU3 scripts for posibility to setup icon for any column in listview (not only for first one)

Edited by Zedna

Share this post


Link to post
Share on other sites

I'll search through the forums for that and post my findings here. thanks!


A decision is a powerful thing

Share this post


Link to post
Share on other sites

I cannot find anything (no example scripts) of ownerdraw in forums.

I don't really understand what you meant by

But there are example AU3 scripts for posibility to setup icon for any column in listview (not only for first one)


A decision is a powerful thing

Share this post


Link to post
Share on other sites

I cannot find anything (no example scripts) of ownerdraw in forums.

I don't really understand what you meant by

ownerdraw is complicated, so instead of coloring some column item you could only set icon for that column item

Share this post


Link to post
Share on other sites

I'm testing the AL3ListView class - using _ListView_SetItemImage() - but I'm getting "Error - _Mem_CtrlInit: Invalid window handle [0x00000000A]"

Or is that not what you're talking about either.

btw, do you have any ideas on where I could start researching ownerdraw? I can only imagine that it's way beyond me, but I'd like to push myself to my limits and see what happens.


A decision is a powerful thing

Share this post


Link to post
Share on other sites

I'm testing the AL3ListView class - using _ListView_SetItemImage() - but I'm getting "Error - _Mem_CtrlInit: Invalid window handle [0x00000000A]"

Or is that not what you're talking about either.

btw, do you have any ideas on where I could start researching ownerdraw? I can only imagine that it's way beyond me, but I'd like to push myself to my limits and see what happens.

Look here

Share this post


Link to post
Share on other sites

Look here

I found the example in the Help File. Wow, that is complicated. I want to learn it though. It seems to be very powerful in general. Furthermore, what I'm working on right now, actually seems to require this ownerdrawn method. It's going to take some time to figure it out for LVs, but I think in doing so I'll learn about the general Ownerdrawn method.


A decision is a powerful thing

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Is it possible to get the "ctrl" of a single column item? If so, then this all could actually be pretty easy with the example file! :)

Edited by JohnBailey

A decision is a powerful thing

Share this post


Link to post
Share on other sites

Is it possible to get the "ctrl" of a single column item? If so, then this all could actually be pretty easy with the example file! <_<

bump


A decision is a powerful thing

Share this post


Link to post
Share on other sites

No, it's not a separate control as far as I know. The main listview, the listview's header, and the listview's rows are separate controls, but not the individual cells (or columns within a row).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0