I have a gui with multiple treeview.
I am having problems with TV_getselect(). I read somewhere in the forum that if there are more than one treeview in the gui and a selection is made in the first treeview, Tv_getselect() returns 0.
Is this true and is there a way around it ?
Many thanks in advance.
Get help with using AutoHotkey and its commands and hotkeys
4 posts • Page 1 of 1
Built-in Functions for TreeViews wrote:All of the TreeView functions operate upon the current thread's default GUI window (which can be changed via Gui, 2:Default). If the default window does not exist or has no TreeView controls, all functions return zero to indicate the problem.
If the window has more than one TreeView control, by default the functions operate upon the one most recently added. To change this, specify Gui, TreeView, TreeViewName, where TreeViewName is the name of the TreeView's associated variable, its ClassNN as shown by Window Spy or [in v1.1.04+] its HWND. Once changed, all existing and future threads will use the indicated TreeView. [v1.1.23+]: A_DefaultTreeView contains the current setting.
How do you specify the treeview when using TV_getselect() ?
Sorry .. I get it .. I have to use the line before using the built in functions
Who is online
Users browsing this forum: No registered users and 150 guests