TAChart: Fix compilation of drag-and-drop demo

git-svn-id: trunk@24274 -
This commit is contained in:
ask 2010-03-29 10:12:39 +00:00
parent 82d6431bee
commit ab09e5bdac
4 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@
<ResourceType Value="res"/>
</General>
<VersionInfo>
<ProjectVersion Value=""/>
<StringTable Comments="" CompanyName="" FileDescription="" FileVersion="0.0.0.0" InternalName="" LegalCopyright="" LegalTrademarks="" OriginalFilename="" ProductName="" ProductVersion=""/>
</VersionInfo>
<PublishOptions>
<Version Value="2"/>

View File

@ -42,7 +42,7 @@ object Form1: TForm1
OnMouseUp = Chart1MouseUp
object Chart1LineSeries1: TLineSeries
Marks.Clipped = False
Marks.Format = '%0:g'
Marks.Format = '%0:.9g'
Marks.Style = smsValue
Pointer.Brush.Color = clPurple
Pointer.HorizSize = 6

View File

@ -48,7 +48,7 @@ procedure TForm1.Chart1LineSeries1GetMark(
out AFormattedMark: String; AIndex: Integer);
begin
if AIndex = FNearestIndex then
AFormattedMark := Chart1LineSeries1.DefaultFormattedMark(AIndex)
AFormattedMark := Chart1LineSeries1.FormattedMark(AIndex)
else
AFormattedMark := '';
end;

View File

@ -118,7 +118,7 @@ type
function Count: Integer; inline;
procedure Delete(AIndex: Integer); virtual;
function Extent: TDoubleRect; virtual;
function FormattedMark(AIndex: integer): String;
function FormattedMark(AIndex: Integer): String;
function IsEmpty: Boolean; override;
function ListSource: TListChartSource;
property Source: TCustomChartSource