TreeView Large Icons - Is it possible? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
sancarn
Posts: 224
Joined: 01 Mar 2016, 14:52

TreeView Large Icons - Is it possible?

01 Jun 2019, 12:41

I've been browsing around for a while now... Have a bit of an issue where I find it difficult to see the tiny icons of the treeview in my AHK app. I have no idea how to make the icons bigger though and don't even know if it is possible?

Anyone have any ideas?
iPhilip
Posts: 819
Joined: 02 Oct 2013, 12:21

Re: TreeView Large Icons - Is it possible?  Topic is solved

01 Jun 2019, 13:44

Check out the LargeIcons parameter in the IL_Create function:

Code: Select all

ImageListID := IL_Create(10, , true)  ; Create an ImageList with initial capacity for 10 icons.
Loop 10  ; Load the ImageList with some standard system icons.
    IL_Add(ImageListID, "shell32.dll", A_Index)
Gui, Add, TreeView, ImageList%ImageListID%
Loop 10
   TV_Add("Item " A_Index, 0, "Icon" A_Index)  ; Add an item to the TreeView and give it a folder icon.
Gui Show
Windows 10 Pro (64 bit) - AutoHotkey v2.0+ (Unicode 64-bit)
sancarn
Posts: 224
Joined: 01 Mar 2016, 14:52

Re: TreeView Large Icons - Is it possible?

01 Jun 2019, 13:47

Huh... I swear I tried this already, but obviously not lol.

Thanks
iPhilip
Posts: 819
Joined: 02 Oct 2013, 12:21

Re: TreeView Large Icons - Is it possible?

01 Jun 2019, 13:55

You are welcome. :)
Windows 10 Pro (64 bit) - AutoHotkey v2.0+ (Unicode 64-bit)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ishida20, jameswrightesq, Lem2001 and 404 guests