Search found 11 matches

by newbie
Thu Dec 01, 2011 11:46 pm
Forum: .NET
Topic: BeforeDraw and CalcPosValue
Replies: 6
Views: 6010

Re: BeforeDraw and CalcPosValue

Hello Sandra,

Thanks, BeforeDrawAxes is better. Only the limiting lines of the chart area are overpainted and the legend.

So at the end of BeforeDrawAxes I force the legend to paint again, and I also draw the lines again inside this method.

Newbie
by newbie
Wed Nov 30, 2011 10:07 pm
Forum: .NET
Topic: BeforeDraw and CalcPosValue
Replies: 6
Views: 6010

Re: BeforeDraw and CalcPosValue

Hi there, I have a workaround, but it involves the chart to be drawn twice. I still hope for a better solution Dim TChart1_x As Integer, TChart1_y As Integer, TChart1_w As Integer, TChart1_h As Integer Private Sub TChart1_BeforeDrawSeries(ByVal sender As Object, ByVal g As Steema.TeeChart.Drawing.Gr...
by newbie
Wed Nov 30, 2011 6:29 pm
Forum: .NET
Topic: BeforeDraw and CalcPosValue
Replies: 6
Views: 6010

Re: BeforeDraw and CalcPosValue

Hi Sandra, thanks for your answer, I tested your proposal, but it does not do the job. It will be drawn only if there is a point in the series, and the Rectangles are drawn in front of the chart. I want to have it in the background, behind the axes and all chart areas. And it should be drawn also on...
by newbie
Mon Nov 28, 2011 10:38 pm
Forum: .NET
Topic: BeforeDraw and CalcPosValue
Replies: 6
Views: 6010

BeforeDraw and CalcPosValue

Hello, I use TeeChart.NET 2.0.3309.32489 and want to display an rectangle at a certain position in the background. I use scrolling and zooming. Private Sub TChart1_BeforeDraw(ByVal sender As Object, ByVal g As Steema.TeeChart.Drawing.Graphics3D) Handles TChart1.BeforeDraw Dim x As Integer = TChart1....
by newbie
Thu Oct 06, 2011 7:37 pm
Forum: .NET
Topic: Error at Styles.Series.GetLanguageSpecificTitle()
Replies: 6
Views: 5872

Re: Error at Styles.Series.GetLanguageSpecificTitle()

Hello Sandra, thanks for your effort, building an example. The example works. So obviously there is something in my project, which causes the trouble. There is a ApplicationEvent, which Handles Me.Startup which is called before the New sub of the Form and there is a SplashScreen as well. I give up f...
by newbie
Wed Oct 05, 2011 8:53 pm
Forum: .NET
Topic: Error at Styles.Series.GetLanguageSpecificTitle()
Replies: 6
Views: 5872

Work around

Hello, I found another way to have a user defined Series and want to share this: Public Class frmMain Dim a As ImagePoint Public Sub New() InitializeComponent() a = New ImagePoint(TChart1.Chart, Project1.My.Resources.imageGif, "desc") TChart1.Series.Add(a) 'connect to the TChart here End Sub ... End...
by newbie
Wed Oct 05, 2011 8:48 pm
Forum: .NET
Topic: Error at Styles.Series.GetLanguageSpecificTitle()
Replies: 6
Views: 5872

Re: Error at Styles.Series.GetLanguageSpecificTitle()

Hello Sandra, thanks for following up. Actually it should work with a single TChart in a Windows Form. I have reduced the code as much as I could: Public Class frmMain Dim a As ImagePoint Public Sub New() InitializeComponent() a = New ImagePoint(TChart1.Chart, Project1.My.Resources.imageGif, "desc")...
by newbie
Tue Oct 04, 2011 10:00 pm
Forum: .NET
Topic: Error at Styles.Series.GetLanguageSpecificTitle()
Replies: 6
Views: 5872

Error at Styles.Series.GetLanguageSpecificTitle()

Hello, I'm working on an older project with VS2011, VB.NET and Steema Chart 2.0.3309.32489 I want to use the custom Pointer Styles, and used an example from the forum in C# as draft. But I get an error System.InvalidOperationException was unhandled Message=An error occurred creating the form. See Ex...
by newbie
Thu Apr 13, 2006 5:41 pm
Forum: .NET
Topic: Change shapestyle using VB.Net
Replies: 4
Views: 4341

Works great. Thanks!
by newbie
Wed Apr 12, 2006 5:18 pm
Forum: .NET
Topic: Change shapestyle using VB.Net
Replies: 4
Views: 4341

Thanks for the quick reply. I tried that, but the error I'm getting at run time is:

Unable to to cast object of type 'Steema.TeeChart.Styles.Points' to type 'Steema.TeeChart.Styles.Shape'

I'm adding the points like this:

defectPoints(i) = New Steema.TeeChart.Styles.Points(tchart.Chart)
by newbie
Tue Apr 11, 2006 6:06 pm
Forum: .NET
Topic: Change shapestyle using VB.Net
Replies: 4
Views: 4341

Change shapestyle using VB.Net

Is there an VB.net equivalent for the following C# post? Using CType causes a runtime crash.

private void Button1_Click(object sender, System.EventArgs e)
{
(WebChart1.Chart.Series[0] as Steema.TeeChart.Styles.Shape).Style = Steema.TeeChart.Styles.ShapeStyles.Rectangle;
}