Search found 8 matches

by n00b
Thu Apr 08, 2010 1:02 am
Forum: ActiveX
Topic: Invalid class typecast
Replies: 5
Views: 7166

Re: Invalid class typecast

Thanks figured it out but won't be using it for my implementation.

For those interested, the code in c++ is:

Code: Select all

myChart1.GetCanvas().SetUseAntiAlias(TRUE);
by n00b
Wed Apr 07, 2010 12:52 am
Forum: ActiveX
Topic: Invalid class typecast
Replies: 5
Views: 7166

Re: Invalid class typecast

I registered the new ocx but am still receiving the error. I'm beginning to think that I'm calling the wrong methods for what I'm trying to do so I'll back up a little. On the TChart Editor there is a little check box on the bottom left hand corner called "Smooth". When I click that it seems to smoo...
by n00b
Wed Apr 07, 2010 12:01 am
Forum: ActiveX
Topic: Invalid class typecast
Replies: 5
Views: 7166

Re: Invalid class typecast

Hi Narcis.

I just checked and our version of TeeChart Pro is v8.0.0.7. I'm downloading the new version and will post my results afterwards.
by n00b
Thu Apr 01, 2010 6:09 am
Forum: ActiveX
Topic: Invalid class typecast
Replies: 5
Views: 7166

Invalid class typecast

I'm getting an error when I try to smooth the series. I'm coding in C++ and I'm trying to smooth via the following:

Code: Select all

m_wndChart.Series(SeriesIndex).GetAsContour().GetSmoothing().SetActive(TRUE);
When I add this line of code in my program, it crashes with the error shown in the attachment.
by n00b
Wed Mar 24, 2010 4:44 am
Forum: ActiveX
Topic: New line in the header caption
Replies: 4
Views: 5856

Re: New line in the header caption

That worked perfectly!

Thanks Yeray!
by n00b
Sun Mar 21, 2010 11:41 pm
Forum: ActiveX
Topic: New line in the header caption
Replies: 4
Views: 5856

Re: New line in the header caption

Hi Yeray, I'm coding this in C++. I would have thought that \n would have been the equivalent of VBs vbNewLine but it doesn't seem to work. CString sHeader = "First Line" + "\nSecond Line"; m_wndChart.GetHeader().SetCaption(sHeader); That will come out as First LineSecond Line instead of: First Line...
by n00b
Thu Mar 18, 2010 12:27 am
Forum: ActiveX
Topic: New line in the header caption
Replies: 4
Views: 5856

New line in the header caption

We're using TeeChart in conjunction with user selectable filters. My boss wants to print the filters as part of the heading or a subheading so that users can easily see what filters are being applied. Seeing that there aren't any sub-headings, I'm trying to display the filters underneath the main he...
by n00b
Mon Dec 14, 2009 3:34 am
Forum: ActiveX
Topic: Bug when using paging?
Replies: 2
Views: 5573

Bug when using paging?

I'm adding 2 series to the chart - a bar and line series. I've also enabled paging so I can scroll through the data. I've noticed that when the last page only has 1 data item (e.g. 21 items with 10 items per page would mean the third page only has 1 item on it) then the values for ALL the columns ap...