| View previous topic :: View next topic |
| Author |
Message |
L-Cartinine
Joined: 28 Nov 2007 Posts: 69
|
Posted: Fri Nov 21, 2008 4:36 am Post subject: Is it possible to just list 1 icon in the listview ? |
|
|
| 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? |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Fri Nov 21, 2008 8:16 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
L-Cartinine
Joined: 28 Nov 2007 Posts: 69
|
Posted: Tue Nov 25, 2008 7:21 pm Post subject: |
|
|
| great thanks i test it out when i get chance! |
|
| Back to top |
|
 |
L-Cartinine
Joined: 28 Nov 2007 Posts: 69
|
Posted: Tue Nov 25, 2008 7:23 pm Post subject: |
|
|
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! |
|
| Back to top |
|
 |
|