-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlotFr.pas
768 lines (716 loc) · 30.2 KB
/
PlotFr.pas
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
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
unit PlotFr;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, ComCtrls, Spin, ExtCtrls, DynamicSkinForm,
SkinTabs, spDialogs, SkinCtrls, SkinBoxCtrls, Mask, spMessages;
type
TPlotForm = class(TForm)
spDynamicSkinForm1: TspDynamicSkinForm;
PageControl1: TspSkinPageControl;
spSkinTabSheet1: TspSkinTabSheet;
spSkinTabSheet2: TspSkinTabSheet;
spSkinTabSheet3: TspSkinTabSheet;
Notebook1: TspSkinNotebook;
spSkinButton1: TspSkinButton;
FontDialog1: TspSkinFontDialog;
spSkinGroupBox1: TspSkinGroupBox;
spSkinStdLabel1: TspSkinStdLabel;
spSkinStdLabel2: TspSkinStdLabel;
spSkinStdLabel3: TspSkinStdLabel;
spSkinStdLabel4: TspSkinStdLabel;
CheckBox11: TspSkinCheckRadioBox;
CheckBox12: TspSkinCheckRadioBox;
SpinEdit1: TspSkinSpinEdit;
TrackBar1: TspSkinTrackBar;
TrackBar2: TspSkinTrackBar;
TrackBar3: TspSkinTrackBar;
spSkinGroupBox2: TspSkinGroupBox;
spSkinStdLabel5: TspSkinStdLabel;
spSkinStdLabel6: TspSkinStdLabel;
spSkinStdLabel7: TspSkinStdLabel;
spSkinSpeedButton1: TspSkinSpeedButton;
spSkinSpeedButton2: TspSkinSpeedButton;
spSkinSpeedButton3: TspSkinSpeedButton;
Edit1: TspSkinEdit;
Edit2: TspSkinEdit;
Edit3: TspSkinEdit;
spSkinGroupBox3: TspSkinGroupBox;
CheckBox13: TspSkinCheckRadioBox;
CheckBox14: TspSkinCheckRadioBox;
RzColorComboBox6: TspSkinColorComboBox;
spSkinStdLabel8: TspSkinStdLabel;
SpinEdit2: TspSkinSpinEdit;
spSkinGroupBox4: TspSkinGroupBox;
CheckBox2: TspSkinCheckRadioBox;
CheckBox3: TspSkinCheckRadioBox;
RzColorComboBox2: TspSkinColorComboBox;
spSkinGroupBox5: TspSkinGroupBox;
CheckBox1: TspSkinCheckRadioBox;
CheckBox5: TspSkinCheckRadioBox;
RzColorComboBox1: TspSkinColorComboBox;
spSkinGroupBox6: TspSkinGroupBox;
CheckBox4: TspSkinCheckRadioBox;
CheckBox6: TspSkinCheckRadioBox;
RzColorComboBox3: TspSkinColorComboBox;
spSkinGroupBox7: TspSkinGroupBox;
CheckBox7: TspSkinCheckRadioBox;
CheckBox8: TspSkinCheckRadioBox;
RzColorComboBox4: TspSkinColorComboBox;
spSkinGroupBox8: TspSkinGroupBox;
CheckBox9: TspSkinCheckRadioBox;
CheckBox10: TspSkinCheckRadioBox;
RzColorComboBox5: TspSkinColorComboBox;
spSkinMessage1: TspSkinMessage;
spSkinGroupBox9: TspSkinGroupBox;
spSkinStdLabel9: TspSkinStdLabel;
spSkinStdLabel10: TspSkinStdLabel;
spSkinStdLabel11: TspSkinStdLabel;
spSkinStdLabel12: TspSkinStdLabel;
XMax: TspSkinSpinEdit;
XMaxAuto: TspSkinCheckRadioBox;
spSkinSpinEdit1: TspSkinSpinEdit;
XMin: TspSkinSpinEdit;
YMax: TspSkinSpinEdit;
YMin: TspSkinSpinEdit;
XMinAuto: TspSkinCheckRadioBox;
YMaxAuto: TspSkinCheckRadioBox;
YMinAuto: TspSkinCheckRadioBox;
procedure CheckBox1Click(Sender: TObject);
procedure CheckBox2Click(Sender: TObject);
procedure CheckBox5Click(Sender: TObject);
procedure CheckBox3Click(Sender: TObject);
procedure CheckBox4Click(Sender: TObject);
procedure CheckBox6Click(Sender: TObject);
procedure CheckBox7Click(Sender: TObject);
procedure CheckBox8Click(Sender: TObject);
procedure CheckBox9Click(Sender: TObject);
procedure CheckBox10Click(Sender: TObject);
procedure CheckBox11Click(Sender: TObject);
procedure CheckBox13Click(Sender: TObject);
procedure CheckBox14Click(Sender: TObject);
procedure RzColorComboBox1Change(Sender: TObject);
procedure RzColorComboBox2Change(Sender: TObject);
procedure RzColorComboBox3Change(Sender: TObject);
procedure RzColorComboBox4Change(Sender: TObject);
procedure RzColorComboBox5Change(Sender: TObject);
procedure RzColorComboBox6Change(Sender: TObject);
procedure SpinEdit1Change(Sender: TObject);
procedure CheckBox12Click(Sender: TObject);
procedure TrackBar1Change(Sender: TObject);
procedure TrackBar2Change(Sender: TObject);
procedure TrackBar3Change(Sender: TObject);
procedure Edit1Change(Sender: TObject);
procedure Edit2Change(Sender: TObject);
procedure Edit3Change(Sender: TObject);
procedure TrackBar1Enter(Sender: TObject);
procedure TrackBar2Enter(Sender: TObject);
procedure TrackBar3Enter(Sender: TObject);
procedure SpeedButton1Click(Sender: TObject);
procedure SpeedButton2Click(Sender: TObject);
procedure SpeedButton3Click(Sender: TObject);
procedure SpinEdit2Change(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure XMaxChange(Sender: TObject);
procedure XMaxAutoClick(Sender: TObject);
procedure XMinChange(Sender: TObject);
procedure YMaxChange(Sender: TObject);
procedure YMinChange(Sender: TObject);
procedure XMinAutoClick(Sender: TObject);
procedure YMaxAutoClick(Sender: TObject);
procedure YMinAutoClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
PlotForm: TPlotForm;
implementation
uses
Main, GraphFr;
{$R *.DFM}
procedure TPlotForm.CheckBox1Click(Sender: TObject);
begin
if Checkbox1.Checked = true then
GraphForm.Series2.Active := true
else
GraphForm.Series2.Active := false;
end;
procedure TPlotForm.CheckBox9Click(Sender: TObject);
begin
if Checkbox9.Checked = true then
GraphForm.Series5.Active := true
else
GraphForm.Series5.Active := false;
end;
procedure TPlotForm.CheckBox13Click(Sender: TObject);
begin
if Checkbox13.Checked = true then
begin
case Trunc(Spinedit2.Value) of
1 : GraphForm.Series7.Active := true;
2 : GraphForm.Series8.Active := true;
3 : GraphForm.Series9.Active := true;
4 : GraphForm.Series10.Active := true;
5 : GraphForm.Series11.Active := true;
6 : GraphForm.Series12.Active := true;
7 : GraphForm.Series13.Active := true;
8 : GraphForm.Series14.Active := true;
9 : GraphForm.Series15.Active := true;
10 : GraphForm.Series16.Active := true;
end;
end else
begin
case Trunc(Spinedit2.Value) of
1 : GraphForm.Series7.Active := false;
2 : GraphForm.Series8.Active := false;
3 : GraphForm.Series9.Active := false;
4 : GraphForm.Series10.Active := false;
5 : GraphForm.Series11.Active := false;
6 : GraphForm.Series12.Active := false;
7 : GraphForm.Series13.Active := false;
8 : GraphForm.Series14.Active := false;
9 : GraphForm.Series15.Active := false;
10 : GraphForm.Series16.Active := false;
end;
end;
end;
procedure TPlotForm.CheckBox7Click(Sender: TObject);
begin
if Checkbox7.Checked = true then
GraphForm.Series4.Active := true
else
GraphForm.Series4.Active := false;
end;
procedure TPlotForm.CheckBox4Click(Sender: TObject);
begin
if Checkbox4.Checked = true then
GraphForm.Series3.Active := true
else
GraphForm.Series3.Active := false;
end;
procedure TPlotForm.CheckBox2Click(Sender: TObject);
begin
if Checkbox2.Checked = true then
GraphForm.Series6.Active := true
else
GraphForm.Series6.Active := false;
end;
procedure TPlotForm.CheckBox5Click(Sender: TObject);
begin
if Checkbox5.Checked = true then
GraphForm.Series2.Marks.Visible := true
else
GraphForm.Series2.Marks.Visible := false;
end;
procedure TPlotForm.CheckBox10Click(Sender: TObject);
begin
if Checkbox10.Checked = true then
GraphForm.Series5.Marks.Visible := true
else
GraphForm.Series5.Marks.Visible := false;
end;
procedure TPlotForm.CheckBox14Click(Sender: TObject);
begin
if Checkbox14.Checked = true then
begin
case Trunc(Spinedit2.Value) of
1 : GraphForm.Series7.Marks.Visible := true;
2 : GraphForm.Series8.Marks.Visible := true;
3 : GraphForm.Series9.Marks.Visible := true;
4 : GraphForm.Series10.Marks.Visible := true;
5 : GraphForm.Series11.Marks.Visible := true;
6 : GraphForm.Series12.Marks.Visible := true;
7 : GraphForm.Series13.Marks.Visible := true;
8 : GraphForm.Series14.Marks.Visible := true;
9 : GraphForm.Series15.Marks.Visible := true;
10 : GraphForm.Series16.Marks.Visible := true;
end;
end else
begin
case Trunc(Spinedit2.Value) of
1 : GraphForm.Series7.Marks.Visible := false;
2 : GraphForm.Series8.Marks.Visible := false;
3 : GraphForm.Series9.Marks.Visible := false;
4 : GraphForm.Series10.Marks.Visible := false;
5 : GraphForm.Series11.Marks.Visible := false;
6 : GraphForm.Series12.Marks.Visible := false;
7 : GraphForm.Series13.Marks.Visible := false;
8 : GraphForm.Series14.Marks.Visible := false;
9 : GraphForm.Series15.Marks.Visible := false;
10 : GraphForm.Series16.Marks.Visible := false;
end;
end;
end;
procedure TPlotForm.CheckBox8Click(Sender: TObject);
begin
if Checkbox8.Checked = true then
GraphForm.Series4.Marks.Visible := true
else
GraphForm.Series4.Marks.Visible := false;
end;
procedure TPlotForm.CheckBox6Click(Sender: TObject);
begin
if Checkbox6.Checked = true then
GraphForm.Series3.Marks.Visible := true
else
GraphForm.Series3.Marks.Visible := false;
end;
procedure TPlotForm.CheckBox3Click(Sender: TObject);
begin
if Checkbox3.Checked = true then
GraphForm.Series6.Marks.Visible := true
else
GraphForm.Series6.Marks.Visible := false;
end;
procedure TPlotForm.RzColorComboBox1Change(Sender: TObject);
begin
GraphForm.Series2.SeriesColor := RzColorComboBox1.Selected;
end;
procedure TPlotForm.RzColorComboBox5Change(Sender: TObject);
begin
GraphForm.Series5.SeriesColor := RzColorComboBox5.Selected;
end;
procedure TPlotForm.RzColorComboBox6Change(Sender: TObject);
begin
case Trunc(Spinedit2.Value) of
1 : GraphForm.Series7.SeriesColor := RzColorComboBox6.Selected;
2 : GraphForm.Series8.SeriesColor := RzColorComboBox6.Selected;
3 : GraphForm.Series9.SeriesColor := RzColorComboBox6.Selected;
4 : GraphForm.Series10.SeriesColor := RzColorComboBox6.Selected;
5 : GraphForm.Series11.SeriesColor := RzColorComboBox6.Selected;
6 : GraphForm.Series12.SeriesColor := RzColorComboBox6.Selected;
7 : GraphForm.Series13.SeriesColor := RzColorComboBox6.Selected;
8 : GraphForm.Series14.SeriesColor := RzColorComboBox6.Selected;
9 : GraphForm.Series15.SeriesColor := RzColorComboBox6.Selected;
10 : GraphForm.Series16.SeriesColor := RzColorComboBox6.Selected;
end;
end;
procedure TPlotForm.RzColorComboBox4Change(Sender: TObject);
begin
GraphForm.Series4.SeriesColor := RzColorComboBox4.Selected;
end;
procedure TPlotForm.RzColorComboBox3Change(Sender: TObject);
begin
GraphForm.Series3.SeriesColor := RzColorComboBox3.Selected;
end;
procedure TPlotForm.RzColorComboBox2Change(Sender: TObject);
begin
GraphForm.Series6.SeriesColor := RzColorComboBox2.Selected;
end;
procedure TPlotForm.CheckBox11Click(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : if Checkbox11.Checked = true then
GraphForm.chart1.View3D := true
else
GraphForm.chart1.View3D := false;
1 : if Checkbox11.Checked = true then
GraphForm.chart2.View3D := true
else
GraphForm.chart2.View3D := false;
2 : if Checkbox11.Checked = true then
GraphForm.chart3.View3D := true
else
GraphForm.chart3.View3D := false;
end;
end;
procedure TPlotForm.SpinEdit1Change(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : GraphForm.chart1.Chart3DPercent := Trunc(Spinedit1.Value);
1 : GraphForm.chart2.Chart3DPercent := Trunc(Spinedit1.Value);
2 : GraphForm.chart3.Chart3DPercent := Trunc(Spinedit1.Value);
end;
end;
procedure TPlotForm.CheckBox12Click(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : if Checkbox12.Checked = true then
GraphForm.chart1.View3DOptions.Orthogonal := true
else
GraphForm.chart1.View3DOptions.Orthogonal := false;
1 : if Checkbox12.Checked = true then
GraphForm.chart2.View3DOptions.Orthogonal := true
else
GraphForm.chart2.View3DOptions.Orthogonal := false;
3 : if Checkbox12.Checked = true then
GraphForm.chart3.View3DOptions.Orthogonal := true
else
GraphForm.chart3.View3DOptions.Orthogonal := false;
end;
end;
procedure TPlotForm.TrackBar1Change(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : GraphForm.chart1.View3DOptions.Rotation := trackbar1.Value;
1 : GraphForm.chart2.View3DOptions.Rotation := trackbar1.Value;
2 : GraphForm.chart3.View3DOptions.Rotation := trackbar1.Value;
end;
end;
procedure TPlotForm.TrackBar2Change(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : GraphForm.chart1.View3DOptions.Elevation := trackbar2.Value;
1 : GraphForm.chart2.View3DOptions.Elevation := trackbar2.Value;
2 : GraphForm.chart3.View3DOptions.Elevation := trackbar2.Value;
end;
end;
procedure TPlotForm.TrackBar3Change(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : GraphForm.chart1.View3DOptions.Perspective := trackbar3.Value;
1 : GraphForm.chart2.View3DOptions.Perspective := trackbar3.Value;
2 : GraphForm.chart3.View3DOptions.Perspective := trackbar3.Value;
end;
end;
procedure TPlotForm.Edit1Change(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : GraphForm.chart1.Title.Text[0] := Edit1.Text;
1 : GraphForm.chart2.Title.Text[0] := Edit1.Text;
2 : GraphForm.chart3.Title.Text[0] := Edit1.Text;
end;
end;
procedure TPlotForm.Edit2Change(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : GraphForm.chart1.LeftAxis.Title.Caption := Edit2.Text;
1 : GraphForm.chart2.LeftAxis.Title.Caption := Edit2.Text;
2 : GraphForm.chart3.LeftAxis.Title.Caption := Edit2.Text;
end;
end;
procedure TPlotForm.Edit3Change(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : GraphForm.chart1.BottomAxis.Title.Caption := Edit3.Text;
1 : GraphForm.chart2.BottomAxis.Title.Caption := Edit3.Text;
2 : GraphForm.chart3.BottomAxis.Title.Caption := Edit3.Text;
end;
end;
procedure TPlotForm.TrackBar1Enter(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : if (GraphForm.chart1.View3DOptions.Orthogonal = true) then
spSkinMessage1.MessageDlg('Orthogonal must be set to false for this to act on chart.', mtInformation,[mbOk], 0);
1 : if (GraphForm.chart2.View3DOptions.Orthogonal = true) then
spSkinMessage1.MessageDlg('Orthogonal must be set to false for this to act on chart.', mtInformation,[mbOk], 0);
2 : if (GraphForm.chart3.View3DOptions.Orthogonal = true) then
spSkinMessage1.MessageDlg('Orthogonal must be set to false for this to act on chart.', mtInformation,[mbOk], 0);
end;
end;
procedure TPlotForm.TrackBar2Enter(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : if (GraphForm.chart1.View3DOptions.Orthogonal = true) then
spSkinMessage1.MessageDlg('Orthogonal must be set to false for this to act on chart.', mtInformation,[mbOk], 0);
1 : if (GraphForm.chart2.View3DOptions.Orthogonal = true) then
spSkinMessage1.MessageDlg('Orthogonal must be set to false for this to act on chart.', mtInformation,[mbOk], 0);
2 : if (GraphForm.chart3.View3DOptions.Orthogonal = true) then
spSkinMessage1.MessageDlg('Orthogonal must be set to false for this to act on chart.', mtInformation,[mbOk], 0);
end;
end;
procedure TPlotForm.TrackBar3Enter(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : if (GraphForm.chart1.View3DOptions.Orthogonal = true) then
spSkinMessage1.MessageDlg('Orthogonal must be set to false for this to act on chart.', mtInformation,[mbOk], 0);
1 : if (GraphForm.chart2.View3DOptions.Orthogonal = true) then
spSkinMessage1.MessageDlg('Orthogonal must be set to false for this to act on chart.', mtInformation,[mbOk], 0);
2 : if (GraphForm.chart3.View3DOptions.Orthogonal = true) then
spSkinMessage1.MessageDlg('Orthogonal must be set to false for this to act on chart.', mtInformation,[mbOk], 0);
end;
end;
procedure TPlotForm.SpeedButton1Click(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : begin
FontDialog1.Font.Color := GraphForm.chart1.Title.Font.Color;
FontDialog1.Font.Name := GraphForm.chart1.Title.Font.Name;
FontDialog1.Font.Size := GraphForm.chart1.Title.Font.Size;
FontDialog1.Font.Style := GraphForm.chart1.Title.Font.Style;
FontDialog1.Font.Pitch := GraphForm.chart1.Title.Font.Pitch;
FontDialog1.Font.Height := GraphForm.chart1.Title.Font.Height;
if FontDialog1.Execute then
begin
GraphForm.chart1.Title.Font.Color := FontDialog1.Font.Color;
GraphForm.chart1.Title.Font.Name := FontDialog1.Font.Name;
GraphForm.chart1.Title.Font.Size := FontDialog1.Font.Size;
GraphForm.chart1.Title.Font.Style := FontDialog1.Font.Style;
GraphForm.chart1.Title.Font.Pitch := FontDialog1.Font.Pitch;
GraphForm.chart1.Title.Font.Height := FontDialog1.Font.Height;
end;
end;
1 : begin
FontDialog1.Font.Color := GraphForm.chart2.Title.Font.Color;
FontDialog1.Font.Name := GraphForm.chart2.Title.Font.Name;
FontDialog1.Font.Size := GraphForm.chart2.Title.Font.Size;
FontDialog1.Font.Style := GraphForm.chart2.Title.Font.Style;
FontDialog1.Font.Pitch := GraphForm.chart2.Title.Font.Pitch;
FontDialog1.Font.Height := GraphForm.chart2.Title.Font.Height;
if FontDialog1.Execute then
begin
GraphForm.chart2.Title.Font.Color := FontDialog1.Font.Color;
GraphForm.chart2.Title.Font.Name := FontDialog1.Font.Name;
GraphForm.chart2.Title.Font.Size := FontDialog1.Font.Size;
GraphForm.chart2.Title.Font.Style := FontDialog1.Font.Style;
GraphForm.chart2.Title.Font.Pitch := FontDialog1.Font.Pitch;
GraphForm.chart2.Title.Font.Height := FontDialog1.Font.Height;
end;
end;
2 : begin
FontDialog1.Font.Color := GraphForm.chart3.Title.Font.Color;
FontDialog1.Font.Name := GraphForm.chart3.Title.Font.Name;
FontDialog1.Font.Size := GraphForm.chart3.Title.Font.Size;
FontDialog1.Font.Style := GraphForm.chart3.Title.Font.Style;
FontDialog1.Font.Pitch := GraphForm.chart3.Title.Font.Pitch;
FontDialog1.Font.Height := GraphForm.chart3.Title.Font.Height;
if FontDialog1.Execute then
begin
GraphForm.chart3.Title.Font.Color := FontDialog1.Font.Color;
GraphForm.chart3.Title.Font.Name := FontDialog1.Font.Name;
GraphForm.chart3.Title.Font.Size := FontDialog1.Font.Size;
GraphForm.chart3.Title.Font.Style := FontDialog1.Font.Style;
GraphForm.chart3.Title.Font.Pitch := FontDialog1.Font.Pitch;
GraphForm.chart3.Title.Font.Height := FontDialog1.Font.Height;
end;
end;
end;
end;
procedure TPlotForm.SpeedButton2Click(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : begin
FontDialog1.Font.Color := GraphForm.chart1.LeftAxis.Title.Font.Color;
FontDialog1.Font.Name := GraphForm.chart1.LeftAxis.Title.Font.Name;
FontDialog1.Font.Size := GraphForm.chart1.LeftAxis.Title.Font.Size;
FontDialog1.Font.Style := GraphForm.chart1.LeftAxis.Title.Font.Style;
FontDialog1.Font.Pitch := GraphForm.chart1.LeftAxis.Title.Font.Pitch;
FontDialog1.Font.Height := GraphForm.chart1.LeftAxis.Title.Font.Height;
if FontDialog1.Execute then
begin
GraphForm.chart1.LeftAxis.Title.Font.Color := FontDialog1.Font.Color;
GraphForm.chart1.LeftAxis.Title.Font.Name := FontDialog1.Font.Name;
GraphForm.chart1.LeftAxis.Title.Font.Size := FontDialog1.Font.Size;
GraphForm.chart1.LeftAxis.Title.Font.Style := FontDialog1.Font.Style;
GraphForm.chart1.LeftAxis.Title.Font.Pitch := FontDialog1.Font.Pitch;
GraphForm.chart1.LeftAxis.Title.Font.Height := FontDialog1.Font.Height;
end;
end;
1 : begin
FontDialog1.Font.Color := GraphForm.chart2.LeftAxis.Title.Font.Color;
FontDialog1.Font.Name := GraphForm.chart2.LeftAxis.Title.Font.Name;
FontDialog1.Font.Size := GraphForm.chart2.LeftAxis.Title.Font.Size;
FontDialog1.Font.Style := GraphForm.chart2.LeftAxis.Title.Font.Style;
FontDialog1.Font.Pitch := GraphForm.chart2.LeftAxis.Title.Font.Pitch;
FontDialog1.Font.Height := GraphForm.chart2.LeftAxis.Title.Font.Height;
if FontDialog1.Execute then
begin
GraphForm.chart2.LeftAxis.Title.Font.Color := FontDialog1.Font.Color;
GraphForm.chart2.LeftAxis.Title.Font.Name := FontDialog1.Font.Name;
GraphForm.chart2.LeftAxis.Title.Font.Size := FontDialog1.Font.Size;
GraphForm.chart2.LeftAxis.Title.Font.Style := FontDialog1.Font.Style;
GraphForm.chart2.LeftAxis.Title.Font.Pitch := FontDialog1.Font.Pitch;
GraphForm.chart2.LeftAxis.Title.Font.Height := FontDialog1.Font.Height;
end;
end;
2 : begin
FontDialog1.Font.Color := GraphForm.chart3.LeftAxis.Title.Font.Color;
FontDialog1.Font.Name := GraphForm.chart3.LeftAxis.Title.Font.Name;
FontDialog1.Font.Size := GraphForm.chart3.LeftAxis.Title.Font.Size;
FontDialog1.Font.Style := GraphForm.chart3.LeftAxis.Title.Font.Style;
FontDialog1.Font.Pitch := GraphForm.chart3.LeftAxis.Title.Font.Pitch;
FontDialog1.Font.Height := GraphForm.chart3.LeftAxis.Title.Font.Height;
if FontDialog1.Execute then
begin
GraphForm.chart3.LeftAxis.Title.Font.Color := FontDialog1.Font.Color;
GraphForm.chart3.LeftAxis.Title.Font.Name := FontDialog1.Font.Name;
GraphForm.chart3.LeftAxis.Title.Font.Size := FontDialog1.Font.Size;
GraphForm.chart3.LeftAxis.Title.Font.Style := FontDialog1.Font.Style;
GraphForm.chart3.LeftAxis.Title.Font.Pitch := FontDialog1.Font.Pitch;
GraphForm.chart3.LeftAxis.Title.Font.Height := FontDialog1.Font.Height;
end;
end;
end;
end;
procedure TPlotForm.SpeedButton3Click(Sender: TObject);
begin
case GraphForm.NoteBook1.PageIndex of
0 : begin
FontDialog1.Font.Color := GraphForm.chart1.BottomAxis.Title.Font.Color;
FontDialog1.Font.Name := GraphForm.chart1.BottomAxis.Title.Font.Name;
FontDialog1.Font.Size := GraphForm.chart1.BottomAxis.Title.Font.Size;
FontDialog1.Font.Style := GraphForm.chart1.BottomAxis.Title.Font.Style;
FontDialog1.Font.Pitch := GraphForm.chart1.BottomAxis.Title.Font.Pitch;
FontDialog1.Font.Height := GraphForm.chart1.BottomAxis.Title.Font.Height;
if FontDialog1.Execute then
begin
GraphForm.chart1.BottomAxis.Title.Font.Color := FontDialog1.Font.Color;
GraphForm.chart1.BottomAxis.Title.Font.Name := FontDialog1.Font.Name;
GraphForm.chart1.BottomAxis.Title.Font.Size := FontDialog1.Font.Size;
GraphForm.chart1.BottomAxis.Title.Font.Style := FontDialog1.Font.Style;
GraphForm.chart1.BottomAxis.Title.Font.Pitch := FontDialog1.Font.Pitch;
GraphForm.chart1.BottomAxis.Title.Font.Height := FontDialog1.Font.Height;
end;
end;
1 : begin
FontDialog1.Font.Color := GraphForm.chart2.BottomAxis.Title.Font.Color;
FontDialog1.Font.Name := GraphForm.chart2.BottomAxis.Title.Font.Name;
FontDialog1.Font.Size := GraphForm.chart2.BottomAxis.Title.Font.Size;
FontDialog1.Font.Style := GraphForm.chart2.BottomAxis.Title.Font.Style;
FontDialog1.Font.Pitch := GraphForm.chart2.BottomAxis.Title.Font.Pitch;
FontDialog1.Font.Height := GraphForm.chart2.BottomAxis.Title.Font.Height;
if FontDialog1.Execute then
begin
GraphForm.chart2.BottomAxis.Title.Font.Color := FontDialog1.Font.Color;
GraphForm.chart2.BottomAxis.Title.Font.Name := FontDialog1.Font.Name;
GraphForm.chart2.BottomAxis.Title.Font.Size := FontDialog1.Font.Size;
GraphForm.chart2.BottomAxis.Title.Font.Style := FontDialog1.Font.Style;
GraphForm.chart2.BottomAxis.Title.Font.Pitch := FontDialog1.Font.Pitch;
GraphForm.chart2.BottomAxis.Title.Font.Height := FontDialog1.Font.Height;
end;
end;
2 : begin
FontDialog1.Font.Color := GraphForm.chart3.BottomAxis.Title.Font.Color;
FontDialog1.Font.Name := GraphForm.chart3.BottomAxis.Title.Font.Name;
FontDialog1.Font.Size := GraphForm.chart3.BottomAxis.Title.Font.Size;
FontDialog1.Font.Style := GraphForm.chart3.BottomAxis.Title.Font.Style;
FontDialog1.Font.Pitch := GraphForm.chart3.BottomAxis.Title.Font.Pitch;
FontDialog1.Font.Height := GraphForm.chart3.BottomAxis.Title.Font.Height;
if FontDialog1.Execute then
begin
GraphForm.chart3.BottomAxis.Title.Font.Color := FontDialog1.Font.Color;
GraphForm.chart3.BottomAxis.Title.Font.Name := FontDialog1.Font.Name;
GraphForm.chart3.BottomAxis.Title.Font.Size := FontDialog1.Font.Size;
GraphForm.chart3.BottomAxis.Title.Font.Style := FontDialog1.Font.Style;
GraphForm.chart3.BottomAxis.Title.Font.Pitch := FontDialog1.Font.Pitch;
GraphForm.chart3.BottomAxis.Title.Font.Height := FontDialog1.Font.Height;
end;
end;
end;
end;
procedure TPlotForm.SpinEdit2Change(Sender: TObject);
begin
case Trunc(Spinedit2.Value) of
1 : begin
PlotForm.RzColorCombobox6.Selected := GraphForm.Series7.SeriesColor;
CheckBox13.Checked := GraphForm.Series7.Active;
CheckBox14.Checked := GraphForm.Series7.Marks.Visible;
end;
2 : begin
PlotForm.RzColorCombobox6.Selected := GraphForm.Series8.SeriesColor;
CheckBox13.Checked := GraphForm.Series8.Active;
CheckBox14.Checked := GraphForm.Series8.Marks.Visible;
end;
3 : begin
PlotForm.RzColorCombobox6.Selected := GraphForm.Series9.SeriesColor;
CheckBox13.Checked := GraphForm.Series9.Active;
CheckBox14.Checked := GraphForm.Series9.Marks.Visible;
end;
4 : begin
PlotForm.RzColorCombobox6.Selected := GraphForm.Series10.SeriesColor;
CheckBox13.Checked := GraphForm.Series10.Active;
CheckBox14.Checked := GraphForm.Series10.Marks.Visible;
end;
5 : begin
PlotForm.RzColorCombobox6.Selected := GraphForm.Series11.SeriesColor;
CheckBox13.Checked := GraphForm.Series11.Active;
CheckBox14.Checked := GraphForm.Series11.Marks.Visible;
end;
6 : begin
PlotForm.RzColorCombobox6.Selected := GraphForm.Series12.SeriesColor;
CheckBox13.Checked := GraphForm.Series12.Active;
CheckBox14.Checked := GraphForm.Series12.Marks.Visible;
end;
7 : begin
PlotForm.RzColorCombobox6.Selected := GraphForm.Series13.SeriesColor;
CheckBox13.Checked := GraphForm.Series13.Active;
CheckBox14.Checked := GraphForm.Series13.Marks.Visible;
end;
8 : begin
PlotForm.RzColorCombobox6.Selected := GraphForm.Series14.SeriesColor;
CheckBox13.Checked := GraphForm.Series14.Active;
CheckBox14.Checked := GraphForm.Series14.Marks.Visible;
end;
9 : begin
PlotForm.RzColorCombobox6.Selected := GraphForm.Series15.SeriesColor;
CheckBox13.Checked := GraphForm.Series15.Active;
CheckBox14.Checked := GraphForm.Series15.Marks.Visible;
end;
10 : begin
PlotForm.RzColorCombobox6.Selected := GraphForm.Series16.SeriesColor;
CheckBox13.Checked := GraphForm.Series16.Active;
CheckBox14.Checked := GraphForm.Series16.Marks.Visible;
end;
end;
end;
procedure TPlotForm.FormShow(Sender: TObject);
begin
PageControl1.ActivePageIndex := 0;
end;
procedure TPlotForm.XMaxChange(Sender: TObject);
begin
case NoteBook1.PageIndex of
0 : GraphForm.Chart1.LeftAxis.Maximum := XMax.Value;
1 : GraphForm.Chart2.LeftAxis.Maximum := XMax.Value;
2 : GraphForm.Chart3.LeftAxis.Maximum := XMax.Value;
end;
end;
procedure TPlotForm.XMaxAutoClick(Sender: TObject);
begin
case NoteBook1.PageIndex of
0 : GraphForm.Chart1.LeftAxis.AutomaticMaximum := XMaxAuto.Checked;
1 : GraphForm.Chart2.LeftAxis.AutomaticMaximum := XMaxAuto.Checked;
2 : GraphForm.Chart2.LeftAxis.AutomaticMaximum := XMaxAuto.Checked;
end;
end;
procedure TPlotForm.XMinChange(Sender: TObject);
begin
case NoteBook1.PageIndex of
0 : GraphForm.Chart1.LeftAxis.Minimum := XMin.Value;
1 : GraphForm.Chart2.LeftAxis.Minimum := XMin.Value;
2 : GraphForm.Chart3.LeftAxis.Minimum := XMin.Value;
end;
end;
procedure TPlotForm.YMaxChange(Sender: TObject);
begin
case NoteBook1.PageIndex of
0 : GraphForm.Chart1.BottomAxis.Maximum := YMax.Value;
1 : GraphForm.Chart2.BottomAxis.Maximum := YMax.Value;
2 : GraphForm.Chart3.BottomAxis.Maximum := YMax.Value;
end;
end;
procedure TPlotForm.YMinChange(Sender: TObject);
begin
case NoteBook1.PageIndex of
0 : GraphForm.Chart1.BottomAxis.Minimum := YMin.Value;
1 : GraphForm.Chart2.BottomAxis.Minimum := YMin.Value;
2 : GraphForm.Chart3.BottomAxis.Minimum := YMin.Value;
end;
end;
procedure TPlotForm.XMinAutoClick(Sender: TObject);
begin
case NoteBook1.PageIndex of
0 : GraphForm.Chart1.LeftAxis.AutomaticMinimum := XMinAuto.Checked;
1 : GraphForm.Chart2.LeftAxis.AutomaticMinimum := XMinAuto.Checked;
2 : GraphForm.Chart3.LeftAxis.AutomaticMinimum := XMinAuto.Checked;
end;
end;
procedure TPlotForm.YMaxAutoClick(Sender: TObject);
begin
case NoteBook1.PageIndex of
0 : GraphForm.Chart1.BottomAxis.AutomaticMaximum := YMaxAuto.Checked;
1 : GraphForm.Chart2.BottomAxis.AutomaticMaximum := YMaxAuto.Checked;
2 : GraphForm.Chart3.BottomAxis.AutomaticMaximum := YMaxAuto.Checked;
end;
end;
procedure TPlotForm.YMinAutoClick(Sender: TObject);
begin
case NoteBook1.PageIndex of
0 : GraphForm.Chart1.BottomAxis.AutomaticMinimum := YMinAuto.Checked;
1 : GraphForm.Chart2.BottomAxis.AutomaticMinimum := YMinAuto.Checked;
2 : GraphForm.Chart3.BottomAxis.AutomaticMinimum := YMinAuto.Checked;
end;
end;
end.