mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 15:39:30 +02:00
Use source color in OHLC series
git-svn-id: trunk@39398 -
This commit is contained in:
parent
87f1227012
commit
3c49f286fb
@ -549,6 +549,7 @@ var
|
||||
ext2: TDoubleRect;
|
||||
i: Integer;
|
||||
x, tw, yopen, yhigh, ylow, yclose: Double;
|
||||
p: TPen;
|
||||
begin
|
||||
my := MaxIntValue([YIndexOpen, YIndexHigh, YIndexLow, YIndexClose]);
|
||||
if IsEmpty or (my >= Source.YCount) then exit;
|
||||
@ -568,9 +569,14 @@ begin
|
||||
tw := GetXRange(x, i) * PERCENT * TickWidth;
|
||||
|
||||
if (DownLinePen.Color = clTAColor) or (yopen <= yclose) then
|
||||
ADrawer.Pen := LinePen
|
||||
p := LinePen
|
||||
else
|
||||
ADrawer.Pen := DownLinePen;
|
||||
p := DownLinePen;
|
||||
ADrawer.Pen := p;
|
||||
with Source[i]^ do
|
||||
if Color <> clTAColor then
|
||||
ADrawer.SetPenParams(p.Style, Color);
|
||||
|
||||
DoLine(x, yhigh, x, ylow);
|
||||
DoLine(x - tw, yopen, x, yopen);
|
||||
DoLine(x, yclose, x + tw, yclose);
|
||||
|
Loading…
Reference in New Issue
Block a user