OverviewExamples
table Tree.GetProperties ( |
Returns a table containing the properties of a tree object.
(string) The name of the tree object.
(table) A table containing the tree's properties, indexed by the following keys:
KEY |
TYPE |
DESCRIPTION | |||||||||||||||||||||||||||||||||||||||||||||
ObjectName |
string |
The name of the tree object. | |||||||||||||||||||||||||||||||||||||||||||||
ShowCheckBoxes |
boolean |
True if checkboxes will be shown, false if they will not be. | |||||||||||||||||||||||||||||||||||||||||||||
HasLines |
boolean |
True if the tree object will display lines, false if it will not. | |||||||||||||||||||||||||||||||||||||||||||||
LinesAtRoot |
boolean |
True if the tree object will display lines at the root level, false if it will not. | |||||||||||||||||||||||||||||||||||||||||||||
HasButtons |
boolean |
True if the tree object will have expand/collapse buttons, false if it will not. | |||||||||||||||||||||||||||||||||||||||||||||
EditLabels |
boolean |
True if the user can edit the item labels, false if they can't. | |||||||||||||||||||||||||||||||||||||||||||||
AlwaysShowSelection |
boolean |
True if the current item will remain selected when the tree object looses focus, false if it will not. | |||||||||||||||||||||||||||||||||||||||||||||
FontName |
string |
The name of the font currently in use in the tree object. | |||||||||||||||||||||||||||||||||||||||||||||
FontSize |
number |
The font size currently displayed in the tree object. | |||||||||||||||||||||||||||||||||||||||||||||
FontStrikeout |
boolean |
True if the current font is set to strikeout, false if it is not. | |||||||||||||||||||||||||||||||||||||||||||||
FontUnderline |
boolean |
True if the current font is set to underline, false if it is not. | |||||||||||||||||||||||||||||||||||||||||||||
FontItalic |
boolean |
True if the current font is set to italic, false if it is not. | |||||||||||||||||||||||||||||||||||||||||||||
FontAntiAlias |
boolean |
True if the current font is set to anti alias, false if it is not. | |||||||||||||||||||||||||||||||||||||||||||||
FontWeight |
number |
The weight of the font (how 'dark' the text will appear):
| |||||||||||||||||||||||||||||||||||||||||||||
FontScript |
number |
The character set in use by the paragraph object:
| |||||||||||||||||||||||||||||||||||||||||||||
BackgroundColor |
number |
The currently displayed background color. | |||||||||||||||||||||||||||||||||||||||||||||
TextColor |
number |
The currently displayed text color. | |||||||||||||||||||||||||||||||||||||||||||||
BorderMode |
number |
The border mode in use by the tree object. Choose from:
| |||||||||||||||||||||||||||||||||||||||||||||
UseImageList |
boolean |
True if the tree object uses an image list, false if it does not. | |||||||||||||||||||||||||||||||||||||||||||||
ImageList |
string |
The path to a bitmap file (24bit max) containing 16x16 icons being used as icons for items in the tree list. | |||||||||||||||||||||||||||||||||||||||||||||
ImageListTransColor |
number |
The decimal value of the color that is transparent in the image list. This color is used to represent transparency in the image. | |||||||||||||||||||||||||||||||||||||||||||||
ReadOrder |
number |
How text will be displayed in the tree object:
| |||||||||||||||||||||||||||||||||||||||||||||
Enabled |
boolean |
True if the tree object is enabled, false if it is not. | |||||||||||||||||||||||||||||||||||||||||||||
Visible |
boolean |
True if the tree object is visible, false if it is not. | |||||||||||||||||||||||||||||||||||||||||||||
X |
number |
The horizontal position (in pixels) of the top left corner of the tree object in relation to the current page or dialog. Note: The top left corner of the current page or dialog has an X value of 0 | |||||||||||||||||||||||||||||||||||||||||||||
Y |
number |
The vertical position (in pixels) of the top left corner of the tree object in relation to the current page or dialog. Note: The top left corner of the current page or dialog has a Y value of 0 | |||||||||||||||||||||||||||||||||||||||||||||
Width |
number |
The width (in pixels) of the tree object. | |||||||||||||||||||||||||||||||||||||||||||||
Height |
number |
The height (in pixels) of the tree object. | |||||||||||||||||||||||||||||||||||||||||||||
TooltipText |
string |
The mouseover tooltip of the tree object. | |||||||||||||||||||||||||||||||||||||||||||||
ResizeLeft |
boolean |
True if the left side of the object will move when the application is resized, false if it is not. | |||||||||||||||||||||||||||||||||||||||||||||
ResizeRight |
boolean |
True if the right side of the object will move when the application is resized, false if it is not. | |||||||||||||||||||||||||||||||||||||||||||||
ResizeTop |
boolean |
True if the top of the object will move when the application is resized, false if it is not. | |||||||||||||||||||||||||||||||||||||||||||||
ResizeBottom |
boolean |
True if the bottom of the object will move when the application is resized, false if it is not. | |||||||||||||||||||||||||||||||||||||||||||||
WindowHandle |
number |
The integer value that represents the object's window. (Commonly referred to as an hWnd.) |
If the object cannot be found, nil will be returned. You can use Application.GetLastError to determine whether this action failed, and why.
When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.
See also: Related Actions