AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Listview rows getting blue after being updated

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Klaus



Joined: 12 May 2005
Posts: 205
Location: Münster, Germany

PostPosted: Wed May 07, 2008 12:15 pm    Post subject: Listview rows getting blue after being updated Reply with quote

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
View user's profile Send private message Send e-mail
Klaus, nli
Guest





PostPosted: Thu May 08, 2008 5:40 am    Post subject: Reply with quote

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

PostPosted: Thu May 08, 2008 6:09 am    Post subject: Reply with quote

hello Klaus,
maybe post your script
here an LV example with calculations mathe01.ahk (miniexcel IN/OUT/SALDO)
http://www.autohotkey.com/forum/viewtopic.php?p=70490#70490
Back to top
View user's profile Send private message
Klaus



Joined: 12 May 2005
Posts: 205
Location: Münster, Germany

PostPosted: Thu May 08, 2008 6:50 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
klaus, nli
Guest





PostPosted: Thu May 08, 2008 7:11 am    Post subject: Reply with quote

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

PostPosted: Thu May 08, 2008 7:15 am    Post subject: Reply with quote

arrgh, to late, yes you select rows in the loop , they'll be marked (blue)
Back to top
View user's profile Send private message
interiot



Joined: 06 Nov 2005
Posts: 66

PostPosted: Thu May 08, 2008 7:21 am    Post subject: Reply with quote

a perfect thread for the [solved] tag...
Back to top
View user's profile Send private message
HugoV



Joined: 27 May 2007
Posts: 650

PostPosted: Thu May 08, 2008 7:50 am    Post subject: Reply with quote

Also perfect example for "post code" so others can see.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group