Search found 15 matches

by John P. Francis
Fri Mar 30, 2007 3:12 pm
Forum: ActiveX
Topic: Setting X-Y Values and Coloring individual points in a point
Replies: 5
Views: 7839

Thanks for the C++ version

That works just fine, thanks john
by John P. Francis
Thu Mar 29, 2007 5:05 pm
Forum: ActiveX
Topic: Setting X-Y Values and Coloring individual points in a point
Replies: 5
Views: 7839

But I'm not sure of Color each in C++?

There doesn't seem to be a function like:

m_Chart.Series( series_index ).GetPointColor().SetColor( RGB(0,255,0));
:shock:
by John P. Francis
Thu Mar 29, 2007 4:47 pm
Forum: ActiveX
Topic: Setting X-Y Values and Coloring individual points in a point
Replies: 5
Views: 7839

What you mean for us C++ weenies is:

m_Chart.Series( series_index ).GetXValues().SetValue( point_index, double_value);
by John P. Francis
Thu Mar 29, 2007 12:12 am
Forum: ActiveX
Topic: Setting X-Y Values and Coloring individual points in a point
Replies: 5
Views: 7839

Setting X-Y Values and Coloring individual points in a point

I think I've asked this question before, but cannot find the answer on how to re-color a point in a point series and how to move the point to a new x-y value location.

Thanks
by John P. Francis
Fri Feb 16, 2007 1:29 am
Forum: ActiveX
Topic: Traping Access violations from TeeChart7.ocx
Replies: 1
Views: 4452

Traping Access violations from TeeChart7.ocx

When I load a few thousand data points thens are OK, but if a push 10K or 30K at a time I get: "Access violation at address 504D8251 in module 'TeeChart7.ocx'. Read of address 058A5860." Is there a mechanism to trap the error with a try ... catch or get a message from the ocx as to what went wrong? ...
by John P. Francis
Tue Feb 13, 2007 4:19 pm
Forum: ActiveX
Topic: ValueList Count(xxx) greater than the array ...
Replies: 6
Views: 8833

Do you mean OnGetSeriesPointerStyle?

I could not find OnGetPointerStlye, but maybe is it OnGetSeriesPointerStyle which is number 33. If so, what funstion signature do I use? such as: ON_EVENT(CCelulatorView, IDC_TCHART1, 21, /* OnMouseUp */ OnMouseUpChart, VTS_I4 VTS_I4 VTS_I4 VTS_I4) then... void CCelulatorView::OnMouseUpChart(long Bu...
by John P. Francis
Tue Feb 13, 2007 4:04 pm
Forum: ActiveX
Topic: ValueList Count(xxx) greater than the array ...
Replies: 6
Views: 8833

I'll try and cook up a small example, also ...

Do you have an example of using OnGetPointerStyle?
by John P. Francis
Tue Feb 13, 2007 2:17 am
Forum: ActiveX
Topic: ValueList Count(xxx) greater than the array ...
Replies: 6
Views: 8833

Error in AddArray, make points individually visible or not-

It is not practical to send an example.

On a related subject is it possible to make individual points visible and not-visible by knowing their index in the point-series?

Thanks
by John P. Francis
Tue Feb 13, 2007 1:35 am
Forum: ActiveX
Topic: Performance of Line and Point series
Replies: 14
Views: 21317

This is the same problem I've had for months ...

Could I get a copy?
by John P. Francis
Tue Feb 06, 2007 12:11 am
Forum: ActiveX
Topic: ValueList Count(xxx) greater than the array ...
Replies: 6
Views: 8833

ValueList Count(xxx) greater than the array ...

ValueList Count(xxx) greater than the array length(0). D:\Steema\Root\TeeChartVCL\Sources7\TeEngine.pas, line 5316) I do not have the source code, so how am I to debug this. I think that it is related to this line: m_pChart->Series(PointPlotRedIdx). AddArray( RedPointCount, m_YValuesRed, m_XValuesRe...
by John P. Francis
Fri Dec 15, 2006 6:35 pm
Forum: ActiveX
Topic: Where to get a complete list of ActiveX Message-Event Values
Replies: 2
Views: 5124

Thanks for the list.

IDs ITChartEvents 1 OnAfterDraw 29 OnBeforeDrawSeries 30 OnBeforeDrawAxes 3 OnClick 4 OnClickAxis 5 OnClickBackground 6 OnClickLegend 7 OnClickSeries 8 OnDblClick 9 OnDragDrop 10 OnDragOver 11 OnEndDrag 12 OnEnter 13 OnExit 14 OnGetAxisLabel 16 OnGetLegendRect 18 OnGetNextAxisLabel 19 OnMouseDown 20...
by John P. Francis
Mon Dec 11, 2006 8:01 pm
Forum: ActiveX
Topic: Where to get a complete list of ActiveX Message-Event Values
Replies: 2
Views: 5124

Where to get a complete list of ActiveX Message-Event Values

When I write my BEGIN_EVENTSINK_MAP stuff, where can I get a list of the other indexes, such as 1 is for OnAfterDraw ... what is the index for OnBeforeDraw ??? BEGIN_EVENTSINK_MAP(CCelulatorView, CFormView) //{{AFX_EVENTSINK_MAP(CTigerMFCDlg) ON_EVENT(CCelulatorView, IDC_TCHART1, 1 /* OnAfterDraw */...
by John P. Francis
Mon Dec 11, 2006 7:57 pm
Forum: ActiveX
Topic: App kept crashing with access violation!!!!
Replies: 13
Views: 21256

Update after Exception

Yes, things should be ok ...

But If the OleSafeArray is the problem, maybe not. I've not really found any really good info on OleSafeArray, but where it is created and updated, ie scope and thread, is very important. I usually keep it within the process and I do not pass it around.
by John P. Francis
Tue Dec 05, 2006 5:24 pm
Forum: ActiveX
Topic: App kept crashing with access violation!!!!
Replies: 13
Views: 21256

Increasing the Size of a safe Array & Exception Handling

// Code Snipit for increasing COleSafeArray XValues; COleSafeArray YValues; long MaxPlotPoints;[/code] ... // Initial Creating, somewhere in init_foo() XValues.Create(VT_R8, 1, &MaxPlotPoints ); YValues.Create(VT_R8, 1, &MaxPlotPoints ); ... // Resize function BOOL CMojoClass::CheckSafeArraySize(voi...
by John P. Francis
Mon Dec 04, 2006 9:16 pm
Forum: ActiveX
Topic: App kept crashing with access violation!!!!
Replies: 13
Views: 21256

ActiveX Memory Error

Had the same problem, mainly with large ( greater than 20,000 data points). Two parts, first is you need to use AddArray plus make the allocation larger than you need for the ole-safe-array. Second, so that the chart-ocx can handle the large array, fill the array with random data when you initialize...