SmallDots and D2005
Posted: Fri Apr 15, 2005 11:06 am
The property SmallDots doesn't work on D2005 SP2 (with TChart 7.04)
Serching in TeCanvas.pas I see that in function TeeSetTeePen are these lines of code:
if APen.SmallDots then
begin
// Delphi 2005 VCL .Net and Win32 bug.
// TPen.GetPenData uses TLogPen instead of TExtLogPen
// Workaround for Delphi 2005: Set "psDot" style
// Another Delphi 2005 VCL Bug: Setting Pen.Handle leaks GDI Object.
{$IFDEF D9}
FPen.Color:=AColor;
FPen.Style:=psDot;
FPen.Mode:=APen.Mode;
if TeeCheckPenWidth then FPen.Width:=0
else FPen.Width:=1;
{$ELSE}
FPen.Handle:=TeeCreatePenSmallDots(AColor);
FPen.Mode:=APen.Mode; // 6.02
{$ENDIF}
end
But, if I use:
FPen.Handle:=TeeCreatePenSmallDots(AColor);
FPen.Mode:=APen.Mode; // 6.02
Every seems to work fine.
What's wrong with these lines? It's very important for me to continue using de property smalldots the same way I used in D7.
Thanks in advance,
Mariano
Serching in TeCanvas.pas I see that in function TeeSetTeePen are these lines of code:
if APen.SmallDots then
begin
// Delphi 2005 VCL .Net and Win32 bug.
// TPen.GetPenData uses TLogPen instead of TExtLogPen
// Workaround for Delphi 2005: Set "psDot" style
// Another Delphi 2005 VCL Bug: Setting Pen.Handle leaks GDI Object.
{$IFDEF D9}
FPen.Color:=AColor;
FPen.Style:=psDot;
FPen.Mode:=APen.Mode;
if TeeCheckPenWidth then FPen.Width:=0
else FPen.Width:=1;
{$ELSE}
FPen.Handle:=TeeCreatePenSmallDots(AColor);
FPen.Mode:=APen.Mode; // 6.02
{$ENDIF}
end
But, if I use:
FPen.Handle:=TeeCreatePenSmallDots(AColor);
FPen.Mode:=APen.Mode; // 6.02
Every seems to work fine.
What's wrong with these lines? It's very important for me to continue using de property smalldots the same way I used in D7.
Thanks in advance,
Mariano