Board index » delphi » grid lines at Teechart v7 , delphi 2006
Kushavand
![]() Delphi Developer |
Kushavand
![]() Delphi Developer |
grid lines at Teechart v7 , delphi 20062006-08-17 02:42:06 PM delphi218 Dear All I change the left axes end to 85% and bottom axes position to 15% , but vertical grid lines all still start form provirus position of bottom axes. King Regards. B. Kushavand |
Narcís Calvet
![]() Delphi Developer |
2006-08-23 11:02:43 PM
Re:grid lines at Teechart v7 , delphi 2006
Hi Kushavand,
You can try ocluding this part by custom drawing on TeeChart's canvas doing something like this: procedure TForm1.Chart1AfterDraw(Sender: TObject); var R: TRect; begin With Chart1.Axes.Bottom do begin R.Left:=IStartPos+1; R.Top:=PosAxis + (LabelsFont.Size * 2) + TickLength; R.Right:=IEndPos+1; R.Bottom:=Chart1.ChartRect.Bottom; end; With Chart1.Canvas do begin Pen.Style:=psClear; Brush.Color:=Chart1.Color; Rectangle(R); end; end; -- Best Regards, Narcís Calvet Steema Support Central support.steema.com "Important note: If you are a TeeChart registered customer, please post your support questions at Steema's Support monitored Forums for customers: support.steema.com for a prompter reply." Kushavand writes: QuoteDear All |