File: MultilineDemo.lfm

package info (click to toggle)
lazarus 2.2.6%2Bdfsg2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 219,980 kB
  • sloc: pascal: 1,944,919; xml: 357,634; makefile: 270,608; cpp: 57,115; sh: 3,249; java: 609; perl: 297; sql: 222; ansic: 137
file content (113 lines) | stat: -rw-r--r-- 3,713 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
object NodeForm: TNodeForm
  Left = 497
  Height = 542
  Top = 332
  Width = 773
  ActiveControl = Panel1
  Caption = 'NodeForm'
  ClientHeight = 542
  ClientWidth = 773
  OnCreate = FormCreate
  LCLVersion = '2.1.0.0'
  object Label8: TLabel
    AnchorSideLeft.Control = Owner
    AnchorSideRight.Control = Owner
    AnchorSideRight.Side = asrBottom
    AnchorSideBottom.Control = Owner
    AnchorSideBottom.Side = asrBottom
    Left = 8
    Height = 60
    Top = 474
    Width = 757
    Anchors = [akLeft, akRight, akBottom]
    BorderSpacing.Around = 8
    Caption = 'Since Virtual Treeview uses Unicode for text display it is not easy to provide multiline support on Windows 9x/Me systems. Under Windows NT (4.0, 2000, XP) there is support by the operation system and so full word breaking is possible there. Otherwise you have to insert line breaks manually to have multiline captions. Of course there is no difference in handling between multiline and single line nodes (except for the vertical alignment of the latter).'
    ParentColor = False
    ShowAccelChar = False
    WordWrap = True
  end
  object Panel1: TPanel
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = Owner
    AnchorSideRight.Control = Owner
    AnchorSideRight.Side = asrBottom
    AnchorSideBottom.Control = AutoAdjustCheckBox
    Left = 8
    Height = 431
    Top = 8
    Width = 757
    Anchors = [akTop, akLeft, akRight, akBottom]
    BorderSpacing.Around = 8
    ClientHeight = 431
    ClientWidth = 757
    Color = clAppWorkspace
    ParentColor = False
    TabOrder = 0
    object MLTree: TLazVirtualStringTree
      Left = 96
      Height = 411
      Top = 8
      Width = 574
      Anchors = [akTop, akLeft, akRight, akBottom]
      ClipboardFormats.Strings = (
        'CSV'
        'HTML Format'
        'Plain text'
        'Rich Text Format'
        'Rich Text Format Without Objects'
        'Unicode text'
        'Virtual Tree Data'
      )
      Colors.SelectionRectangleBlendColor = 10539203
      DefaultNodeHeight = 130
      DefaultText = 'Node'
      Header.AutoSizeIndex = 0
      Header.Columns = <      
        item
          Position = 1
          Width = 503
        end      
        item
          Position = 0
        end>
      Header.DefaultHeight = 17
      Header.Font.Height = -11
      Header.Font.Name = 'MS Sans Serif'
      Header.Height = 17
      Header.Options = [hoAutoResize, hoColumnResize, hoDrag]
      HintMode = hmTooltip
      LineMode = lmBands
      NodeAlignment = naFromTop
      NodeDataSize = 4
      ParentShowHint = False
      RootNodeCount = 30
      SelectionCurveRadius = 10
      ShowHint = True
      TabOrder = 0
      TextMargin = 5
      TreeOptions.AutoOptions = [toAutoDropExpand, toAutoScroll, toAutoScrollOnExpand, toAutoSpanColumns, toAutoTristateTracking, toAutoDeleteMovedNodes]
      TreeOptions.MiscOptions = [toEditable, toInitOnSave, toReportMode, toToggleOnDblClick, toWheelPanning]
      TreeOptions.PaintOptions = [toHideFocusRect, toShowDropmark, toShowTreeLines, toThemeAware, toUseBlendedImages]
      TreeOptions.SelectionOptions = [toMultiSelect]
      OnEditing = MLTreeEditing
      OnGetText = MLTreeGetText
      OnPaintText = MLTreePaintText
      OnInitNode = MLTreeInitNode
      OnMeasureItem = MLTreeMeasureItem
      OnStateChange = MLTreeStateChange
    end
  end
  object AutoAdjustCheckBox: TCheckBox
    AnchorSideLeft.Control = Owner
    AnchorSideBottom.Control = Label8
    Left = 8
    Height = 19
    Top = 447
    Width = 266
    Anchors = [akLeft, akBottom]
    BorderSpacing.Left = 8
    Caption = 'Automatically adjust node height to node text.'
    OnClick = AutoAdjustCheckBoxClick
    TabOrder = 1
  end
end