Search found 62 matches

by lilo
Mon Nov 21, 2011 1:14 pm
Forum: .NET
Topic: Getting Index of Currently Selected Line
Replies: 2
Views: 3803

Re: Getting Index of Currently Selected Line

I am using the popular method of searching line coordinates to get the index. If you know of an easier method let me know?
by lilo
Mon Nov 21, 2011 2:19 am
Forum: .NET
Topic: Getting Index of Currently Selected Line
Replies: 2
Views: 3803

Getting Index of Currently Selected Line

How do I get the index of the currently selected line? For example, I have several lines using Drawline array: Dim I1() As Steema.TeeChart.Tools.DrawLineItem DrawLine5.Pen.Color = DefaultColor2 'Drawing.Color.Gray DrawLine5.Pen.Width = 1 DrawLine5.Active = True DrawLine5.EnableSelect = True DrawLine...
by lilo
Thu Nov 17, 2011 6:03 pm
Forum: .NET
Topic: Drawing on 3D Charts with DrawLineTool
Replies: 3
Views: 4946

Re: Drawing on 3D Charts with DrawLineTool

I think I know how to do it...Put the drawline code in the afterdraw event of Teechart and use screen coordinates to draw the lines.. It was in the tutorial.
by lilo
Thu Nov 17, 2011 5:13 pm
Forum: .NET
Topic: Drawing on 3D Charts with DrawLineTool
Replies: 3
Views: 4946

Re: Drawing on 3D Charts with DrawLineTool

I want to be able to annotate a 3D chart with simple drawing tools using screen coordinates.
by lilo
Thu Nov 17, 2011 3:03 pm
Forum: .NET
Topic: Add DrawlineStyle Polygon
Replies: 3
Views: 4524

Re: Add DrawlineStyle Polygon

Use drawline tool to draw polygon shapes. I can only find lines, boxes and ellipses.
by lilo
Wed Nov 16, 2011 3:35 am
Forum: .NET
Topic: Drawing on 3D Charts with DrawLineTool
Replies: 3
Views: 4946

Drawing on 3D Charts with DrawLineTool

If I draw a Line on a 3D Chart with the Drawline Tool, the default position is 3D Coordinates. Is it possible to change the default drawing position to 2D Coordinates, so the line is always drawn at the mouse position, without having to consider 3D rotation of the chart?
by lilo
Wed Nov 16, 2011 2:54 am
Forum: .NET
Topic: Add DrawlineStyle Polygon
Replies: 3
Views: 4524

Add DrawlineStyle Polygon

Hi,

I would like to see polygons added to drawlinestyle of the drawline tool.
by lilo
Tue Nov 08, 2011 2:13 am
Forum: .NET
Topic: Allow Duplicates
Replies: 1
Views: 2998

Allow Duplicates

With the points series, is there a property to allow/disallow duplicate data.

If I have two or more rows of data exactly the same, how will this affect plotting the chart?
by lilo
Thu Oct 20, 2011 12:28 pm
Forum: .NET
Topic: Contour Fill Levels
Replies: 5
Views: 7032

Re: Contour Fill Levels

Hi, Thanks, I looked at that thread. I am adding the data correctly, that is not the problem. If I add values with Very Different Axes Scales, Isolines are plotted, but the color fill is not plotted. If I use this code: For x = 0 To 10 For z = 100 To 500 Step 100 .Add(x, Rnd(), z) Next z Next x Fill...
by lilo
Thu Oct 20, 2011 2:03 am
Forum: .NET
Topic: Contour Fill Levels
Replies: 5
Views: 7032

Re: Contour Fill Levels

The code works OK.

If I use my data in the activex version, it plots OK. I also grid the data first to get an evenly spaced grid. The problem occurs if I use different scale for left and bottom axes.
by lilo
Wed Oct 19, 2011 8:43 am
Forum: .NET
Topic: Contour Fill Levels
Replies: 5
Views: 7032

Contour Fill Levels

If I set FillLevels=True on a Contour Series, it should plot filled color contours. For certain types of data, this will not work for me: X Y Z 26070 46750 4.6750 27890 37640 3.7640 31640 36960 4.1 18800 41300 2.1230 24725 43400 4.3400 25060 36030 3.6030 27310 40360 4.0360 21110 50890 5.0890 23450 4...
by lilo
Mon Oct 17, 2011 12:29 pm
Forum: .NET
Topic: Applying Functions to Teechart
Replies: 6
Views: 7570

Re: Applying Functions to Teechart

Got the original code working. Just had to activate and relate the charts in the editor.

Thanks,
by lilo
Mon Oct 17, 2011 11:19 am
Forum: .NET
Topic: Applying Functions to Teechart
Replies: 6
Views: 7570

Re: Applying Functions to Teechart

Just a thought - I could add PolyFitting1.AddPoints method to the code.

What is the correct format for array Addpoints - there is no detailed reference in the documentation

Should I add an array of X Values or X and Y Values?

How should the Array be Declared?

Thanks,
by lilo
Sat Oct 15, 2011 5:22 am
Forum: .NET
Topic: Applying Functions to Teechart
Replies: 6
Views: 7570

Re: Applying Functions to Teechart

Thanks Sandra, I am using the example code but the coefficients keep returning 0. PolyFitting1.PolyDegree = 2 Points1.DataSource = Points1 PolyFitting1.Chart = TChart1.Chart Points1.Function = PolyFitting1 Points1.Function.Period = 2 Points1.CheckDataSource() Points1.Function.Calculate(TChart1.Serie...
by lilo
Sun Oct 09, 2011 6:54 am
Forum: .NET
Topic: Shape Fill
Replies: 2
Views: 4212

Re: Shape Fill

I found the solution by using

'Draw Pattern Fill
Dim br2 As New Drawing2D.HatchBrush(CType(FillPat2, Drawing2D.HatchStyle), Drawing.Color.Black, Drawing.Color.White)
g.FillRectangle(br2, point1.X , point1.Y, RECT_WID2 , RECT_HGT2)


Thanks,