Sign in to follow this  
Followers 0
crystalburner

Listview

7 posts in this topic

Okey Hi!

So, I'm creating a list and populating it with items

for $i = 1 to $countlines2

ProgressSet( (100 / $countlines2 * $i),$i & " invoices added")

$line=filereadline($getfiles,$i)

$line=StringTrimRight ( $line, 4)

_GUICtrlListAddItem($invoicelist, $line)

Next

Thats fine.

It is only possible to select one item at a time in the list, happens to be invoices, you can open,print or delete them thats ok.

What I need to be able to do is differentiate some of them from others. I have some code that works out which invoices are older than 30 days but what I want to do is have them show in red or bold font in the guilist and I can not find any function that allows you to modify the appearance of some of the list items.

Has anyone done something similar already?

C

Share this post


Link to post
Share on other sites



So.... Can you clarify if you are using ListView or List? GUI function call is for "List" not listview. (Just a clarification question)


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Okey Hi!

So, I'm creating a list and populating it with items

for $i = 1 to $countlines2

ProgressSet( (100 / $countlines2 * $i),$i & " invoices added")

$line=filereadline($getfiles,$i)

$line=StringTrimRight ( $line, 4)

_GUICtrlListAddItem($invoicelist, $line)

Next

Thats fine.

It is only possible to select one item at a time in the list, happens to be invoices, you can open,print or delete them thats ok.

What I need to be able to do is differentiate some of them from others. I have some code that works out which invoices are older than 30 days but what I want to do is have them show in red or bold font in the guilist and I can not find any function that allows you to modify the appearance of some of the list items.

Has anyone done something similar already?

C

If you were using a ListView instead of a Listbox you could color them and with-out having to use the UDFs


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

If you were using a ListView instead of a Listbox you could color them and with-out having to use the UDFs

$invoicelist=GUICtrlCreateList("",0,0,600,350)

Im using this to create the list

Dont mind using any method as long as it works!

Share this post


Link to post
Share on other sites

$invoicelist=GUICtrlCreateList("",0,0,600,350)

Im using this to create the list

Dont mind using any method as long as it works!

Like I said Use the ListView, you can set backcolor and textcolor for each item in the listview.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Like I said Use the ListView, you can set backcolor and textcolor for each item in the listview.

What is listview?

I need the list in a GUI as there are menus and buttons for actions regarding items in the list.

N

Share this post


Link to post
Share on other sites

What is listview?

I need the list in a GUI as there are menus and buttons for actions regarding items in the list.

N

Look in the help


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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