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 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
|
object MainForm: TMainForm
Left = 676
Height = 506
Top = 268
Width = 1035
Caption = 'BarSeries & ChartTools Demo'
ClientHeight = 506
ClientWidth = 1035
OnCreate = FormCreate
LCLVersion = '1.9.0.0'
object LogSplitter: TSplitter
Left = 717
Height = 506
Top = 0
Width = 5
Align = alRight
ResizeAnchor = akRight
end
object LeftPanel: TPanel
Left = 0
Height = 506
Top = 0
Width = 717
Align = alClient
BevelOuter = bvNone
ClientHeight = 506
ClientWidth = 717
TabOrder = 1
object ToolInfoPanel: TPanel
Left = 0
Height = 164
Top = 335
Width = 717
Align = alBottom
AutoSize = True
BorderSpacing.Bottom = 7
BevelOuter = bvNone
ClientHeight = 164
ClientWidth = 717
TabOrder = 0
object CbHorizontal: TCheckBox
AnchorSideLeft.Control = ToolInfoPanel
AnchorSideTop.Control = ToolInfoPanel
Left = 8
Height = 19
Top = 0
Width = 71
BorderSpacing.Left = 8
Caption = 'Horizonal'
OnChange = CbHorizontalChange
TabOrder = 0
end
object Cb100Percent: TCheckBox
AnchorSideLeft.Control = CbHorizontal
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = CbHorizontal
Left = 95
Height = 19
Top = 0
Width = 48
BorderSpacing.Left = 16
Caption = '100%'
OnChange = Cb100PercentChange
TabOrder = 1
end
object TargetPanel: TPanel
AnchorSideLeft.Control = Cb100Percent
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = CbHorizontal
Left = 183
Height = 24
Top = 0
Width = 203
Anchors = [akTop, akLeft, akBottom]
AutoSize = True
BorderSpacing.Left = 40
BevelOuter = bvNone
ClientHeight = 24
ClientWidth = 203
TabOrder = 2
object RbToolTargetDataPoint: TRadioButton
AnchorSideLeft.Control = LblToolTargets
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = TargetPanel
Left = 75
Height = 19
Top = 0
Width = 75
BorderSpacing.Left = 10
Caption = 'Data point'
OnChange = ToolTargetChanged
TabOrder = 0
end
object RbToolTargetBar: TRadioButton
AnchorSideLeft.Control = RbToolTargetDataPoint
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = TargetPanel
Left = 166
Height = 19
Top = 0
Width = 37
BorderSpacing.Left = 16
Caption = 'Bar'
Checked = True
OnChange = ToolTargetChanged
TabOrder = 1
TabStop = True
end
object LblToolTargets: TLabel
AnchorSideLeft.Control = TargetPanel
AnchorSideTop.Control = RbToolTargetDataPoint
AnchorSideTop.Side = asrCenter
Left = 0
Height = 15
Top = 2
Width = 65
Caption = 'Tool targets:'
ParentColor = False
end
end
object LblInfo: TLabel
AnchorSideLeft.Control = CbHorizontal
AnchorSideTop.Control = CbHorizontal
AnchorSideTop.Side = asrBottom
Left = 8
Height = 135
Top = 29
Width = 359
BorderSpacing.Top = 10
Caption = 'if ToolTarget = Bar:'#13#10' Left-Click inside bar --> DataPointClickTool --> Log message'#13#10' CTRL inside bar --> DataPointHintTool --> Hint window'#13#10#13#10'if ToolTarget = DataPoint:'#13#10' Left-Click at bar end --> DataPointClickTool --> Log message'#13#10' CTRL inside at bar end --> DataPointHintTool --> Hint window'#13#10#13#10'Right-Drag of bar end --> DataPointDragTool --> change bar height'
ParentColor = False
end
end
object Chart: TChart
Left = 0
Height = 335
Top = 0
Width = 717
AutoFocus = True
AxisList = <
item
Grid.Color = clSilver
Marks.LabelBrush.Style = bsClear
Minors = <>
Title.LabelFont.Orientation = 900
Title.LabelBrush.Style = bsClear
end
item
Grid.Visible = False
Alignment = calBottom
AxisPen.Visible = True
Marks.Format = '%2:s'
Marks.LabelBrush.Style = bsClear
Marks.Source = ListChartSourceLABELS
Marks.Style = smsLabel
Minors = <>
Title.LabelBrush.Style = bsClear
ZPosition = 1
end>
BackColor = clWhite
Foot.Brush.Color = clBtnFace
Foot.Font.Color = clBlue
Legend.Alignment = laTopCenter
Legend.ColumnCount = 3
Legend.Visible = True
Margins.Bottom = 0
Title.Brush.Color = clBtnFace
Title.Font.Color = clBlue
Title.Text.Strings = (
'TAChart'
)
Toolset = ChartToolset
Align = alClient
object BarSeriesREDYELLOW: TBarSeries
Legend.Multiplicity = lmStyle
Marks.Distance = 4
Marks.Format = '%.1f'
Marks.Frame.Visible = False
Marks.LabelBrush.Color = clWhite
Marks.LabelBrush.Style = bsClear
Marks.LinkPen.Visible = False
Marks.Style = smsCustom
Marks.YIndex = -1
Title = 'Red'
BarBrush.Color = clRed
BarOffsetPercent = -20
BarWidthPercent = 40
Source = ListChartSourceREDYELLOW
Styles = ChartStyles
end
object BarSeriesBLUE: TBarSeries
Marks.Attachment = maEdge
Marks.Distance = 4
Marks.Format = '%.1f'
Marks.Frame.Visible = False
Marks.LabelBrush.Color = clWhite
Marks.LabelBrush.Style = bsClear
Marks.LinkPen.Visible = False
Marks.Style = smsCustom
Title = 'Blue'
BarBrush.Color = clBlue
BarOffsetPercent = 20
BarWidthPercent = 40
Source = ListChartSourceBLUE
end
end
end
object Log: TMemo
Left = 730
Height = 490
Top = 8
Width = 297
Align = alRight
BorderSpacing.Around = 8
ScrollBars = ssAutoBoth
TabOrder = 2
end
object ChartToolset: TChartToolset
left = 512
top = 80
object DataPointClickTool: TDataPointClickTool
Shift = [ssLeft]
OnPointClick = DataPointClickToolPointClick
end
object DataPointHintTool: TDataPointHintTool
Shift = [ssCtrl]
OnHint = DataPointHintToolHint
end
object DataPointDragTool: TDataPointDragTool
Shift = [ssRight]
OnBeforeMouseDown = DataPointDragToolBeforeMouseDown
Targets = [nptPoint, nptXList, nptYList]
OnDrag = DataPointDragToolDrag
end
end
object ChartStyles: TChartStyles
Styles = <
item
Brush.Color = clRed
Text = 'Red'
end
item
Brush.Color = clYellow
Text = 'Yellow'
end>
left = 416
top = 80
end
object CalculatedChartSource: TCalculatedChartSource
Origin = ListChartSourceREDYELLOW
Percentage = True
left = 280
top = 80
end
object ListChartSourceREDYELLOW: TListChartSource
YCount = 2
left = 120
top = 80
end
object ListChartSourceBLUE: TListChartSource
left = 120
top = 144
end
object ListChartSourceLABELS: TListChartSource
left = 120
top = 216
end
end
|