ColorLine with text?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
JHirsch
Newbie
Newbie
Posts: 16
Joined: Tue Jul 20, 2004 4:00 am
Location: USA

ColorLine with text?

Post by JHirsch » Wed Jul 21, 2004 1:15 pm

Hi,

I am trying to use a ColorLine to mark an event in a real-time chart that adds data (like a strip chart). This event needs to have text associated with the line and I can not seem to find a way to accomplish this simple task.

I've tried an Annotation but can't seem to link it to the position of the line.

Any suggesstions?

Jim

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jul 22, 2004 11:01 am

Hi Jim,

I've posted an VB:Net example into the steema.public.attachments newsgroup which show how to do this.

JHirsch
Newbie
Newbie
Posts: 16
Joined: Tue Jul 20, 2004 4:00 am
Location: USA

Post by JHirsch » Thu Jul 22, 2004 4:12 pm

Hi Pep,

I took a look at you sample and we (another developer and I) had looked at annotations but they have a flaw.

If you change your VB sample project so that the graph object is anchored to all four borders (Top, Left, Bottom, Right) and resize, the annotations do not stay with the line. Maximizing then minimizing has a similar behavior.

More event hooks are needed to make sure the annotations stay with the line.

Jim

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Tue Jul 27, 2004 12:01 pm

Hi Jim,
If you change your VB sample project so that the graph object is anchored to all four borders (Top, Left, Bottom, Right) and resize, the annotations do not stay with the line. Maximizing then minimizing has a similar behavior.
I'm afraid I can't reproduce this one here; could you please give me step-by-step instructions on how to do so with reference to Pep's test project?

Many thanks!
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

JHirsch
Newbie
Newbie
Posts: 16
Joined: Tue Jul 20, 2004 4:00 am
Location: USA

Post by JHirsch » Tue Jul 27, 2004 2:28 pm

Hi Chris,

1) Go to the Form1.vb Designer screen and change the Anchor to Top,Left,Bottom, Right.

2) Recompile and Run.

3) Put the line anywhere in the graph and move the mouse pointer straight up outside the graph area.

4) Resize the window and the text will not follow the series lines but does stick to the line.

5) Move the line within the graph again and move the mouse pointer out. This time click the maximize button.

6) Move the line again, move the mouse pointer out and then minimize the button. The labels are most usually not visible on my screen but will most certainly be off on any screen.

Thanks,
Jim

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Tue Jul 27, 2004 2:57 pm

Hi Jim,

I've posted a workaround to this issue to:
news://www.berneda.com/steema.public.attachments
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply