 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Klaus
Joined: 12 May 2005 Posts: 205 Location: Münster, Germany
|
Posted: Wed May 07, 2008 12:15 pm Post subject: Listview rows getting blue after being updated |
|
|
Hi, Community,
I've got (again) a question about list views.
In a listview I have got a lot of columns which all hold numeric values.
After having added these lines to the list view, I want to read a whole list view line by line, add all their numeric values from the columns no. 2 - 13 of each row and write the sum to the first column of that row(named sum). It all works fine, but after this action my whole listview is blue, which is the normal behaviour after an update to a listview's row.
How can I suppress that colouring?
Thanks in advance,
Klaus |
|
| Back to top |
|
 |
Klaus, nli Guest
|
Posted: Thu May 08, 2008 5:40 am Post subject: |
|
|
Can't believe that there are no ideas at all!
Or is my description hard to understand?
Klaus |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 1185 Location: switzerland
|
|
| Back to top |
|
 |
Klaus
Joined: 12 May 2005 Posts: 205 Location: Münster, Germany
|
Posted: Thu May 08, 2008 6:50 am Post subject: |
|
|
Hi, Garry,
because my script which (it's a cash journal application, do you say so?) is too huge to post, here's an excerpt which shows my problem. Just let it run and all rows are blue when they are updated, which is annoying especially when the listview is really big.
| Code: | Gui, Add, ListView , w100 h200 Grid, No1|No2|Sum
Gui Show
LV_Add(Col1,12,13)
LV_Add(Col1,21,22)
LV_Add(col1,23,34)
Loop, % LV_GetCount()
{
LV_GetText(col1, A_Index, 1)
LV_GetText(col2, A_Index, 2)
LV_GetText(col3, A_Index, 3)
col3 := col1 + col2
LV_Modify(A_Index,"Select", col1, col2, col3)
}
return |
Thanks for your efforts,
Klaus |
|
| Back to top |
|
 |
klaus, nli Guest
|
Posted: Thu May 08, 2008 7:11 am Post subject: |
|
|
| Found the solution by myself, just had to remove the "select" from the row options of the LV_Modify! |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 1185 Location: switzerland
|
Posted: Thu May 08, 2008 7:15 am Post subject: |
|
|
| arrgh, to late, yes you select rows in the loop , they'll be marked (blue) |
|
| Back to top |
|
 |
interiot
Joined: 06 Nov 2005 Posts: 66
|
Posted: Thu May 08, 2008 7:21 am Post subject: |
|
|
| a perfect thread for the [solved] tag... |
|
| Back to top |
|
 |
HugoV
Joined: 27 May 2007 Posts: 650
|
Posted: Thu May 08, 2008 7:50 am Post subject: |
|
|
| Also perfect example for "post code" so others can see. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|