source: branches/2.20_branch/Components/Outline2.txt@ 488

Last change on this file since 488 was 15, checked in by RBRi, 19 years ago

+ components stuff

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1TOutline2
2
3A new Outline (also known as a "Tree View") for Sibyl.
4Main features:
5- lots of options
6- more compact
7- fast
8- more control over navigation through code
9
10See componentsTestForm.pas for examples of how to use.
11
12Basically, to load items into the TOutline2 you use code like this:
13
14var
15 Node: TNode;
16begin
17 Node:= TheOutline.AddChild( 'Seven', nil );
18 Node:= Node.AddChild( 'Biscuit', nil );
19 Node.AddChild( 'Afghan', nil );
20
21
22
23Notes
24-----
25
26
27The scroll bars are checked for visibility only when
28- the contents of the outline changes
29- a "visible" node is expanded/collapsed
30
31Node.IsVisible tells you if all a nodes' parents are expanded.
32Not if it is physically on screen.
33
34The scroll bar positions are updated at every refresh. The number of
35physical lines "visible" in the whole outline is counted while painting.
36When the topnode is found it's index from the top is stored in _TopLineIndex
37and used to set the vertical scrollbar position.
38
39During refresh the maximum width required is calculated, and used to decide
40if a horizontal scroll bar is needed, and the position of the scrollbar
41
42The horizontal scrollbar's position is the number of pixels to start drawing at...
Note: See TracBrowser for help on using the repository browser.