Delphi-virtualtreeview Control

Source: Internet
Author: User

A very useful list control that can be used to replace the built-in listview and Treeview of Delphi, and has been updated. Currently, the latest xe2 is supported.

Http://www.soft-gems.net

SVN address: http://virtual-treeview.googlecode.com/svn/trunk

The basic usage method is not much said. You can look at the demo, or Baidu, there are still some tutorials. I will only record some attribute methods here for your convenience.

 

[Attribute]

 

Editdelay = cell editing Response Time
Hintanimation = hint animation effect

Hintmode = hint Display Mode
Linemode = grid Line Mode
Linestyle = grid line style

 

Header> autosizeindex = column index with adaptive width

 

Header> Options> hoautoresize = column adaptive width switch

Header> Options> hocolumnresize = whether the column width can be adjusted freely

Header> Options> hodblclickresize = double-click the demarcation line to automatically change the column degree.

Header> Options> hodrag = whether drag and drop operations are supported

Header> Options> hohottrack = highlight the current column

Header> Options> hoheightresize = whether the column height can be adjusted freely

 

Treeoptions> autooptions> toautoexpand = click expand node and collapse other nodes

Treeoptions> autooptions> toautotristatetracking = three-state check box adaptive selection, that is, after the child node is selected, the check status of the parent node changes

 

Treeoptions> miscoptions> tochecksupport = whether to display the check box. You also need to set the checktype attribute of the node.

Treeoptions> miscoptions> toeditable = whether to allow clicking to edit a cell

Treeoptions> miscoptions> tofullrepaintonresize = Refresh the display data when the control size changes

Treeoptions> miscoptions> totoggleondblclick = double-click to expand a node

 

Treeoptions> paintoptions> tohideselection = hide the selected focus

Treeoptions> paintoptions> tohottrack = whether the current row is underlined

Treeoptions> paintoptions> toshowdropmark = whether to display the insert tag when dragging

Treeoptions> paintoptions> toshowroot = show parent node expand button

Treeoptions> paintoptions> toshowhorzgridlines = horizontal grid line switch

Treeoptions> paintoptions> toshowtreelines = connection line between parent and child nodes

Treeoptions> paintoptions> toshowvertgridlines = vertical gridline Switch

Treeoptions> paintoptions> tothemeaware = Application System topic

Treeoptions> paintoptions> toalwayshideselection = always hide Selection

Treeoptions> paintoptions> tochildrenabove = the parent node is under the child node.

 

Treeoptions> selectionoptions> todisabledrawselection = Box selection switch

Treeoptions> selectionoptions> toextendedfocus = whether to allow focus on cells with cloumn> 0 (only when focus is available)

Treeoptions> selectionoptions> tofullrowselect = select the entire row

Treeoptions> selectionoptions> tomultiselect = Can multiple options be selected?

Treeoptions> selectionoptions> torightclickselect = right-click whether to select

Treeoptions> selectionoptions> tosimpledrawselection = when the box is selected, the row can be selected as long as it is in the box.

 

Treeoptions> stringoptions> toshowstatictext = whether to display static text (the characters displayed after the node body, static text cannot be edited)

 

Method]

 

Topnode = set the node at the top of the list, which can be used to locate the node row

Scrollintoview = sets the position of the scroll bar, which can be used to locate the node row.

 

[Event]

 

Onbeforeitemerase = self-painted item. For example, changing the baseline color

Onchange = when the focus changes
Oncreateeditor = set the edit box style of a cell, such as tedit and tcombobox. You need to implement the ivteditlink interface by yourself. For details, refer to the advanced demo.
Onexpanded = triggered when the node is expanded

Oncollapsed = triggered after nodes are collapsed
Onpainttext = set the font effect of the unit content, and draw progress bars.
Onhotchange = triggered when the hotspot node changes, that is, when the mouse is hovering

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.