Jump to content

TreeControl class: Difference between revisions

From LabVIEW Wiki
Replaced with template tables
Tag: Replaced
Updated for LabVIEW 2020. Removed template.
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
{{TOCright}}
{{TOCright}}


<!--Edit Properties, Methods, or Events in the appropriate table in one on the VI Server Templates-->
== Properties ==
{{VIServerClassTables|66}}
<span class="mw-customtoggle-propertiestable">Show/Hide TreeControl Properties Table</span>
<div class="mw-collapsible" id="mw-customcollapsible-propertiestable">
{{VIServerLegend|showrw=TRUE|showrte=TRUE}}
<div style="width: 80%; max-height: 50em; overflow: auto;">
{| class="wikitable sortable"
|+ TreeControl Properties Table
! data-sort-type="number"| Property ID
! Long Name (English)
! Description
! R/W
! RTE
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896448 |756A3C00
| [[TreeControl class/Column Header Strings() property|Column Header Strings[]]]
| An array of the strings in the column headers.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896449 |756A3C01
| [[TreeControl class/Visible Items.Vertical Scrollbar Visible property|Visible Items:Vertical Scrollbar Visible]]
| If TRUE, displays the vertical scroll bar.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896450 |756A3C02
| [[TreeControl class/Visible Items.Horizontal Scrollbar Visible property|Visible Items:Horizontal Scrollbar Visible]]
| If TRUE, displays the horizontal scroll bar.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896451 |756A3C03
| [[TreeControl class/Number of Rows property|Number of Rows]]
| Number of visible rows in the tree control, excluding column headers. This property counts partially visible rows.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896452 |756A3C04
| [[TreeControl class/Number of Columns property|Number of Columns]]
| Number of visible columns in the tree control. This property counts partially visible columns.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896453 |756A3C05
| [[TreeControl class/Visible Items.Column Headers Visible property|Visible Items:Column Headers Visible]]
| If TRUE, displays the column headers.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896454 |756A3C06
| [[TreeControl class/Autosizing Row Height property|Autosizing Row Height]]
| Determines whether the rows autosize their height to display all text when fonts change or when the number of lines in a cell changes.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896455 |756A3C07
| [[TreeControl class/Multiple Line Input property|Multiple Line Input]]
| If TRUE, you can enter multiple lines of text in the tree control cells by pressing the <Enter> key on the keyboard. If FALSE, pressing the <Enter> key on the keyboard while editing cells causes LabVIEW to commit the edits in the current cell and the text focus moves to the next cell. This property does not affect run-time behavior of the tree control.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896456 |756A3C08
| [[TreeControl class/Selection Color property|Selection Color]]
| The color used to highlight the selected items.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896457 |756A3C09
| [[TreeControl class/Top Left Visible Cell property|Top Left Visible Cell]]
| The unique tag and column of the item string displayed in the top left corner of the tree control. Use this property to read or change the top item, or use it to read or change the leftmost column of information displayed.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896458 |756A3C0A
| [[TreeControl class/Visible Items.Symbols Visible property|Visible Items:Symbols Visible]]
| If TRUE, displays the item symbols.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896459 |756A3C0B
| [[TreeControl class/Keyboard Mode property|Keyboard Mode]]
| Sets how to handle upper and lowercase characters when you type characters in a tree control at run time. Valid values include 0 (System Default), 1 (Case Sensitive), and 2 (Case Insensitive).
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896460 |756A3C0C
| [[TreeControl class/Selection Mode property|Selection Mode]]
| Number of items the user can select. Valid values include 0 (zero or one), 1 (one), 2 (zero or more), and 3 (one or more).
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896461 |756A3C0D
| [[TreeControl class/Active Item.Tag property|Active Item:Tag]]
| The tag of the item(s) to which you want to apply subsequent property changes.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896462 |756A3C0E
| [[TreeControl class/Active Item.Open? property|Active Item:Open?]]
| If TRUE, the active item(s) appears expanded to display items indented under it.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896463 |756A3C0F
| [[TreeControl class/Active Item.Disabled? property|Active Item:Disabled?]]
| If TRUE, the active item(s) appears dimmed and you cannot select the item(s).
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896464 |756A3C10
| [[TreeControl class/Active Item.Child-Only? property|Active Item:Child-Only?]]
| If TRUE, you cannot indent other items under the active item(s).
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896465 |756A3C11
| [[TreeControl class/Active Item.Indent Level property|Active Item:Indent Level]]
| The level at which the active item(s) appears in the hierarchy. Wire a value of <code>0</code> to this property to move the item to the highest level in the hierarchy.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896466 |756A3C12
| [[TreeControl class/Active Item.Symbol Index property|Active Item:Symbol Index]]
| The index of the symbol for the active item(s).
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896467 |756A3C13
| [[TreeControl class/Active Cell.Active Column Number property|Active Cell:Active Column Number]]
| Sets the column of the active cell(s).
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896468 |756A3C14
| [[TreeControl class/Active Cell.Background Color property|Active Cell:Background Color]]
| The background color of the active cell(s).
| Read/Write
| Yes
|- style="background-color:#FFAAAA;"
| data-sort-value=1969896469 |756A3C15
| [[TreeControl class/Active Cell.Foreground Color property|Active Cell:Foreground Color]]
|
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896470 |756A3C16
| [[TreeControl class/Active Cell.Cell Size property|Active Cell:Cell Size]]
| The size of the active cell(s) in pixels.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896471 |756A3C17
| [[TreeControl class/Active Cell.Cell Size.Height property|Active Cell:Cell Size:Height]]
| The height of the active cell(s) in pixels.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896472 |756A3C18
| [[TreeControl class/Active Cell.Cell Size.Width property|Active Cell:Cell Size:Width]]
| The width of the active cell(s) in pixels.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896473 |756A3C19
| [[TreeControl class/Active Cell.String property|Active Cell:String]]
| The string in the active cell(s).
| Read/Write
| Yes
|- style="background-color:#FFAAAA;"
| data-sort-value=1969896474 |756A3C1A
| [[TreeControl class/Twisty Type property|Twisty Type]]
|
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896476 |756A3C1C
| [[TreeControl class/Displayed Items property|Displayed Items]]
| Returns the unique tags of all visible items in the tree control in display order. If an item is indented under another item and the parent item is not expanded, this property does not return the tags of any items indented under that parent item.
| Read Only
| Yes
|- style="background-color:#FFAAAA;"
| data-sort-value=1969896477 |756A3C1D
| [[TreeControl class/Visible Items.Hierarchy Lines Visible Old property|Visible Items:Hierarchy Lines Visible Old]]
|
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896478 |756A3C1E
| [[TreeControl class/Allow Selection of Parent Items property|Allow Selection of Parent Items]]
| If TRUE, users can select items that have other items indented under them and items that are not child-only and do not have other items indented under them. If FALSE, users can select only items with a value of TRUE for the [[Child-Only?]] property.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896479 |756A3C1F
| [[TreeControl class/Drag/Drop.Allow Dragging of Parent Items property|Drag/Drop:Allow Dragging of Parent Items]]
| If FALSE, the user cannot drag an item in the tree control unless the item is child-only.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896480 |756A3C20
| [[TreeControl class/Drag/Drop.Allow Dropping Between Items property|Drag/Drop:Allow Dropping Between Items]]
| If FALSE, the user cannot drag an item to place it between two other items at the same hierarchical level.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896481 |756A3C21
| [[TreeControl class/Visible Items.Vertical Lines Visible property|Visible Items:Vertical Lines Visible]]
| If TRUE, displays vertical lines that separate columns in the tree control.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896482 |756A3C22
| [[TreeControl class/Visible Items.Horizontal Lines Visible property|Visible Items:Horizontal Lines Visible]]
| If TRUE, displays horizontal lines that separate rows in the tree control.
| Read/Write
| Yes
|- style="background-color:#FFAAAA;"
| data-sort-value=1969896483 |756A3C23
| [[TreeControl class/Drag/Drop.Allow Dragging (Deprecated) property|Drag/Drop:Allow Dragging (Deprecated)]]
|
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896484 |756A3C24
| [[TreeControl class/Expand/Contract Symbol.Symbol Type property|Expand/Contract Symbol:Symbol Type]]
| The type of symbol to display next to each item that has other items indented under it. Valid values include 0 (None), 1 (LabVIEW), 2 (Mac OS X), 3 (Windows), and 4 (Default).
| Read/Write
| Yes
|- style="background-color:#FFAAAA;"
| data-sort-value=1969896485 |756A3C25
| [[TreeControl class/Active Cell.Old Cell Size property|Active Cell:Old Cell Size]]
|
| Read/Write
| Yes
|- style="background-color:#FFAAAA;"
| data-sort-value=1969896486 |756A3C26
| [[TreeControl class/Active Cell.OldHeight property|Active Cell:OldHeight]]
|
| Read/Write
| Yes
|- style="background-color:#FFAAAA;"
| data-sort-value=1969896487 |756A3C27
| [[TreeControl class/Active Cell.OldWidth property|Active Cell:OldWidth]]
|
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896488 |756A3C28
| [[TreeControl class/Size property|Size]]
| The width and height in pixels of the tree control.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896489 |756A3C29
| [[TreeControl class/Size.Width property|Size:Width]]
| The width of the active cell(s) in pixels.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896490 |756A3C2A
| [[TreeControl class/Size.Height property|Size:Height]]
| The height of the active cell(s) in pixels.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896491 |756A3C2B
| [[TreeControl class/Content Rect Position property|Content Rect Position]]
| The coordinate in pixels, relative to the origin of the owning pane, of the top-left position of the content rectangle of the tree control.
| Read Only
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896492 |756A3C2C
| [[TreeControl class/Content Rect Position.Left property|Content Rect Position:Left]]
| The coordinate in pixels, relative to the origin of the owning pane, of the left edge of the content rectangle of the tree control.
| Read Only
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896493 |756A3C2D
| [[TreeControl class/Content Rect Position.Top property|Content Rect Position:Top]]
| The coordinate in pixels, relative to the origin of the owning pane, of the top edge of the content rectangle of the tree control.
| Read Only
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896494 |756A3C2E
| [[TreeControl class/Content Rect Bounds property|Content Rect Bounds]]
| The size in pixels of the content rectangle of the tree control.
| Read Only
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896495 |756A3C2F
| [[TreeControl class/Content Rect Bounds.Width property|Content Rect Bounds:Width]]
| The width in pixels of the content rectangle of the tree control.
| Read Only
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896496 |756A3C30
| [[TreeControl class/Content Rect Bounds.Height property|Content Rect Bounds:Height]]
| The height in pixels of the content rectangle of the tree control.
| Read Only
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896497 |756A3C31
| [[TreeControl class/Active Cell.Position property|Active Cell:Position]]
| The coordinate in pixels, relative to the origin of the owning pane, of the top-left position of the active cell(s).
| Read Only
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896498 |756A3C32
| [[TreeControl class/Active Cell.Position.Left property|Active Cell:Position:Left]]
| The coordinate in pixels, relative to the origin of the owning pane, of the left edge of the active cell.
| Read Only
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896499 |756A3C33
| [[TreeControl class/Active Cell.Position.Top property|Active Cell:Position:Top]]
| The coordinate in pixels, relative to the origin of the owning pane, of the top edge of the active cell.
| Read Only
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896500 |756A3C34
| [[TreeControl class/Active Cell.Cell Font property|Active Cell:Cell Font]]
| The font of the active cell in the tree control.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896501 |756A3C35
| [[TreeControl class/Active Cell.Cell Font.Name property|Active Cell:Cell Font:Name]]
| The name of the font in the active cell. Predefined font names include <code>App Font</code>, <code>Sys Font</code>, and <code>Dlg Font</code>.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896502 |756A3C36
| [[TreeControl class/Active Cell.Cell Font.Size property|Active Cell:Cell Font:Size]]
| The size of the font in the active cell.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896503 |756A3C37
| [[TreeControl class/Active Cell.Cell Font.Bold property|Active Cell:Cell Font:Bold]]
| Indicates whether the text in the active cell is bold.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896504 |756A3C38
| [[TreeControl class/Active Cell.Cell Font.Italic property|Active Cell:Cell Font:Italic]]
| Indicates whether the text in the active cell is italic.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896505 |756A3C39
| [[TreeControl class/Active Cell.Cell Font.Underline property|Active Cell:Cell Font:Underline]]
| Indicates whether the text in the active cell is underlined.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896506 |756A3C3A
| [[TreeControl class/Active Cell.Cell Font.Strikeout property|Active Cell:Cell Font:Strikeout]]
| Indicates whether to strike out the text in the active cell.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896507 |756A3C3B
| [[TreeControl class/Active Cell.Cell Font.Color property|Active Cell:Cell Font:Color]]
| The text font color in the active cell.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896508 |756A3C3C
| [[TreeControl class/Active Cell.Cell Justification property|Active Cell:Cell Justification]]
| Gets and sets the justification of text.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896509 |756A3C3D
| [[TreeControl class/Allow Editing Cells property|Allow Editing Cells]]
| If TRUE, users can edit non-header cells in this control at run time by clicking the cell text and then clicking it a second time after a short pause. If FALSE, users cannot edit non-header cells.
| Read/Write
| Yes
|- style="background-color:#FFAAAA;"
| data-sort-value=1969896510 |756A3C3E
| [[TreeControl class/Old Edit Position property|Old Edit Position]]
|
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896511 |756A3C3F
| [[TreeControl class/Visible Items.Row Headers Visible property|Visible Items:Row Headers Visible]]
| Shows the row headers.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896512 |756A3C40
| [[TreeControl class/Row Header Strings() property|Row Header Strings[]]]
| An array of the strings in the row headers.
| Read/Write
| Yes
|- style="background-color:#CCFFFF;"
| data-sort-value=1969896513 |756A3C41
| [[TreeControl class/Is Array? property|Is Array?]]
| Returns TRUE if the tree has an array data type.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896514 |756A3C42
| [[TreeControl class/Active Item.Row Number property|Active Item:Row Number]]
| The row number of the item to which you want to apply subsequent property changes. Wire a value of <code>-1</code> to this property to select the column headers. Wire a value of <code>-2</code> to select all rows.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896515 |756A3C43
| [[TreeControl class/All Tags property|All Tags]]
| The tags of all items in a tree control. This property returns the tags of both visible and hidden items in order from the top of the tree control to the bottom.
| Read Only
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896516 |756A3C44
| [[TreeControl class/Sibling Multiselect property|Sibling Multiselect]]
| If TRUE and the [[Selection Mode]] is '''0 or More Items''', users can select multiple items only if those items are siblings.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896518 |756A3C46
| [[TreeControl class/Drag/Drop.Allow Dragging property|Drag/Drop:Allow Dragging]]
| If TRUE, you can drag items from this control.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896519 |756A3C47
| [[TreeControl class/Drag/Drop.Allow Dropping property|Drag/Drop:Allow Dropping]]
| If TRUE, LabVIEW automatically accepts drops containing the <code>LV_TREE_TAG</code>, <code>LV_TEXT</code>, or <code>LV_TREE_ITEMS</code> data types. The <code>LV_TREE_TAG</code> data type is a string that represents the tag from which you drag. The <code>LV_TEXT</code> data type is of type string. The <code>LV_TREE_ITEMS</code> data type is an  array of a cluster containing an array of strings, from left to right, in the item you are dragging, an integer representing the glyph index associated with the item from which you are dragging data, and an integer representing the indent level of the item from which you are dragging.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896520 |756A3C48
| [[TreeControl class/Expand/Contract Symbol.Show Symbol at Root property|Expand/Contract Symbol:Show Symbol at Root]]
| Shows or hides the expand/contract symbols for items at indent level 0. The indent level 0 items become flush with the left side of the tree control when you hide the expand/contract symbols.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896521 |756A3C49
| [[TreeControl class/Drag/Drop.Drag Mode property|Drag/Drop:Drag Mode]]
| Sets the default behavior for a drag and drop operation for the control. The settings apply only when the control configured is the source of the drag and drop operation.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896522 |756A3C4A
| [[TreeControl class/Drag/Drop.Allow Drag and Drop Outside Control property|Drag/Drop:Allow Drag and Drop Outside Control]]
| If TRUE, this enables the control to drag items to other controls and accept drags from other controls.
| Read/Write
| Yes
|- style="background-color:#CCFFFF;"
| data-sort-value=1969896523 |756A3C4B
| [[TreeControl class/Select Entire Rows property|Select Entire Rows]]
| Highlights the entire row if you select a row in the tree.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896524 |756A3C4C
| [[TreeControl class/Edit Position property|Edit Position]]
| The row-column pair index of the current text entry. Values of (0,0) indicate the top-left text entry. A value of -1 indicates the row or column header. Values of (-2, -2) indicate that no edits are being made to the text of the control.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896525 |756A3C4D
| [[TreeControl class/Visible Items.Hierarchy Lines Visible property|Visible Items:Hierarchy Lines Visible]]
| If '''Visible''', lines to outline the hierarchy of the items are always visible as vertical and horizontal lines to the left of the items in the tree control. If '''Invisible''', the hierarchy lines are always invisible. If '''OS Default''', LabVIEW displays the hierarchy lines if trees in the operating system show hierarchy lines.
| Read/Write
| Yes
|- style="background-color:#FFFFCC;"
| data-sort-value=1969896526 |756A3C4E
| [[TreeControl class/Focus Item property|Focus Item]]
| Reads or writes an item tag to specify the tree's focus item, which is used as the basis when navigating using the arrow keys.
| Read/Write
| Yes
|}
</div></div>
 
== Methods ==
''This class has no methods or it inherits methods from its parent: [[Control class#Methods|Control Class]].''
 
== Events ==
<span class="mw-customtoggle-eventstable">Show/Hide TreeControl Events Table</span>
<div class="mw-collapsible" id="mw-customcollapsible-eventstable">
{{VIServerLegend}}
<div style="width: 80%; max-height: 50em; overflow: auto;">
{| class="wikitable sortable"
|+TreeControl Events Table
! data-sort-type="number"| Code
! Name
! Description
! Type
|- style="background-color:#FFFFCC;"
| data-sort-value=4294967295 |1073741880
| [[TreeControl class/Edit Cell event|Edit Cell]]
| Generated when the user enters new text or changes text in a cell.
| Notify
|- style="background-color:#FFFFCC;"
| data-sort-value=4294967295 |2147483703
| [[TreeControl class/Edit Cell? event|Edit Cell?]]
| Generated when the user enters new text or changes text in a cell but before the new or changed text appears.
| Filter
|- style="background-color:#FFFFCC;"
| data-sort-value=4294967295 |1073741846
| [[TreeControl class/Double Click event|Double Click]]
| Generated when a user double-clicks an item in the tree control.
| Notify
|- style="background-color:#FFFFCC;"
| data-sort-value=4294967295 |1073741855
| [[TreeControl class/Item Close event|Item Close]]
| Generated when the user closes an item in the tree control to hide any child items under the item.
| Notify
|- style="background-color:#FFFFCC;"
| data-sort-value=4294967295 |2147483665
| [[TreeControl class/Item Close? event|Item Close?]]
| Generated when the user closes an item in the tree control to hide any child items under the item but before the item closes.
| Filter
|- style="background-color:#FFFFCC;"
| data-sort-value=4294967295 |1073741854
| [[TreeControl class/Item Open event|Item Open]]
| Generated when the user expands an item in the tree control to display any child items under the item.
| Notify
|- style="background-color:#FFFFCC;"
| data-sort-value=4294967295 |2147483664
| [[TreeControl class/Item Open? event|Item Open?]]
| Generated when the user expands an item in the tree control to display any child items under the item but before the item opens.
| Filter
|}
</div></div>
 


== History ==
== History ==
{{ambox|text=History information is needed.  What changes have occurred over previous versions?}}
{| class="wikitable"
{| class="wikitable"
! Version
! Version
! Change(s)
! Change(s)
|-
|-
|[[File:LV2018.png|frameless|border|64x64px|LabVIEW 2018|link=LabVIEW 2018]]
|[[File:LV2020.png|frameless|border|64x64px|LabVIEW 2020|link=LabVIEW 2020]]
|More info to come.
| In [[LabVIEW 2020]] the [[TreeControl class/Focus Item property|Focus Item property]] was changed from [[VI Server#Private|Private]] to [[VI Server#Basic Development Environment|Basic Development Environment]].
|}
|}


Line 25: Line 551:
*[[VI Scripting]]
*[[VI Scripting]]


[[Category:VI Server]]
[[Category:VI Server Class]]
[[Category:VI Server Class]]
[[Category:VI Scripting]]

Latest revision as of 04:12, 17 June 2020

VI Server Class Information
Return to VI Server Class Hierarchy
Class Name TreeControl class
Class ID 66
Scope Basic Development Environment
Class Inheritance
Class Children

This class has no children.


The TreeControl class is a class in the VI Server Class Hierarchy, (see also VI Server).

Properties

Show/Hide TreeControl Properties Table

Legend
R/WReadable/Writable Permissions
RTEAvailable in the Run-Time Engine
Basic Development Environment
VI Scripting
Private
Deprecated
TreeControl Properties Table
Property ID Long Name (English) Description R/W RTE
756A3C00 Column Header Strings[] An array of the strings in the column headers. Read/Write Yes
756A3C01 Visible Items:Vertical Scrollbar Visible If TRUE, displays the vertical scroll bar. Read/Write Yes
756A3C02 Visible Items:Horizontal Scrollbar Visible If TRUE, displays the horizontal scroll bar. Read/Write Yes
756A3C03 Number of Rows Number of visible rows in the tree control, excluding column headers. This property counts partially visible rows. Read/Write Yes
756A3C04 Number of Columns Number of visible columns in the tree control. This property counts partially visible columns. Read/Write Yes
756A3C05 Visible Items:Column Headers Visible If TRUE, displays the column headers. Read/Write Yes
756A3C06 Autosizing Row Height Determines whether the rows autosize their height to display all text when fonts change or when the number of lines in a cell changes. Read/Write Yes
756A3C07 Multiple Line Input If TRUE, you can enter multiple lines of text in the tree control cells by pressing the <Enter> key on the keyboard. If FALSE, pressing the <Enter> key on the keyboard while editing cells causes LabVIEW to commit the edits in the current cell and the text focus moves to the next cell. This property does not affect run-time behavior of the tree control. Read/Write Yes
756A3C08 Selection Color The color used to highlight the selected items. Read/Write Yes
756A3C09 Top Left Visible Cell The unique tag and column of the item string displayed in the top left corner of the tree control. Use this property to read or change the top item, or use it to read or change the leftmost column of information displayed. Read/Write Yes
756A3C0A Visible Items:Symbols Visible If TRUE, displays the item symbols. Read/Write Yes
756A3C0B Keyboard Mode Sets how to handle upper and lowercase characters when you type characters in a tree control at run time. Valid values include 0 (System Default), 1 (Case Sensitive), and 2 (Case Insensitive). Read/Write Yes
756A3C0C Selection Mode Number of items the user can select. Valid values include 0 (zero or one), 1 (one), 2 (zero or more), and 3 (one or more). Read/Write Yes
756A3C0D Active Item:Tag The tag of the item(s) to which you want to apply subsequent property changes. Read/Write Yes
756A3C0E Active Item:Open? If TRUE, the active item(s) appears expanded to display items indented under it. Read/Write Yes
756A3C0F Active Item:Disabled? If TRUE, the active item(s) appears dimmed and you cannot select the item(s). Read/Write Yes
756A3C10 Active Item:Child-Only? If TRUE, you cannot indent other items under the active item(s). Read/Write Yes
756A3C11 Active Item:Indent Level The level at which the active item(s) appears in the hierarchy. Wire a value of 0 to this property to move the item to the highest level in the hierarchy. Read/Write Yes
756A3C12 Active Item:Symbol Index The index of the symbol for the active item(s). Read/Write Yes
756A3C13 Active Cell:Active Column Number Sets the column of the active cell(s). Read/Write Yes
756A3C14 Active Cell:Background Color The background color of the active cell(s). Read/Write Yes
756A3C15 Active Cell:Foreground Color Read/Write Yes
756A3C16 Active Cell:Cell Size The size of the active cell(s) in pixels. Read/Write Yes
756A3C17 Active Cell:Cell Size:Height The height of the active cell(s) in pixels. Read/Write Yes
756A3C18 Active Cell:Cell Size:Width The width of the active cell(s) in pixels. Read/Write Yes
756A3C19 Active Cell:String The string in the active cell(s). Read/Write Yes
756A3C1A Twisty Type Read/Write Yes
756A3C1C Displayed Items Returns the unique tags of all visible items in the tree control in display order. If an item is indented under another item and the parent item is not expanded, this property does not return the tags of any items indented under that parent item. Read Only Yes
756A3C1D Visible Items:Hierarchy Lines Visible Old Read/Write Yes
756A3C1E Allow Selection of Parent Items If TRUE, users can select items that have other items indented under them and items that are not child-only and do not have other items indented under them. If FALSE, users can select only items with a value of TRUE for the Child-Only? property. Read/Write Yes
756A3C1F Drag/Drop:Allow Dragging of Parent Items If FALSE, the user cannot drag an item in the tree control unless the item is child-only. Read/Write Yes
756A3C20 Drag/Drop:Allow Dropping Between Items If FALSE, the user cannot drag an item to place it between two other items at the same hierarchical level. Read/Write Yes
756A3C21 Visible Items:Vertical Lines Visible If TRUE, displays vertical lines that separate columns in the tree control. Read/Write Yes
756A3C22 Visible Items:Horizontal Lines Visible If TRUE, displays horizontal lines that separate rows in the tree control. Read/Write Yes
756A3C23 Drag/Drop:Allow Dragging (Deprecated) Read/Write Yes
756A3C24 Expand/Contract Symbol:Symbol Type The type of symbol to display next to each item that has other items indented under it. Valid values include 0 (None), 1 (LabVIEW), 2 (Mac OS X), 3 (Windows), and 4 (Default). Read/Write Yes
756A3C25 Active Cell:Old Cell Size Read/Write Yes
756A3C26 Active Cell:OldHeight Read/Write Yes
756A3C27 Active Cell:OldWidth Read/Write Yes
756A3C28 Size The width and height in pixels of the tree control. Read/Write Yes
756A3C29 Size:Width The width of the active cell(s) in pixels. Read/Write Yes
756A3C2A Size:Height The height of the active cell(s) in pixels. Read/Write Yes
756A3C2B Content Rect Position The coordinate in pixels, relative to the origin of the owning pane, of the top-left position of the content rectangle of the tree control. Read Only Yes
756A3C2C Content Rect Position:Left The coordinate in pixels, relative to the origin of the owning pane, of the left edge of the content rectangle of the tree control. Read Only Yes
756A3C2D Content Rect Position:Top The coordinate in pixels, relative to the origin of the owning pane, of the top edge of the content rectangle of the tree control. Read Only Yes
756A3C2E Content Rect Bounds The size in pixels of the content rectangle of the tree control. Read Only Yes
756A3C2F Content Rect Bounds:Width The width in pixels of the content rectangle of the tree control. Read Only Yes
756A3C30 Content Rect Bounds:Height The height in pixels of the content rectangle of the tree control. Read Only Yes
756A3C31 Active Cell:Position The coordinate in pixels, relative to the origin of the owning pane, of the top-left position of the active cell(s). Read Only Yes
756A3C32 Active Cell:Position:Left The coordinate in pixels, relative to the origin of the owning pane, of the left edge of the active cell. Read Only Yes
756A3C33 Active Cell:Position:Top The coordinate in pixels, relative to the origin of the owning pane, of the top edge of the active cell. Read Only Yes
756A3C34 Active Cell:Cell Font The font of the active cell in the tree control. Read/Write Yes
756A3C35 Active Cell:Cell Font:Name The name of the font in the active cell. Predefined font names include App Font, Sys Font, and Dlg Font. Read/Write Yes
756A3C36 Active Cell:Cell Font:Size The size of the font in the active cell. Read/Write Yes
756A3C37 Active Cell:Cell Font:Bold Indicates whether the text in the active cell is bold. Read/Write Yes
756A3C38 Active Cell:Cell Font:Italic Indicates whether the text in the active cell is italic. Read/Write Yes
756A3C39 Active Cell:Cell Font:Underline Indicates whether the text in the active cell is underlined. Read/Write Yes
756A3C3A Active Cell:Cell Font:Strikeout Indicates whether to strike out the text in the active cell. Read/Write Yes
756A3C3B Active Cell:Cell Font:Color The text font color in the active cell. Read/Write Yes
756A3C3C Active Cell:Cell Justification Gets and sets the justification of text. Read/Write Yes
756A3C3D Allow Editing Cells If TRUE, users can edit non-header cells in this control at run time by clicking the cell text and then clicking it a second time after a short pause. If FALSE, users cannot edit non-header cells. Read/Write Yes
756A3C3E Old Edit Position Read/Write Yes
756A3C3F Visible Items:Row Headers Visible Shows the row headers. Read/Write Yes
756A3C40 Row Header Strings[] An array of the strings in the row headers. Read/Write Yes
756A3C41 Is Array? Returns TRUE if the tree has an array data type. Read/Write Yes
756A3C42 Active Item:Row Number The row number of the item to which you want to apply subsequent property changes. Wire a value of -1 to this property to select the column headers. Wire a value of -2 to select all rows. Read/Write Yes
756A3C43 All Tags The tags of all items in a tree control. This property returns the tags of both visible and hidden items in order from the top of the tree control to the bottom. Read Only Yes
756A3C44 Sibling Multiselect If TRUE and the Selection Mode is 0 or More Items, users can select multiple items only if those items are siblings. Read/Write Yes
756A3C46 Drag/Drop:Allow Dragging If TRUE, you can drag items from this control. Read/Write Yes
756A3C47 Drag/Drop:Allow Dropping If TRUE, LabVIEW automatically accepts drops containing the LV_TREE_TAG, LV_TEXT, or LV_TREE_ITEMS data types. The LV_TREE_TAG data type is a string that represents the tag from which you drag. The LV_TEXT data type is of type string. The LV_TREE_ITEMS data type is an array of a cluster containing an array of strings, from left to right, in the item you are dragging, an integer representing the glyph index associated with the item from which you are dragging data, and an integer representing the indent level of the item from which you are dragging. Read/Write Yes
756A3C48 Expand/Contract Symbol:Show Symbol at Root Shows or hides the expand/contract symbols for items at indent level 0. The indent level 0 items become flush with the left side of the tree control when you hide the expand/contract symbols. Read/Write Yes
756A3C49 Drag/Drop:Drag Mode Sets the default behavior for a drag and drop operation for the control. The settings apply only when the control configured is the source of the drag and drop operation. Read/Write Yes
756A3C4A Drag/Drop:Allow Drag and Drop Outside Control If TRUE, this enables the control to drag items to other controls and accept drags from other controls. Read/Write Yes
756A3C4B Select Entire Rows Highlights the entire row if you select a row in the tree. Read/Write Yes
756A3C4C Edit Position The row-column pair index of the current text entry. Values of (0,0) indicate the top-left text entry. A value of -1 indicates the row or column header. Values of (-2, -2) indicate that no edits are being made to the text of the control. Read/Write Yes
756A3C4D Visible Items:Hierarchy Lines Visible If Visible, lines to outline the hierarchy of the items are always visible as vertical and horizontal lines to the left of the items in the tree control. If Invisible, the hierarchy lines are always invisible. If OS Default, LabVIEW displays the hierarchy lines if trees in the operating system show hierarchy lines. Read/Write Yes
756A3C4E Focus Item Reads or writes an item tag to specify the tree's focus item, which is used as the basis when navigating using the arrow keys. Read/Write Yes

Methods

This class has no methods or it inherits methods from its parent: Control Class.

Events

Show/Hide TreeControl Events Table

Legend
Basic Development Environment
VI Scripting
Private
Deprecated
TreeControl Events Table
Code Name Description Type
1073741880 Edit Cell Generated when the user enters new text or changes text in a cell. Notify
2147483703 Edit Cell? Generated when the user enters new text or changes text in a cell but before the new or changed text appears. Filter
1073741846 Double Click Generated when a user double-clicks an item in the tree control. Notify
1073741855 Item Close Generated when the user closes an item in the tree control to hide any child items under the item. Notify
2147483665 Item Close? Generated when the user closes an item in the tree control to hide any child items under the item but before the item closes. Filter
1073741854 Item Open Generated when the user expands an item in the tree control to display any child items under the item. Notify
2147483664 Item Open? Generated when the user expands an item in the tree control to display any child items under the item but before the item opens. Filter


History

Version Change(s)
LabVIEW 2020 In LabVIEW 2020 the Focus Item property was changed from Private to Basic Development Environment.

See Also