I can't seem to work out how to apply a custom colour pallette to a contour type series, can anyone help?

Thanks
Dave
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
Steema.TeeChart.Styles.Contour contour1 = new Steema.TeeChart.Styles.Contour(tChart1.Chart);
contour1.FillSampleValues();
Steema.TeeChart.Tools.CursorTool cursor1 = new Steema.TeeChart.Tools.CursorTool(tChart1.Chart);
cursor1.Series = contour1;
cursor1.FollowMouse = true;
}
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Yes, this is quite a strange known issue for which we haven't found a solution so far. You can solve this problem setting cursor's XValue again after setting YValue, for example:1: Notice that on startup it sets the cursor position to 10,10
cursor1.XValue = 10;
cursor1.YValue = 10;
However you can see that one of the cursors stays at 0.
Code: Select all
cursor1.XValue = 10;
cursor1.YValue = 10;
cursor1.XValue = 10;
2: The text boxes show the cursor positions and you can see that the cursors Z position isnt changing.
Code: Select all
Steema.TeeChart.Tools.CursorChangeEventArgs e) {
double diff;
xTB.Text = contour1.XValues[cursor1.NearestPoint(Steema.TeeChart.Tools.CursorToolStyles.Both, out diff)].ToString();
//zTB.Text = contour1.ZValues[cursor1.NearestPoint(Steema.TeeChart.Tools.CursorToolStyles.Both, out diff)].ToString();
zTB.Text = contour1.ZValues[e.ValueIndex].ToString();
yTB.Text = contour1.YValues[cursor1.NearestPoint(Steema.TeeChart.Tools.CursorToolStyles.Both, out diff)].ToString();
}
You can do this:I would also like to use the FastCursor option, but how do I change what colour the cursor lines are?
Code: Select all
cursor1.FastCursor = true;
cursor1.Pen.Color = Color.Red;
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Not that I can think of at the moment.Is there no way to get the cursor working at the moment on a contour?
I'm not able to give you an estimate date at the present moment. I recommend you to be aware at this forum or subscribe to our RSS news feed for new release announcements and what's being fixed and implemented on them.If not how quickly can we expect a fix as being able to use it is a hard requirement of the project I am working on?
Code: Select all
void tChart1_MouseMove(object sender, MouseEventArgs e)
{
index = contour1.Clicked(e.X, e.Y);
this.Text = index.ToString();
if (index != -1)
{
zTB.Text = contour1.ZValues[index].ToString();
}
}
void cursor1_Change(object sender, Steema.TeeChart.Tools.CursorChangeEventArgs e) {
double diff;
xTB.Text = contour1.XValues[cursor1.NearestPoint(Steema.TeeChart.Tools.CursorToolStyles.Both, out diff)].ToString();
//zTB.Text = contour1.ZValues[cursor1.NearestPoint(Steema.TeeChart.Tools.CursorToolStyles.Both, out diff)].ToString();
yTB.Text = contour1.YValues[cursor1.NearestPoint(Steema.TeeChart.Tools.CursorToolStyles.Both, out diff)].ToString();
}
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Sorry, I missed that one.What about the cursor colour problem illustrated in the fullExample.zip file?
Code: Select all
penXOR = -1 ^ Pen.Color.ToArgb();
Code: Select all
ControlPaint.DrawReversibleLine(start, end, Color.FromArgb(penXOR));
Code: Select all
mainChart.Clear();
mainChart.Aspect.View3D = false;
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Code: Select all
mainChart.Walls.Back.Gradient.Visible = false;
mainChart.Walls.Back.Color = Color.LightGray;
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |