Footer text with carriage returns
Posted: Wed Jan 21, 2009 5:55 pm
8.04, D2007
I present a chart in two different sizes--one for my app, and one for printing. For printing, it is smaller, and what is a space in the footer text gets replaced with a carriage return. But the text reads from the bottom up, rather then the top down. To reproduce:
The following code in a chart dropped on a brand new form:
procedure TForm9.FormCreate(Sender: TObject);
begin
Chart1.Foot.Text.Text :=
'This is a test of how the'#13'footer should look when adding a carriage return';
end;
this results in the text appearing in the following order:
footer should look when adding a carriage return
This is a test of how the
i.e. it is reversed from what I would have expected.
Same thing if I try:
Chart1.Foot.Text.Clear;
Chart1.Foot.Text.Add(
'This is a test of how the');
Chart1.Foot.Text.Add(
'footer should look when adding a carriage return');
Is this by design? a bug? a feature?<g>
I present a chart in two different sizes--one for my app, and one for printing. For printing, it is smaller, and what is a space in the footer text gets replaced with a carriage return. But the text reads from the bottom up, rather then the top down. To reproduce:
The following code in a chart dropped on a brand new form:
procedure TForm9.FormCreate(Sender: TObject);
begin
Chart1.Foot.Text.Text :=
'This is a test of how the'#13'footer should look when adding a carriage return';
end;
this results in the text appearing in the following order:
footer should look when adding a carriage return
This is a test of how the
i.e. it is reversed from what I would have expected.
Same thing if I try:
Chart1.Foot.Text.Clear;
Chart1.Foot.Text.Add(
'This is a test of how the');
Chart1.Foot.Text.Add(
'footer should look when adding a carriage return');
Is this by design? a bug? a feature?<g>