Delphi VirtualStringTree - Indenting Problem
Hey S.O! I realized my child nodes are not being indented - they are on the same level as the root nodes. Here's a screenshot:
As you see, the childnodes are on the first level's Indent. FixedIndent is OFF, so thats no开发者_JAVA百科t whats causing it..
Any suggestions?
Thanks!
It looks like the check boxes are indented slightly. Keep in mind that the control only indents one column. All other columns are treated like ordinary table columns. Set the Header.MainColumn
property to 1 if you want the "Full Name" column to be the one showing indented items. Then set the Indent
property.
You can also handle the OnBeforeCellPaint
event. Adjust the dimensions of the ContentRect
parameter.
精彩评论