Array_Gui - Show your array as an interactive TreeView

Post your working scripts, libraries and tools
GeekDude
Posts: 879
Joined: 02 Oct 2013, 22:13

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: 566
Joined: 13 Feb 2017, 13:44
GitHub: DelPyth
Location: Somewhere in the US

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].......: 1.1.33.02 Unicode 64-bit
- [OS].........: Windows 10.0.18362
- [GITHUB]...: github.com/DeltaPyth
- [PAYPAL]....: paypal.me/DelPyth
- [DISCORD]..: Delta#3324

Remember to use [code]CODE[/code] for your multi-line scripts.
Stay safe, stay inside, and remember to wash your hands for 20 seconds!
guest3456
Posts: 3123
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: 1375
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
GeekDude
Posts: 879
Joined: 02 Oct 2013, 22:13

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: 1514
Joined: 20 Jul 2014, 10:16
GitHub: Masonjar13
Location: Не Россия

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
GeekDude
Posts: 879
Joined: 02 Oct 2013, 22:13

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: 4446
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”

Who is online

Users browsing this forum: gwarble and 37 guests