Any clue why does it not work under xp?
Any was to set different row hights in listview?
Ctrl numpad +- to change fontsize
alt numpat +- to change row hight
Code: Select all
fontSize:=8
RowHight:=20
ChangeFont := RegisterCallback("ChangeFont")
Gui +hwndGUIhwnd
Gui, Font, S8
Gui, Add, ListView, w325 r20 -Wrap, File|Size
LV_ModifyCol( 1, "200" ), LV_ModifyCol( 2, "100 Integer" )
LV_SetImageList( DllCall( "ImageList_Create", Int,2, Int,30, Int,0x18, Int,1, Int,1 ), 1 )
Loop %A_WinDir%\*.*
LV_Add( "", A_LoopFileName . " aaaaaaaaa aaaaaa aaaaaaa aaaaaa aaaaaaa aaaaaaa" . A_Index , A_LoopFileSize )
;~ LV_Add( "", A_LoopFileName, A_LoopFileSize )
Gui, Show,, Row Height for ListView
ChangeFont(GUIhwnd, l) {
GuiControl Font, %GUIhwnd%
return true
}
^NumpadAdd::
fontSize += 2
Gui Font, s%fontSize%
DllCall("EnumChildWindows", "Ptr", GUIhwnd, "Ptr", ChangeFont)
return
^NumpadSub::
if(fontSize<7)
return
fontSize -= 2
Gui Font, s%fontSize%
DllCall("EnumChildWindows", "Ptr", GUIhwnd, "Ptr", ChangeFont)
return
!NumpadAdd::
RowHight:= RowHight+10
LV_SetImageList( DllCall( "ImageList_Create", Int,2, Int, RowHight , Int,0x18, Int,1, Int,1 ), 1 )
return
!NumpadSub::
RowHight:= RowHight-10
LV_SetImageList( DllCall( "ImageList_Create", Int,2, Int, RowHight , Int,0x18, Int,1, Int,1 ), 1 )
return
GuiClose:
GuiEscape:
Exitapp