AutoHotkey Community

It is currently May 26th, 2012, 1:14 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: November 21st, 2008, 5:36 am 
Offline

Joined: November 28th, 2007, 9:54 am
Posts: 69
I see it possible to retrieve all icons againsts all rows in a Listview but would it possible to retrieve just 1 icon against 1 row selection or against a checkbox to enhance the look that is the row that is selected and the other rows dont have any icons?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2008, 9:16 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Yes.
Code:
Gui, Add, ListView, grid r20 AltSubmit gLV, Name|Size (KB)
ID := IL_Create(1)
LV_SetImageList(ID)
IL_Add(ID,"shell32.dll",44)
Loop, %A_ScriptDir%\*.*
 LV_Add("Icon",A_LoopFileName,A_LoopFileSizeKB)
LV_ModifyCol()

Gui, Show
return
GuiClose:
ExitApp

LV:
If (A_GuiEvent == "I")
{
 If InStr(ErrorLevel,"s",1)
  LV_Modify(A_EventInfo,"Icon0")
 If InStr(ErrorLevel,"S",1)
  LV_Modify(A_EventInfo,"Icon1")
}
return


P.S. It would have been simpler to edit your original question than to double post.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2008, 8:21 pm 
Offline

Joined: November 28th, 2007, 9:54 am
Posts: 69
great thanks i test it out when i get chance!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2008, 8:23 pm 
Offline

Joined: November 28th, 2007, 9:54 am
Posts: 69
that is not a double post that is something completly different! i need to disable a checkbox in that post. how is that the same as listing 1 icon????

i dont understand how you think there the same question being into code.

i thought the title of the 2 gave it away.

1. how do i disable a checkbox?

2. how do i list 1 icon?

thanks for helping me with the 2. though!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Amandaville, Bing [Bot], Klark92, patgenn123, poserpro, Yahoo [Bot] and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group