OverviewExamples
Tree.SetProperties ( |
Sets the properties of a tree object.
(string) The name of the tree object.
(table) A table containing the tree object's properties indexed by the following keys:
KEY |
TYPE |
DESCRIPTION | |||||||||||||||||||||||||||||||||||||||||||||
ShowCheckBoxes |
boolean |
True if checkboxes should be shown, false if they should not be. | |||||||||||||||||||||||||||||||||||||||||||||
HasLines |
boolean |
True if the tree object should display lines, false if it should not. | |||||||||||||||||||||||||||||||||||||||||||||
LinesAtRoot |
boolean |
True if the tree object should display lines at the root level, false if it should not. | |||||||||||||||||||||||||||||||||||||||||||||
HasButtons |
boolean |
True if the tree object should have expand/collapse buttons, false if it should not. | |||||||||||||||||||||||||||||||||||||||||||||
EditLabels |
boolean |
True if the user should be able to edit the item labels, false if they should not be. | |||||||||||||||||||||||||||||||||||||||||||||
AlwaysShowSelection |
boolean |
True if the current item should remain selected when the tree object looses focus, false if it should not. | |||||||||||||||||||||||||||||||||||||||||||||
FontName |
string |
The name of the font to be used in the tree object. | |||||||||||||||||||||||||||||||||||||||||||||
FontSize |
number |
The font size to be displayed in the tree object. | |||||||||||||||||||||||||||||||||||||||||||||
FontStrikeout |
boolean |
True if the current font should be set to strikeout, false if it should not be. | |||||||||||||||||||||||||||||||||||||||||||||
FontUnderline |
boolean |
True if the current font should be set to underline, false if it should not be. | |||||||||||||||||||||||||||||||||||||||||||||
FontItalic |
boolean |
True if the current font should be set to italic, false if it should not be. | |||||||||||||||||||||||||||||||||||||||||||||
FontAntiAlias |
boolean |
True if the current font should be set to anti alias, false if it should not be. | |||||||||||||||||||||||||||||||||||||||||||||
FontWeight |
number |
The weight of the font (how 'dark' the text should appear):
| |||||||||||||||||||||||||||||||||||||||||||||
FontScript |
number |
The character set to be used by the paragraph object:
| |||||||||||||||||||||||||||||||||||||||||||||
BackgroundColor |
number |
The background color to use. | |||||||||||||||||||||||||||||||||||||||||||||
TextColor |
number |
The text color to use. | |||||||||||||||||||||||||||||||||||||||||||||
BorderMode |
number |
The border mode to use for the tree object. Choose from:
| |||||||||||||||||||||||||||||||||||||||||||||
UseImageList |
boolean |
True if the tree object should use an image list, false if it should not. | |||||||||||||||||||||||||||||||||||||||||||||
ImageList |
string |
The path to a bitmap file (24bit max) containing 16x16 icons to be used as icons for items in the tree list. | |||||||||||||||||||||||||||||||||||||||||||||
ImageListTransColor |
number |
The decimal value of the color that should be transparent in the image list. This color will be used to represent transparency in the image. | |||||||||||||||||||||||||||||||||||||||||||||
ReadOrder |
number |
How text should be displayed in the tree object:
| |||||||||||||||||||||||||||||||||||||||||||||
Enabled |
boolean |
True if the tree object should be enabled, false if it should not be. | |||||||||||||||||||||||||||||||||||||||||||||
Visible |
boolean |
True if the tree object should be visible, false if it should not be. | |||||||||||||||||||||||||||||||||||||||||||||
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. | |||||||||||||||||||||||||||||||||||||||||||||
ResizeLeft |
boolean |
True if the left side of the object should move when the application is resized, false if it should not. | |||||||||||||||||||||||||||||||||||||||||||||
ResizeRight |
boolean |
True if the right side of the object should move when the application is resized, false if it should not. | |||||||||||||||||||||||||||||||||||||||||||||
ResizeTop |
boolean |
True if the top of the object should move when the application is resized, false if it should not. | |||||||||||||||||||||||||||||||||||||||||||||
ResizeBottom |
boolean |
True if the bottom of the object should move when the application is resized, false if it should not. | |||||||||||||||||||||||||||||||||||||||||||||
TooltipText |
string |
The mouseover tooltip of the tree object. Tip: If you want a "&" character in the text, you must enter "&&&". |
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
See also: Related Actions