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 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394
|
object Form1: TForm1
Left = 265
Height = 419
Top = 182
Width = 892
Caption = 'TChartListbox demo'
ClientHeight = 419
ClientWidth = 892
OnCreate = FormCreate
LCLVersion = '2.1.0.0'
object Chart: TChart
Left = 292
Height = 419
Top = 0
Width = 457
AxisList = <
item
Grid.Color = clSilver
Grid.Style = psSolid
Intervals.MaxLength = 100
Marks.LabelBrush.Style = bsClear
Minors = <
item
Grid.Color = clSilver
Intervals.MinLength = 5
Intervals.Options = [aipUseCount, aipUseMinLength]
Marks.LabelBrush.Style = bsClear
end>
Title.LabelFont.Orientation = 900
Title.LabelFont.Style = [fsBold]
Title.Visible = True
Title.Caption = 'y axis'
Title.LabelBrush.Style = bsClear
end
item
Grid.Color = clSilver
Grid.Style = psSolid
Intervals.MaxLength = 100
Alignment = calBottom
Marks.LabelBrush.Style = bsClear
Minors = <
item
Grid.Color = clSilver
Intervals.MinLength = 5
Intervals.Options = [aipUseCount, aipUseMinLength]
Marks.LabelBrush.Style = bsClear
end>
Title.LabelFont.Style = [fsBold]
Title.Visible = True
Title.Caption = 'x axis'
Title.LabelBrush.Style = bsClear
end>
BackColor = clWhite
Foot.Brush.Color = clBtnFace
Foot.Font.Color = clBlue
Title.Brush.Color = clBtnFace
Title.Font.Color = clBlue
Title.Text.Strings = (
'TAChart'
)
Align = alClient
DoubleBuffered = True
object SinSeries: TLineSeries
Title = 'sin(x)'
LinePen.Color = clRed
end
object CosSeries: TLineSeries
Title = 'cos(x)'
LinePen.Color = clBlue
end
end
object ListboxPanel: TPanel
Left = 754
Height = 419
Top = 0
Width = 138
Align = alRight
BevelOuter = bvNone
ClientHeight = 419
ClientWidth = 138
TabOrder = 1
object ChartListbox: TChartListbox
Left = 6
Height = 407
Top = 6
Width = 126
Chart = Chart
OnAddSeries = ChartListboxAddSeries
OnCheckboxClick = ChartListboxCheckboxClick
OnItemClick = ChartListboxItemClick
OnPopulate = ChartListboxPopulate
OnSeriesIconDblClick = ChartListboxSeriesIconDblClick
Align = alClient
BorderSpacing.Around = 6
Color = clInfoBk
ItemHeight = 20
TabOrder = 0
end
end
object Splitter: TSplitter
Left = 749
Height = 419
Top = 0
Width = 5
Align = alRight
ResizeAnchor = akRight
end
object Panel1: TPanel
Left = 0
Height = 419
Top = 0
Width = 292
Align = alLeft
AutoSize = True
BevelInner = bvRaised
BevelOuter = bvLowered
ClientHeight = 419
ClientWidth = 292
TabOrder = 3
object BtnAddSeries: TButton
AnchorSideLeft.Control = Panel1
AnchorSideTop.Control = Panel1
AnchorSideRight.Control = BtnDeleteSeries
AnchorSideRight.Side = asrBottom
Left = 8
Height = 25
Top = 8
Width = 91
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Top = 6
Caption = 'Add series'
OnClick = BtnAddSeriesClick
TabOrder = 0
end
object BtnToggleCOS: TButton
AnchorSideLeft.Control = BtnDeleteSeries
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = BtnDeleteSeries
AnchorSideRight.Control = BtnToggleSIN
AnchorSideRight.Side = asrBottom
Left = 105
Height = 25
Top = 39
Width = 94
Anchors = [akTop, akLeft, akRight]
AutoSize = True
BorderSpacing.Left = 6
Caption = 'Toggle cos(x)'
OnClick = BtnToggleCOSClick
TabOrder = 1
end
object BtnToggleChart: TButton
AnchorSideLeft.Control = BtnAddSeries
AnchorSideTop.Control = Memo
AnchorSideTop.Side = asrBottom
AnchorSideBottom.Control = CbShowCheckboxes
Left = 8
Height = 25
Top = 269
Width = 164
Anchors = [akLeft, akBottom]
AutoSize = True
BorderSpacing.Bottom = 16
Caption = 'Toggle ChartListbox.Chart'
OnClick = BtnToggleChartClick
TabOrder = 2
end
object BtnToggleSIN: TButton
AnchorSideLeft.Control = BtnAddSeries
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = BtnAddSeries
Left = 105
Height = 25
Top = 8
Width = 94
AutoSize = True
BorderSpacing.Left = 6
Caption = 'Toggle sin(x)'
OnClick = BtnToggleSINClick
TabOrder = 3
end
object CbShowCheckboxes: TCheckBox
AnchorSideLeft.Control = Panel1
AnchorSideBottom.Control = CbCheckStyle
Left = 8
Height = 19
Top = 310
Width = 114
Anchors = [akLeft, akBottom]
BorderSpacing.Left = 6
BorderSpacing.Bottom = 12
Caption = 'Show checkboxes'
Checked = True
OnChange = CbShowCheckboxesChange
State = cbChecked
TabOrder = 4
end
object CbShowSeriesIcon: TCheckBox
AnchorSideLeft.Control = Bevel2
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = CbShowCheckboxes
Left = 151
Height = 19
Top = 310
Width = 112
Caption = 'Show series icons'
Checked = True
OnChange = CbShowSeriesIconChange
State = cbChecked
TabOrder = 5
end
object CbCheckStyle: TCheckBox
AnchorSideLeft.Control = Panel1
AnchorSideBottom.Control = CbKeepSeriesOut
Left = 8
Height = 19
Top = 341
Width = 91
Anchors = [akLeft, akBottom]
BorderSpacing.Left = 6
BorderSpacing.Bottom = 32
Caption = 'Radiobuttons'
OnChange = CbCheckStyleChange
TabOrder = 6
end
object Memo: TMemo
AnchorSideLeft.Control = Panel1
AnchorSideTop.Control = Label1
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Panel1
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = BtnToggleChart
Left = 8
Height = 160
Top = 103
Width = 276
Anchors = [akTop, akLeft, akRight, akBottom]
BorderSpacing.Left = 6
BorderSpacing.Top = 2
BorderSpacing.Right = 6
BorderSpacing.Bottom = 6
ScrollBars = ssAutoVertical
TabOrder = 7
end
object Label1: TLabel
AnchorSideLeft.Control = BtnAddSeries
AnchorSideTop.Control = Bevel1
AnchorSideTop.Side = asrBottom
Left = 8
Height = 15
Top = 86
Width = 63
BorderSpacing.Top = 6
Caption = 'Click viewer'
ParentColor = False
end
object EdColumns: TSpinEdit
AnchorSideLeft.Control = Label2
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = Label2
AnchorSideTop.Side = asrCenter
Left = 206
Height = 23
Top = 339
Width = 60
Alignment = taRightJustify
BorderSpacing.Left = 4
MinValue = 1
OnChange = EdColumnsChange
TabOrder = 8
Value = 1
end
object Label2: TLabel
AnchorSideLeft.Control = Bevel2
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = CbCheckStyle
AnchorSideTop.Side = asrCenter
Left = 151
Height = 15
Top = 343
Width = 51
Caption = 'Columns:'
ParentColor = False
end
object BtnDeleteSeries: TButton
AnchorSideLeft.Control = Panel1
AnchorSideTop.Control = BtnAddSeries
AnchorSideTop.Side = asrBottom
Left = 8
Height = 25
Top = 39
Width = 91
AutoSize = True
BorderSpacing.Left = 6
BorderSpacing.Top = 6
Caption = 'Delete series'
OnClick = BtnDeleteSeriesClick
TabOrder = 9
end
object CbKeepSeriesOut: TCheckBox
AnchorSideLeft.Control = Panel1
AnchorSideBottom.Control = Panel1
AnchorSideBottom.Side = asrBottom
Left = 8
Height = 19
Top = 392
Width = 245
Anchors = [akLeft, akBottom]
BorderSpacing.Left = 6
BorderSpacing.Bottom = 6
Caption = 'Keep sin and cos series out of ChartListBox'
OnChange = CbKeepSeriesOutChange
TabOrder = 10
end
object Bevel1: TBevel
AnchorSideLeft.Control = Panel1
AnchorSideTop.Control = BtnDeleteSeries
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Panel1
AnchorSideRight.Side = asrBottom
Left = 8
Height = 4
Top = 76
Width = 276
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Top = 12
BorderSpacing.Right = 6
Shape = bsBottomLine
end
object BtnAddPoint: TButton
AnchorSideLeft.Control = BtnToggleSIN
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = BtnAddSeries
Left = 205
Height = 25
Top = 8
Width = 79
AutoSize = True
BorderSpacing.Left = 6
BorderSpacing.Right = 6
Caption = 'Add point'
OnClick = BtnAddPointClick
TabOrder = 11
end
object Bevel2: TBevel
AnchorSideLeft.Control = Panel1
AnchorSideLeft.Side = asrCenter
Left = 141
Height = 72
Top = 304
Width = 10
Shape = bsSpacer
end
end
object RandomChartSource: TRandomChartSource
PointsNumber = 10
RandSeed = 1603921857
XMax = 10
XMin = 0
YMax = 1
YMin = -1
left = 496
top = 80
end
object ColorDialog: TColorDialog
Color = clBlack
CustomColors.Strings = (
'ColorA=000000'
'ColorB=000080'
'ColorC=008000'
'ColorD=008080'
'ColorE=800000'
'ColorF=800080'
'ColorG=808000'
'ColorH=808080'
'ColorI=C0C0C0'
'ColorJ=0000FF'
'ColorK=00FF00'
'ColorL=00FFFF'
'ColorM=FF0000'
'ColorN=FF00FF'
'ColorO=FFFF00'
'ColorP=FFFFFF'
'ColorQ=C0DCC0'
'ColorR=F0CAA6'
'ColorS=F0FBFF'
'ColorT=A4A0A0'
)
left = 496
top = 128
end
end
|