LazStats: One more automatic divider line for report.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7705 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2020-09-28 10:59:09 +00:00
parent 697e7ba4f8
commit f25cde2b88
3 changed files with 5 additions and 2 deletions

View File

@ -403,7 +403,7 @@ begin
lReport.Add('See the internet site http://www.xycoon.com/ for the above.');
lReport.Add('');
end; // end of experimental alternatives
lReport.Add(DIVIDER_AUTO);
lReport.Add(DIVIDER_SMALL_AUTO);
end; // next j variable
FReportFrame.DisplayReport(lReport);

View File

@ -84,6 +84,8 @@ begin
maxLen := Longestline(AReport);
for s in AReport do
if s = DIVIDER_AUTO then
ReportMemo.Lines.Add(AddChar('=', '', maxLen))
else if s = DIVIDER_SMALL_AUTO then
ReportMemo.Lines.Add(AddChar('-', '', maxLen))
else
ReportMemo.Lines.Add(s);

View File

@ -88,7 +88,8 @@ const
DIVIDER = '===========================================================================';
DIVIDER_SMALL = '---------------------------------------------------------------------------';
DIVIDER_AUTO = '@-';
DIVIDER_AUTO = '@=';
DIVIDER_SMALL_AUTO = '@-';
GRAPH_BACK_COLOR = clCream;
GRAPH_WALL_COLOR = clGray;