mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-03 11:39:42 +01:00
TAChart: convert legend demo to FPC resources
git-svn-id: trunk@23454 -
This commit is contained in:
parent
b664f7c2c6
commit
4aa14448a7
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -2092,7 +2092,6 @@ components/tachart/demo/func/main.pas svneol=native#text/plain
|
||||
components/tachart/demo/legend/legenddemo.lpi svneol=native#text/plain
|
||||
components/tachart/demo/legend/legenddemo.lpr svneol=native#text/pascal
|
||||
components/tachart/demo/legend/main.lfm svneol=native#text/plain
|
||||
components/tachart/demo/legend/main.lrs svneol=native#text/plain
|
||||
components/tachart/demo/legend/main.pas svneol=native#text/pascal
|
||||
components/tachart/demo/save/main.lfm svneol=native#text/plain
|
||||
components/tachart/demo/save/main.lrs svneol=native#text/pascal
|
||||
|
||||
@ -4,11 +4,14 @@
|
||||
<PathDelim Value="\"/>
|
||||
<Version Value="7"/>
|
||||
<General>
|
||||
<Flags>
|
||||
<LRSInOutputDirectory Value="False"/>
|
||||
</Flags>
|
||||
<SessionStorage Value="InProjectDir"/>
|
||||
<MainUnit Value="0"/>
|
||||
<TargetFileExt Value=".exe"/>
|
||||
<Title Value="TAChart legend demo"/>
|
||||
<UseXPManifest Value="True"/>
|
||||
<ResourceType Value="res"/>
|
||||
</General>
|
||||
<VersionInfo>
|
||||
<ProjectVersion Value=""/>
|
||||
@ -66,4 +69,17 @@
|
||||
<CompilerPath Value="$(CompPath)"/>
|
||||
</Other>
|
||||
</CompilerOptions>
|
||||
<Debugging>
|
||||
<Exceptions Count="3">
|
||||
<Item1>
|
||||
<Name Value="EAbort"/>
|
||||
</Item1>
|
||||
<Item2>
|
||||
<Name Value="ECodetoolError"/>
|
||||
</Item2>
|
||||
<Item3>
|
||||
<Name Value="EFOpenError"/>
|
||||
</Item3>
|
||||
</Exceptions>
|
||||
</Debugging>
|
||||
</CONFIG>
|
||||
|
||||
@ -15,15 +15,15 @@ object Form1: TForm1
|
||||
AxisList = <
|
||||
item
|
||||
Alignment = calLeft
|
||||
Offset = 0
|
||||
Scale = 1
|
||||
Title.Font.Orientation = 900
|
||||
Transformation.Offset = 0
|
||||
Transformation.Scale = 1
|
||||
Visible = False
|
||||
end
|
||||
item
|
||||
Alignment = calBottom
|
||||
Offset = 0
|
||||
Scale = 1
|
||||
Transformation.Offset = 0
|
||||
Transformation.Scale = 1
|
||||
Visible = False
|
||||
end>
|
||||
BackColor = clSkyBlue
|
||||
|
||||
@ -1,58 +0,0 @@
|
||||
{ This is an automatically generated lazarus resource file }
|
||||
|
||||
LazarusResources.Add('TForm1','FORMDATA',[
|
||||
'TPF0'#6'TForm1'#5'Form1'#4'Left'#3'H'#1#6'Height'#3'i'#1#3'Top'#3#151#0#5'Wi'
|
||||
+'dth'#3#254#1#7'Caption'#6#5'Form1'#12'ClientHeight'#3'i'#1#11'ClientWidth'#3
|
||||
+#254#1#10'LCLVersion'#6#6'0.9.29'#0#6'TChart'#6'Chart1'#4'Left'#2#0#6'Height'
|
||||
+#3'+'#1#3'Top'#2#0#5'Width'#3#254#1#8'AxisList'#14#1#9'Alignment'#7#7'calLef'
|
||||
+'t'#6'Offset'#5#0#0#0#0#0#0#0#0#0#0#5'Scale'#5#0#0#0#0#0#0#0#128#255'?'#22'T'
|
||||
+'itle.Font.Orientation'#3#132#3#7'Visible'#8#0#1#9'Alignment'#7#9'calBottom'
|
||||
+#6'Offset'#5#0#0#0#0#0#0#0#0#0#0#5'Scale'#5#0#0#0#0#0#0#0#128#255'?'#7'Visib'
|
||||
+'le'#8#0#0#9'BackColor'#7#9'clSkyBlue'#16'Foot.Brush.Color'#7#9'clBtnFace'#15
|
||||
+'Foot.Font.Color'#7#6'clBlue'#28'Legend.BackgroundBrush.Color'#7#12'clMoneyG'
|
||||
+'reen'#14'Legend.Visible'#9#17'Title.Brush.Color'#7#9'clBtnFace'#16'Title.Fo'
|
||||
+'nt.Color'#7#6'clBlue'#18'Title.Text.Strings'#1#6#7'TAChart'#0#5'Align'#7#8
|
||||
+'alClient'#5'Color'#7#7'clOlive'#11'ParentColor'#8#0#11'TLineSeries'#17'Char'
|
||||
+'t1LineSeries1'#5'Title'#6#4'Line'#13'LinePen.Color'#7#5'clRed'#19'Pointer.B'
|
||||
+'rush.Color'#7#5'clRed'#11'SeriesColor'#7#5'clRed'#10'ShowPoints'#9#6'Source'
|
||||
+#7#16'ListChartSource1'#0#0#11'TAreaSeries'#17'Chart1AreaSeries1'#5'Title'#6
|
||||
+#4'Area'#15'AreaBrush.Color'#7#7'clGreen'#15'AreaBrush.Style'#7#7'bsCross'#11
|
||||
+'SeriesColor'#7#7'clGreen'#6'Source'#7#18'RandomChartSource1'#0#0#10'TPieSer'
|
||||
+'ies'#16'Chart1PieSeries1'#12'Marks.Format'#6#8'%1:.2f%%'#11'Marks.Style'#7
|
||||
+#10'smsPercent'#8'Exploded'#9#6'Source'#7#16'ListChartSource2'#0#0#0#6'TPane'
|
||||
+'l'#10'pnControls'#4'Left'#2#0#6'Height'#2'>'#3'Top'#3'+'#1#5'Width'#3#254#1
|
||||
+#5'Align'#7#8'alBottom'#12'ClientHeight'#2'>'#11'ClientWidth'#3#254#1#8'TabO'
|
||||
+'rder'#2#1#0#9'TSpinEdit'#9'seSpacing'#4'Left'#2'<'#6'Height'#2#21#3'Top'#2#8
|
||||
+#5'Width'#2'6'#8'MaxValue'#2#20#8'OnChange'#7#15'seSpacingChange'#8'TabOrder'
|
||||
+#2#0#5'Value'#2#4#0#0#6'TLabel'#10'lblSpacing'#4'Left'#2#8#6'Height'#2#14#3
|
||||
+'Top'#2#8#5'Width'#2'&'#7'Caption'#6#7'Spacing'#11'ParentColor'#8#0#0#6'TLab'
|
||||
+'el'#9'lblMargin'#4'Left'#2#12#6'Height'#2#14#3'Top'#2'!'#5'Width'#2'!'#7'Ca'
|
||||
+'ption'#6#6'Margin'#11'ParentColor'#8#0#0#9'TSpinEdit'#8'seMargin'#4'Left'#2
|
||||
+'<'#6'Height'#2#21#3'Top'#2'!'#5'Width'#2'6'#8'MaxValue'#2#20#8'OnChange'#7
|
||||
+#14'seMarginChange'#8'TabOrder'#2#1#5'Value'#2#4#0#0#9'TSpinEdit'#13'seSymbo'
|
||||
+'lWidth'#4'Left'#3#200#0#6'Height'#2#21#3'Top'#2#8#5'Width'#2'6'#8'MaxValue'
|
||||
+#2'2'#8'OnChange'#7#19'seSymbolWidthChange'#8'TabOrder'#2#2#5'Value'#2#20#0#0
|
||||
+#6'TLabel'#14'lblSymbolWidth'#4'Left'#3#128#0#6'Height'#2#14#3'Top'#2#8#5'Wi'
|
||||
+'dth'#2'@'#7'Caption'#6#12'Symbol width'#11'ParentColor'#8#0#0#11'TRadioGrou'
|
||||
+'p'#11'rgAlignment'#4'Left'#3'D'#1#6'Height'#2'<'#3'Top'#2#1#5'Width'#3#185#0
|
||||
+#5'Align'#7#7'alRight'#8'AutoFill'#9#7'Caption'#6#11' Alignment '#28'ChildSi'
|
||||
+'zing.LeftRightSpacing'#2#6#28'ChildSizing.TopBottomSpacing'#2#6#29'ChildSiz'
|
||||
+'ing.EnlargeHorizontal'#7#24'crsHomogenousChildResize'#27'ChildSizing.Enlarg'
|
||||
+'eVertical'#7#24'crsHomogenousChildResize'#28'ChildSizing.ShrinkHorizontal'#7
|
||||
+#14'crsScaleChilds'#26'ChildSizing.ShrinkVertical'#7#14'crsScaleChilds'#18'C'
|
||||
+'hildSizing.Layout'#7#29'cclTopToBottomThenLeftToRight'#27'ChildSizing.Contr'
|
||||
+'olsPerLine'#2#2#12'ClientHeight'#2'*'#11'ClientWidth'#3#181#0#7'Columns'#2#2
|
||||
+#9'ItemIndex'#2#2#13'Items.Strings'#1#6#7'TopLeft'#6#10'BottomLeft'#6#8'TopR'
|
||||
+'ight'#6#11'BottomRight'#0#7'OnClick'#7#16'rgAlignmentClick'#8'TabOrder'#2#3
|
||||
+#0#0#9'TCheckBox'#12'cbUseSidebar'#4'Left'#3#128#0#6'Height'#2#17#3'Top'#2'!'
|
||||
+#5'Width'#2'8'#7'Caption'#6#7'Sidebar'#7'Checked'#9#8'OnChange'#7#18'cbUseSi'
|
||||
+'debarChange'#5'State'#7#9'cbChecked'#8'TabOrder'#2#4#0#0#0#18'TRandomChartS'
|
||||
+'ource'#18'RandomChartSource1'#12'PointsNumber'#2#7#8'RandSeed'#4#224'7='#6#4
|
||||
+'XMax'#5#0#0#0#0#0#0#0#160#2'@'#4'XMin'#5#0#0#0#0#0#0#0#128#255'?'#4'YMax'#5
|
||||
+#0#0#0#0#0#0#0#160#2'@'#4'YMin'#5#0#0#0#0#0#0#0#128#255'?'#4'left'#3'|'#1#3
|
||||
+'top'#2'p'#0#0#16'TListChartSource'#16'ListChartSource1'#18'DataPoints.Strin'
|
||||
+'gs'#1#6#5'0|0||'#6#5'1|2||'#6#5'2|5||'#6#5'3|1||'#6#5'4|6||'#0#4'left'#3'|'
|
||||
+#1#3'top'#3#168#0#0#0#16'TListChartSource'#16'ListChartSource2'#18'DataPoint'
|
||||
+'s.Strings'#1#6#5'0|5||'#6#5'0|6||'#6#7'0,2|4||'#6#5'0|7||'#6#5'0|2||'#0#4'l'
|
||||
+'eft'#3'|'#1#3'top'#3#228#0#0#0#0
|
||||
]);
|
||||
@ -5,8 +5,7 @@ unit main;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, ComCtrls, ExtCtrls, Spin, StdCtrls, SysUtils, FileUtil, LResources,
|
||||
Forms, Controls, Graphics, Dialogs, TAGraph, TASeries, TASources;
|
||||
ExtCtrls, Spin, StdCtrls, Forms, TAGraph, TASeries, TASources;
|
||||
|
||||
type
|
||||
|
||||
@ -41,6 +40,8 @@ var
|
||||
|
||||
implementation
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
uses
|
||||
TALegend;
|
||||
|
||||
@ -77,8 +78,5 @@ begin
|
||||
Chart1.Legend.SymbolWidth := seSymbolWidth.Value;
|
||||
end;
|
||||
|
||||
initialization
|
||||
{$I main.lrs}
|
||||
|
||||
end.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user