BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tee-Chart 5: snap TCursorTool to horizontal movements only

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Andrea Krammer
Guest





PostPosted: Fri Feb 18, 2005 12:35 pm    Post subject: Tee-Chart 5: snap TCursorTool to horizontal movements only Reply with quote



Hello Newsgroup!

I have a copy of Tee-Chart 5 (Delphi 5) and found myself to be stuck with
the following problem:

I want my cursor to follow the mouse and snap to a series of my line chart
(which it does), but it should not react on vertical movements of the mouse,
instead to horizontal movements only. So, when I move the mouse from left to
right, the cursor should move, if I move the mouse up and down, it should
stay where it is.

I thought there has to be a way to calculate the coordinates of the
series-point with the one horizontal value next to the horizontal value of
the current mouse position. In other words... there has to be a way to find
a proper series point with just the horizontal mouse position (granted,
there is ONLY one possible point in my chart per horizontal or vertical
position). In addition, I need the values of this particular series-point
for some calculation while the mouse is moving.

Uhm, confusing? I hope you can get my point...

Actually, the F1-help is not helping much as I find all that calcXBlah
calculates the value of whatever very confusing.

So please, rescue my professional life and help me with this life-threating
and hair-loss-causing problem!

Any advice is greatly appreciated.

Thank you a lot!
Andrea


Back to top
Narcís Calvet
Guest





PostPosted: Fri Feb 18, 2005 1:53 pm    Post subject: Re: Tee-Chart 5: snap TCursorTool to horizontal movements on Reply with quote



Hello Andrea,

To have a TCursorTool behave as you reported you just have to use the code
below or can be also done using the chart editor. Setting the style to
vertical makes the tool sensible to horizontal movements only.

With ChartTool1 do
begin
Series:=Series1;
Snap:=True;
FollowMouse:=true;
Style:=cssVertical;
end;

--
Best Regards,

Narcís Calvet
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."



"Andrea Krammer" <kegel14 (AT) gmx (DOT) net> wrote

Quote:
Hello Newsgroup!

I have a copy of Tee-Chart 5 (Delphi 5) and found myself to be stuck with
the following problem:

I want my cursor to follow the mouse and snap to a series of my line chart
(which it does), but it should not react on vertical movements of the
mouse,
instead to horizontal movements only. So, when I move the mouse from left
to
right, the cursor should move, if I move the mouse up and down, it should
stay where it is.

I thought there has to be a way to calculate the coordinates of the
series-point with the one horizontal value next to the horizontal value of
the current mouse position. In other words... there has to be a way to
find
a proper series point with just the horizontal mouse position (granted,
there is ONLY one possible point in my chart per horizontal or vertical
position). In addition, I need the values of this particular series-point
for some calculation while the mouse is moving.

Uhm, confusing? I hope you can get my point...

Actually, the F1-help is not helping much as I find all that calcXBlah
calculates the value of whatever very confusing.

So please, rescue my professional life and help me with this
life-threating
and hair-loss-causing problem!

Any advice is greatly appreciated.

Thank you a lot!
Andrea





Back to top
Andrea Krammer
Guest





PostPosted: Fri Feb 18, 2005 4:31 pm    Post subject: Re: Tee-Chart 5: snap TCursorTool to horizontal movements on Reply with quote



Thank you so much for your kind support, Narcís, I'll try this as soon as
soon as I'm in the office again!

Andrea


"Narcís Calvet" <support (AT) steema (DOT) com> schrieb im Newsbeitrag
news:4215f334 (AT) newsgroups (DOT) borland.com...
Quote:
Hello Andrea,

To have a TCursorTool behave as you reported you just have to use the code
below or can be also done using the chart editor. Setting the style to
vertical makes the tool sensible to horizontal movements only.

With ChartTool1 do
begin
Series:=Series1;
Snap:=True;
FollowMouse:=true;
Style:=cssVertical;
end;

--
Best Regards,

Narcís Calvet
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post
your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."



"Andrea Krammer" <kegel14 (AT) gmx (DOT) net> wrote in message
news:4215e11d$1 (AT) newsgroups (DOT) borland.com...
Hello Newsgroup!

I have a copy of Tee-Chart 5 (Delphi 5) and found myself to be stuck
with
the following problem:

I want my cursor to follow the mouse and snap to a series of my line
chart
(which it does), but it should not react on vertical movements of the
mouse,
instead to horizontal movements only. So, when I move the mouse from
left
to
right, the cursor should move, if I move the mouse up and down, it
should
stay where it is.

I thought there has to be a way to calculate the coordinates of the
series-point with the one horizontal value next to the horizontal value
of
the current mouse position. In other words... there has to be a way to
find
a proper series point with just the horizontal mouse position (granted,
there is ONLY one possible point in my chart per horizontal or vertical
position). In addition, I need the values of this particular
series-point
for some calculation while the mouse is moving.

Uhm, confusing? I hope you can get my point...

Actually, the F1-help is not helping much as I find all that calcXBlah
calculates the value of whatever very confusing.

So please, rescue my professional life and help me with this
life-threating
and hair-loss-causing problem!

Any advice is greatly appreciated.

Thank you a lot!
Andrea







Back to top
Andrea Krammer
Guest





PostPosted: Mon Feb 21, 2005 7:08 am    Post subject: Re: Tee-Chart 5: snap TCursorTool to horizontal movements on Reply with quote

Now I've tried what you told me. This works, but shows only the vertical
part of the cursor. I want the cursor to be a true cursor, with both a
vertical and a horizontal axis, which only reacts on horizontal movements.

Is there a possibility to... well... programmatically show the vertical line
of the cursor through the point of intersection of series and horizontal
cursor?

Andrea


"Andrea Krammer" <kegel14 (AT) gmx (DOT) net> schrieb im Newsbeitrag
news:42161835$1 (AT) newsgroups (DOT) borland.com...
Quote:
Thank you so much for your kind support, Narcís, I'll try this as soon as
soon as I'm in the office again!

Andrea


"Narcís Calvet" <support (AT) steema (DOT) com> schrieb im Newsbeitrag
news:4215f334 (AT) newsgroups (DOT) borland.com...
Hello Andrea,

To have a TCursorTool behave as you reported you just have to use the
code
below or can be also done using the chart editor. Setting the style to
vertical makes the tool sensible to horizontal movements only.

With ChartTool1 do
begin
Series:=Series1;
Snap:=True;
FollowMouse:=true;
Style:=cssVertical;
end;

--
Best Regards,

Narcís Calvet
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post
your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."



"Andrea Krammer" <kegel14 (AT) gmx (DOT) net> wrote in message
news:4215e11d$1 (AT) newsgroups (DOT) borland.com...
Hello Newsgroup!

I have a copy of Tee-Chart 5 (Delphi 5) and found myself to be stuck
with
the following problem:

I want my cursor to follow the mouse and snap to a series of my line
chart
(which it does), but it should not react on vertical movements of the
mouse,
instead to horizontal movements only. So, when I move the mouse from
left
to
right, the cursor should move, if I move the mouse up and down, it
should
stay where it is.

I thought there has to be a way to calculate the coordinates of the
series-point with the one horizontal value next to the horizontal value
of
the current mouse position. In other words... there has to be a way to
find
a proper series point with just the horizontal mouse position (granted,
there is ONLY one possible point in my chart per horizontal or vertical
position). In addition, I need the values of this particular
series-point
for some calculation while the mouse is moving.

Uhm, confusing? I hope you can get my point...

Actually, the F1-help is not helping much as I find all that calcXBlah
calculates the value of whatever very confusing.

So please, rescue my professional life and help me with this
life-threating
and hair-loss-causing problem!

Any advice is greatly appreciated.

Thank you a lot!
Andrea









Back to top
Andrea Krammer
Guest





PostPosted: Mon Feb 21, 2005 10:37 am    Post subject: Re: Tee-Chart 5: snap TCursorTool to horizontal movements on Reply with quote

Problem solved. Thanks a lot!

"Andrea Krammer" <kegel14 (AT) gmx (DOT) net> schrieb im Newsbeitrag
news:4219890c (AT) newsgroups (DOT) borland.com...
Quote:
Now I've tried what you told me. This works, but shows only the vertical
part of the cursor. I want the cursor to be a true cursor, with both a
vertical and a horizontal axis, which only reacts on horizontal movements.

Is there a possibility to... well... programmatically show the vertical
line of the cursor through the point of intersection of series and
horizontal cursor?

Andrea


"Andrea Krammer" <kegel14 (AT) gmx (DOT) net> schrieb im Newsbeitrag
news:42161835$1 (AT) newsgroups (DOT) borland.com...
Thank you so much for your kind support, Narcís, I'll try this as soon as
soon as I'm in the office again!

Andrea


"Narcís Calvet" <support (AT) steema (DOT) com> schrieb im Newsbeitrag
news:4215f334 (AT) newsgroups (DOT) borland.com...
Hello Andrea,

To have a TCursorTool behave as you reported you just have to use the
code
below or can be also done using the chart editor. Setting the style to
vertical makes the tool sensible to horizontal movements only.

With ChartTool1 do
begin
Series:=Series1;
Snap:=True;
FollowMouse:=true;
Style:=cssVertical;
end;

--
Best Regards,

Narcís Calvet
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post
your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."



"Andrea Krammer" <kegel14 (AT) gmx (DOT) net> wrote in message
news:4215e11d$1 (AT) newsgroups (DOT) borland.com...
Hello Newsgroup!

I have a copy of Tee-Chart 5 (Delphi 5) and found myself to be stuck
with
the following problem:

I want my cursor to follow the mouse and snap to a series of my line
chart
(which it does), but it should not react on vertical movements of the
mouse,
instead to horizontal movements only. So, when I move the mouse from
left
to
right, the cursor should move, if I move the mouse up and down, it
should
stay where it is.

I thought there has to be a way to calculate the coordinates of the
series-point with the one horizontal value next to the horizontal
value
of
the current mouse position. In other words... there has to be a way to
find
a proper series point with just the horizontal mouse position
(granted,
there is ONLY one possible point in my chart per horizontal or
vertical
position). In addition, I need the values of this particular
series-point
for some calculation while the mouse is moving.

Uhm, confusing? I hope you can get my point...

Actually, the F1-help is not helping much as I find all that calcXBlah
calculates the value of whatever very confusing.

So please, rescue my professional life and help me with this
life-threating
and hair-loss-causing problem!

Any advice is greatly appreciated.

Thank you a lot!
Andrea











Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.