Function Reference |
Creates an item-reference that can be used in Control[Sys]TreeView.
(As such, this function adds no functionality to your code. But it does add clarity and ease of coding, which makes your code easier to debug/maintain/extend. ie. It saves you having to remember how to format an item-reference in AutoIt!)
#include <r_SysTreeView.au3> |
TextOrNumber |
A string or a number to represent a particular item in the TreeView at this particular level.
each following TextOrNumber specifies an item in the next level down. Up to 6 TextOrNumbers can be supplied. (ie. You can deal with 6 levels of a TreeView) |
Returns a string formatted to meet AutoIt's Control[Sys]TreeView "item" parameter.
Forgetting to supply any parameters is safe - it provides an item reference that points at the first item in the root of your treeview.
Here is a fictional tree similar to Explorer's FolderOptions...
File Options
----> Display the contents
----> Display the full path
----> Hidden files
----> ----> Show them
----> ----> Hide them
Folder Options
----> Each folder in a separate window
To refer to the item that shows the full path of files, you could use code like...
TreeViewItem( "File Options", "Display the full path" )
To refer to the item that shows hidden files, you could use code like...
TreeViewItem( "File Options", "Hidden files", 0 )
As AutoIt is a 32-bit application some commands are not available when referencing a 64-bit application as Explorer when running on 64-bit Windows.
ControlTreeView, ControlSysTreeView
; Author: RAC |