Page 1 of 1

Array_Gui - Show your array as an interactive TreeView

Posted: 28 Jul 2017, 09:43
by GeekDude
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

Re: Array_Gui - Show your array as an interactive TreeView

Posted: 28 Jul 2017, 15:06
by Delta Pythagorean
I'll say that this is really useful! :D

Re: Array_Gui - Show your array as an interactive TreeView

Posted: 29 Jul 2017, 08:55
by guest3456
nice, i think HotKeyIt has a version too

Re: Array_Gui - Show your array as an interactive TreeView

Posted: 29 Jul 2017, 10:29
by Nextron
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

Re: Array_Gui - Show your array as an interactive TreeView

Posted: 29 Jul 2017, 10:35
by GeekDude
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

Re: Array_Gui - Show your array as an interactive TreeView

Posted: 29 Jul 2017, 16:33
by Masonjar13
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.

Re: Array_Gui - Show your array as an interactive TreeView

Posted: 29 Jul 2017, 16:43
by GeekDude
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:

Re: Array_Gui - Show your array as an interactive TreeView

Posted: 02 Aug 2017, 09:09
by Helgef
@ 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.