ColorLine tool different styles

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
jenb
Newbie
Newbie
Posts: 50
Joined: Thu Jun 21, 2007 12:00 am

ColorLine tool different styles

Post by jenb » Thu Jun 28, 2007 10:58 am

I managed to use the ColorLine tool to solve my problem of having a tool with different colors (see below). I set AllowDrag to false to stop the tools moving or disappearing when zooming or panning. However I'm still having a problem setting different line styles for the ColorLine tool - all lines seemed to just have a plain style

e.g. :
clNewLine.Pen.Style = System.Drawing.Drawing2D.DashStyle.DashDotDot; has no effect.

Can anyone help?

jenb

With the Active X control I was able to use a drawline tool and add lines with different colors and styles at runtime.

Now when I add additional lines all previous lines are changed to the latest color and style. Is it possible to display a drawline tool owning lines with different colors and styles? Please give me some clues if possible.

Example code is below:

private Steema.TeeChart.Tools.DrawLine _tcAugerPeakLine;
_tcAugerPeakLine = new Steema.TeeChart.Tools.DrawLine(_tcChart.Chart);
Steema.TeeChart.Tools.DrawLineItem dlNewLine = new Steema.TeeChart.Tools.DrawLineItem(_tcAugerPeakLine);
dlNewLine.StartPos.X = dEnergy;
dlNewLine.StartPos.Y = 0;
dlNewLine.EndPos.X = dEnergy;
dlNewLine.EndPos.Y = dYMax;
dlNewLine.Pen.Visible = _tsbXScale.Checked;
dlNewLine.Pen.Color = _colStore.GetElemColor(strElem);
// Set the pen style of the line according to the intensity level
switch ((int)eIntLevel)
{
case (int)EntityObjects.eIntensityLevel.eHigh:
dlNewLine.Pen.Style = System.Drawing.Drawing2D.DashStyle.Dash;
break;

Regards

jenb

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jul 02, 2007 8:56 am

Hi jenb,

Thanks for reporting.

I've been able to reproduce the problem here and this seems a bug to me. I've added it (TF02012306) to our defect list to be fixed for future releases.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jul 03, 2007 6:53 am

Hi jenb,

This issue has just been fixed and the fix will be included in next v3 maintenance release.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply