Page 1 of 1

On tchart control - getting a very bad thick line

Posted: Thu Jan 19, 2006 2:58 pm
by 6924718
I am using Teechart ProActiveX control V5 in my application. (plotting graph)

I am getting a very thick line that has a black stripe at top and a white stripe below it with the number '0' written at the head of the line.

This happens after I programatically add and subtract series to the graph. In other words - originally I have 3 series (plotting lines) on my graph. I remove a series and readd it several times. After about the third or fourth time of removing and readding - I get instead of a normal plotting line for 1 of the series - a very ugly fat line as mentioned above. What is happenning???

Posted: Thu Jan 19, 2006 3:29 pm
by narcis
Hi akiva,

Could you please send us an example we can run "as-is" to reproduce the problem here?

You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

Thanks in advance.

Posted: Thu Jan 19, 2006 4:34 pm
by 6924718
I am not able to send my attachment as I get a notice "no sender was specified". This is so though I am sending to steema.public.attachments. What am I doing wrong?

Posted: Fri Jan 20, 2006 9:11 am
by narcis
Hi akiva,

You just need to add www.steema.net as a news server in your newsreader with the default settings. This error may be because you didn't specify any user/sender information. If you want you can use any nick or fake e-mail address so that your real identity isn't disclosed.

Posted: Sun Jan 22, 2006 2:16 pm
by 6924718
I now posted it.

Posted: Mon Jan 23, 2006 8:54 am
by narcis
Hi akiva,

Thanks for the files: Would you be so kind to arrange a simple example we can run "as-is" to reproduce this problem here?

Thanks in advance.

Posted: Mon Jan 23, 2006 2:26 pm
by 6924718
Hi Narcis:
I posted 2 separate mails in the steema attachments since the files I am sending are large so it may take a short while.

I wrote this in the attachments also:


I am attaching 2 zip files (2 emails) due to the large size.
Copy the enclosed files to your C: directory. The exalt.exe should be put in the bin directory with most of the other files.

Copy the enclosed files from your C: directory.
You must register the 2 ocx files (Regsvr32 path_of_ocx_file)
DClick on Exalt.exe - always press cancel on the Installing dialog as Exalt is coming up. (you might have to press about 20 times.)
Click on the file icon in the upper left hand side - and select from the menu items - "Load Package".
Load the file config/For Narcis.pak.
Go to Upper left hand part of screen and make sure you are in Lab (is a button) - Watch (is a tab).
You should see a TeeChart time plot graph.
Go to the lower part of left side (Access Board). Press on Groups tab. Open tree to Virtual Modules/For Narcis/MsgType0/EU two.
Now just drag with your mouse from EU two to the graph. You will now see 2 EUs being displayed on graph.
RClick on the graph where you see the word "EU two" and select the menu item to delete it.
Repeat the last 2 steps about 5 times (dragging EU two to graph and then deleting it.)
You should see a big white streak for EU two. (this is simillar to what I was describing that I was getting for myself)

I think the problem is connected with you teechart function - RemoveSeries(m_euIndexToBeDeleted) as when I removed this line I did not get this
problem but of course I need to call this function for the chart to work properly.

Thanks,
Akiva

Posted: Wed Jan 25, 2006 11:49 am
by 6924718
Hi Narcis:
I had problems sending the files to you with steema.public.attachments so I used YouSendIt. Click on the following link below to retrieve the files.

.......................................

You can click on the following link to retrieve your file. The link will expire in 7 days
and will be available for a limited number of downloads.

All files For Narcis.zip (2770 KB)

This email was automatically generated, please do not reply to it.

If you have any questions, please email support@yousendit.com.

The YouSendIt Team

If your email client does not accept HTML, please use this link to download your file:
http://s44.yousendit.com/d.aspx?id=1XW9 ... I851JDO353

Posted: Wed Jan 25, 2006 1:09 pm
by narcis
Hi akiva,

Thanks for caring about that. I already downloaded the files but I have some problems following your steps.

I extracted your .zip file at C:\All files For Narcis\. I registered Tab32x30.ocx and didn't register TeeChart5.ocx as it was already registered on my machine. Then I try to run exalt.exe that can be found at C:\All files For Narcis\bin and I get the following error:
---------------------------
Exalt.exe - Unable To Locate Component
---------------------------
This application has failed to start because exc708ms.dll was not found. Re-installing the application may fix this problem.
---------------------------
OK
---------------------------
I didn't found that .dll on my hard drive. Could you please tell me what I'm missing or if I'm doing something wrongly?

BTW: I couldn't see any source code for that project in the .zip file you sent. If you don't want to disclose them you can send me a private message in the forums with the yousendit.com link to download them. Having the sources for the project would be very helpful to find out what is causing the problem.

Thanks in advance.

Posted: Wed Jan 25, 2006 5:13 pm
by 6924718
Hi Narcis:
I used YouSendIt again

http://s49.yousendit.com/d.aspx?id=3U2N ... OX8GAR3P69

Put all these files in your bin directory.
I also attached a cpp file - take a look especially at GraphicTimePlotChart::OnRemoveEUFromGraph().

- akiva

Posted: Wed Jan 25, 2006 5:23 pm
by 6924718
Hi Narcis again:

See my previous email in which I sent some more files via yousendit. I forgot 1 more dll file so I made another YouSendIt path.

http://s42.yousendit.com/d.aspx?id=3143 ... D1BU5VJXUL

thanks,
Akiva

Posted: Thu Jan 26, 2006 9:27 am
by narcis
Hi akiva,

Thank you very much for caring about that. Finally I could get your application working on my machine.

I've replied to your newsgroups message with a screen-shot of my tests. I could reproduce what you reported. What appears are the series marks. You could just force them not being visible by setting TChart1.Series(Index).Marks.Visible=False every time you do the operation that causes this problem. You could also do a loop to force that for each series on the chart.

Posted: Sun Jan 29, 2006 4:24 pm
by 6924718
thanks - that seemed to take care of it.

Posted: Mon Jan 30, 2006 10:05 am
by narcis
You're welcome. I'm glad to hear that solved the problem.