diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-09-05 13:17:35 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-09-05 13:17:35 +0000 |
commit | 9d24ec49a59de3bedfe386d1bd21b8c4028c12a1 (patch) | |
tree | 9cd0e04f07621c9ad5915c80615ea1264b2c462d /examples | |
parent | 0cede94a92cf6c1cb0b46a1f1782ae2715fbd862 (diff) | |
download | fpGUI-9d24ec49a59de3bedfe386d1bd21b8c4028c12a1.tar.xz |
* More painting fixes for the Treeview. Node lines seem to paint
correctly now, even if some nodes are partiall or fully hidden.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gui/treeviewtest/treeviewtest.lpr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/gui/treeviewtest/treeviewtest.lpr b/examples/gui/treeviewtest/treeviewtest.lpr index 902969c9..d8e6a9b7 100644 --- a/examples/gui/treeviewtest/treeviewtest.lpr +++ b/examples/gui/treeviewtest/treeviewtest.lpr @@ -37,7 +37,7 @@ begin tree := TfpgTreeView.Create(self); tree.SetPosition(8, 8, Width-16, Height-16); tree.Anchors := [anTop, anLeft, anRight, anBottom]; - tree.ShowColumns := True; +// tree.ShowColumns := True; // tree.TreeLineStyle := lsDot; tree.ScrollWheelDelta := 30; @@ -46,12 +46,13 @@ begin n.AppendText('Node 1.2'); n := tree.RootNode.AppendText('Node 2'); n.AppendText('Node 2.1'); - n := n.AppendText('Node 2.2'); + n := n.AppendText('Node 2.2 The quick brownfox jumps over the...'); for i := 1 to 3 do begin s := Format('Node 2.2.%d', [i]); n.AppendText(s);// + ' ' + s + ' ' + s); end; + n.Parent.AppendText('Node 2.3'); tree.RootNode.FirstSubNode.Next.Collapse; tree.RootNode.AppendText('Node 3'); tree.Selection := n; |