Array_Gui - Show your array as an interactive TreeView

Post your working scripts, libraries and tools for AHK v1.1 and older
geek
Posts: 1052
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

Array_Gui - Show your array as an interactive TreeView

28 Jul 2017, 09:43

Array_Gui

Show your array as an interactive TreeView.

Image

Example Code

Code: Select all

Array_Gui({"Apples":["Red", "Crunchy", "Lumpy"], "Oranges":["Orange", "Squishy", "Spherical"]})
Old forum thread
Download
User avatar
Delta Pythagorean
Posts: 627
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: Array_Gui - Show your array as an interactive TreeView

28 Jul 2017, 15:06

I'll say that this is really useful! :D

[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat

guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

Re: Array_Gui - Show your array as an interactive TreeView

29 Jul 2017, 08:55

nice, i think HotKeyIt has a version too

User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: Array_Gui - Show your array as an interactive TreeView

29 Jul 2017, 10:29

An overdue thanks for your script, as I use it often. :thumbup:

I once made a small but useful addition to GeekDude's script to include:
• A search box (Button or F3).
• Copy selected (Ctrl+C).
• The the ability to expand/collapse an entire sub-tree by double clicking.
• Easy access to object from Main window > View variables and their content (Ctrl+V) > Select object and press Ctrl+V again.
Image


Although lexikos' DebugVars looks pretty sweet, I haven't yet taken the time to actually start using it, as it's quite a bit more code to get familiar with.
Image
geek
Posts: 1052
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

Re: Array_Gui - Show your array as an interactive TreeView

29 Jul 2017, 10:35

I have made some changes since you added those things to reduce the complexity of the code (and stop creating bunches and bunches of variables). You might consider updating your version too. If not, I might have a go at it! :D
User avatar
Masonjar13
Posts: 1555
Joined: 20 Jul 2014, 10:16
Location: Не Россия
Contact:

Re: Array_Gui - Show your array as an interactive TreeView

29 Jul 2017, 16:33

This is a great debugging tool, for sure! Though, shouldn't it be called Obj_Gui()? ;) Personally, I would be using it most often with instantiated classes.

Proposed feature: updating the gui. Specifically, if there are subsequent calls to the function, without the gui being closed, I think it should use the same gui, but update the list.
OS: Windows 10 Pro | Editor: Notepad++
My Personal Function Library | Old Build - New Build
geek
Posts: 1052
Joined: 02 Oct 2013, 22:13
Location: GeekDude
Contact:

Re: Array_Gui - Show your array as an interactive TreeView

29 Jul 2017, 16:43

You have a point with the naming, but I named this function about 5 years ago. I guess I could rename it now but the name has worked fine so why change it :lol:
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: Array_Gui - Show your array as an interactive TreeView

02 Aug 2017, 09:09

@ GeekDude. This will be a great additional tool for debugging, thanks for sharing :thumbup:
Nextron wrote: Although lexikos' DebugVars looks pretty sweet, I haven't yet taken the time to actually start using it, as it's quite a bit more code to get familiar with.
I use that all time, I cannot recommend it enough.

Cheers.

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 252 guests