Array_Gui - Show your array as an interactive TreeView

Post your working scripts, libraries and tools
GeekDude
Posts: 853
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
guest3456
Posts: 2773
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: 1368
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win7 x64 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: 853
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: 1487
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 7 Ultimate | Editor: Notepad++
My Personal Function Library | Check Out My Computer Rig
GeekDude
Posts: 853
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: 4031
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: No registered users and 59 guests