Search found 29 matches
- Tue Jan 04, 2011 8:07 pm
- Forum: VCL
- Topic: Possible to keep line on Chart drawn by Cursor Tool?
- Replies: 3
- Views: 6377
Re: Possible to keep line on Chart drawn by Cursor Tool?
>>you want only a vertical and an horizontal line to be drawn where you clicked into the chart? That's what I wanted, and your example was exactly what I needed. Thank you very much! By the way: If I deactivate the Cursor Tool in the MouseUp event, and then activate it in the MouseDown event, the li...
- Thu Dec 16, 2010 4:03 am
- Forum: VCL
- Topic: Possible to keep line on Chart drawn by Cursor Tool?
- Replies: 3
- Views: 6377
Possible to keep line on Chart drawn by Cursor Tool?
Hello, Regarding Cursor Tool set up like this: with Chart1.Tools.Add(TCursorTool) as TCursorTool do begin FollowMouse := True; ScopeStyle := scsEmpty; Pen.Visible := False; Series := Chart1[0]; //A series must be assigned to show cross hair with cursor tool. end; As you can see, the cross hair is no...
- Fri Dec 10, 2010 4:26 am
- Forum: VCL
- Topic: Access violation when clicking the Drag Point tool in the Te
- Replies: 6
- Views: 9259
Access violation when clicking the Drag Point tool in the Te
I get an Access violation when clicking the Drag Point tool in the TeeChart 2010 demo.
Just for your information.
Just for your information.
- Fri Dec 10, 2010 3:56 am
- Forum: VCL
- Topic: Conditional Color Axis Label Color
- Replies: 7
- Views: 10595
Re: Conditional Color Axis Label Color
Maybe this thread is relevant for you:
http://www.teechart.net/support/viewtop ... =3&t=11883
http://www.teechart.net/support/viewtop ... =3&t=11883
- Fri Dec 03, 2010 8:39 am
- Forum: VCL
- Topic: How to get YValue according to horiz. position of cursor?
- Replies: 9
- Views: 17479
Re: How to get YValue according to horiz. position of cursor?
I got it!!! I just used the Cursor Tool that I'm using anyway! with Chart1.Tools.Add(TCursorTool) as TCursorTool do begin FollowMouse := True; ScopeStyle := scsEmpty; Pen.Visible := False; Series := Chart1[0]; //A series must be assigned to show cross hair with cursor tool. Style := cssVertical; end...
- Thu Dec 02, 2010 12:48 pm
- Forum: VCL
- Topic: How to get YValue according to horiz. position of cursor?
- Replies: 9
- Views: 17479
Re: How to get YValue according to horiz. position of cursor?
Hi Yeray, I don't think that's the function I need, and it sounds like overkill to use a separate Tool in my case. I'm actually still pretty sure that I'm just missing one line of code. As discussed above: You wrote: >>You can also obtain the pixel for a determinate series' value, knowing it's index...
- Mon Nov 29, 2010 7:45 am
- Forum: VCL
- Topic: How to get YValue according to horiz. position of cursor?
- Replies: 9
- Views: 17479
Re: How to get YValue according to horiz. position of cursor?
Hi Yeray,
Thanks for that, but I don't want/need to interpolate the value between the points, just get the value closest to the cursor.
I'm pretty sure it is just a very simple line of code that I need to retrieve that index as described above, but which code?
Thanks for that, but I don't want/need to interpolate the value between the points, just get the value closest to the cursor.
I'm pretty sure it is just a very simple line of code that I need to retrieve that index as described above, but which code?
- Mon Nov 29, 2010 7:33 am
- Forum: VCL
- Topic: Charts don't draw when application receives focus
- Replies: 5
- Views: 7559
Re: Charts don't draw when application receives focus
TChart 2010, Labels and Repainting:
sounds like a problem I have (had) too...
http://www.teechart.net/support/viewtop ... =3&t=11873
sounds like a problem I have (had) too...
http://www.teechart.net/support/viewtop ... =3&t=11873
- Fri Nov 26, 2010 2:42 pm
- Forum: VCL
- Topic: How to get YValue according to horiz. position of cursor?
- Replies: 9
- Views: 17479
Re: How to get YValue according to horiz. position of cursor?
Hi Yeray, I think we misunderstand each other. As seen on the enclosed screen shot (from a measurement program I'm about to "copy") I want to get the YValue that is on the same horizontal position as the cursor, but not necessarily on the same vertical position. You wrote: >>You can also obtain the ...
- Fri Nov 26, 2010 10:18 am
- Forum: VCL
- Topic: Cross hair not drawn when labels are on Chart
- Replies: 9
- Views: 14419
Re: Cross hair not drawn when labels are on Chart
That seems to work, thanks!
- Fri Nov 26, 2010 9:58 am
- Forum: VCL
- Topic: Cross hair not drawn when labels are on Chart
- Replies: 9
- Views: 14419
Re: Cross hair not drawn when labels are on Chart
Hi Yeray,
OK, but please note that Repaint and Refresh don't solve the problem completely, see my previous post.
Do you happen to be able to help me out with my newest post in this forum regarding retrieving YValues?
OK, but please note that Repaint and Refresh don't solve the problem completely, see my previous post.
Do you happen to be able to help me out with my newest post in this forum regarding retrieving YValues?
- Thu Nov 25, 2010 10:51 pm
- Forum: VCL
- Topic: How to get YValue according to horiz. position of cursor?
- Replies: 9
- Views: 17479
How to get YValue according to horiz. position of cursor?
Hello all, I give up, after way too long time searching for a solution on my quite simple task! With this code tmpX, tmpY: Double; Chart1[0].GetCursorValues(tmpX, tmpY); I get the actual values under the mouse cursor, even though no series values are present under the cursor. But how do I get the YV...
- Thu Nov 25, 2010 5:02 pm
- Forum: VCL
- Topic: Cross hair not drawn when labels are on Chart
- Replies: 9
- Views: 14419
Re: Cross hair not drawn when labels are on Chart
By adding the line
Chart1.Repaint;
or
Chart1.Refresh;
at the end of the MouseMove event the cross hair gets redrawn, but then it draws on top of the label.
This is not the case when using the line
Chart1.Title.Text.Text := FloatToStr(Round(tmpX));
Chart1.Repaint;
or
Chart1.Refresh;
at the end of the MouseMove event the cross hair gets redrawn, but then it draws on top of the label.
This is not the case when using the line
Chart1.Title.Text.Text := FloatToStr(Round(tmpX));
- Thu Nov 25, 2010 4:39 pm
- Forum: VCL
- Topic: Cross hair not drawn when labels are on Chart
- Replies: 9
- Views: 14419
Re: Cross hair not drawn when labels are on Chart
I use the latest version. Downloaded yesterday
If you delete the line:
Chart1.Title.Text.Text:=FloatToStr(Round(tmpX));
you should also see the problem.
If you delete the line:
Chart1.Title.Text.Text:=FloatToStr(Round(tmpX));
you should also see the problem.
- Thu Nov 25, 2010 1:46 pm
- Forum: VCL
- Topic: Cross hair not drawn when labels are on Chart
- Replies: 9
- Views: 14419
Re: Cross hair not drawn when labels are on Chart
Hi, I didn't know that function, thanks for that! Anyway, the problem seems to be here too. Put a label to a new Chart, and add this code: procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); var tmpX, tmpY: Double; begin Chart1[0].GetCursorValues(tmpX, tmpY); Label1...