|
Use the lib and dll of debug version.
It will remove the crash of dialog based App in debug mode.
|
|
|
|
|
Hi,everyone:
Recently, I use this control to do some project. I find a problem in the function OnPaint() in XGraph.cpp. When OnPaint() do DoubleBuffer , it only draw everything in the memory, at last not draw it back to the CPaint. Sow when you put the source code into your project, you can find that drawed lines can't be shown.
The source code is in void CXGraph::OnPaint(). I do it like this:
//Added By Paul_Yang 2006-7-10
if (m_bDoubleBuffer) {
pdc->BitBlt(clRect.left, clRect.top, clRect.Width(),
clRect.Height(), pDC, clRect.left,
clRect.top, SRCCOPY);
}
//End Added
pDC->RestoreDC(nSaveDC);//Line at 1111 in original source code
pDC->Detach();
delete pDC;
if (pmdc)
delete pmdc;
delete pdc;
|
|
|
|
|
i made a some project with VC6.0. But "OnLButtonDblClk " do not work? would anyone meet the same position? My english is not very good.
I am a chinese.
|
|
|
|
|
when I fill x-y with following values and show markers,I found marker are not match with the curve, why?
1170 1.000
1105 1.700
1075 2.200
1040 3.300
1000 4.200
990 5.100
985 5.800
1000 7.000
1010 8.700
1012 10.400
1025 12.100
1040 13.900
1020 15.700
1010 17.000
1010 18.300
1000 19.500
920 23.800
830 34.200
|
|
|
|
|
by a detail description, the second point's marker is not on the curve.
|
|
|
|
|
1. if the adjacent datas has tiny differences, some same data marks will be shown on axis;
2. when there is no curve in client, double click the client to call the property dialog may cause a exception, the exception is thrown by "XGraphAxis& CXGraph::GetYAxis(int nAxis)[XGRAPH.cpp Line 298]". i add a test(&& static_cast<int>(m_YAxis.size())>0) before calling the property dialog in function CheckObjectSelection(line 1621 XGRAPH.cpp) as temporary countermeasure, does anybody have a perfecct solution?
a public member function ShowCurve(SW_SHOW/SW_HIDE) may be usefull when there are many curves shown in the same chart.
3. some windows over the chart such as SAVE AS dialog appear in the bitmap which is created by function BOOL CXGraph::SaveBitmap( const CString cFile )
-- modified at 23:16 Sunday 4th June, 2006
|
|
|
|
|
I cannot run the compiled graph projec because I'm missing
xgraph10d.dll but it doesn't come in the zip files.
Can anyone help?
Thanks very much
|
|
|
|
|
build the source project ,then you get it
|
|
|
|
|
No we don't get it with a build !
BL
|
|
|
|
|
To build XGraph10.dll XGraph10.lib XGraph10d.dll XGraph10d.lib you must download "Source code" but not "Demo Project".
In debug configuration you must modify cpp file settings to "Automatic use of precompiled headers" like in Release configuration.
And you will have you dll and lib files.
I spent a lot of time to find it...
|
|
|
|
|
Hi,
In my project, I need the time format X-lable support(HH:MM:SS.SSS format). I believe this is also demanded in your projects. Do you have any good solution to make it in this charting control?
Based-on this function I can view some data trends vs time. Also it is a good solution to make data analysis charting by time.
Thanks!
Sam
|
|
|
|
|
There appears to be a undefined resource in the DLL "IDC_CBFILLCURVE" is used in CCurveDlg, but there is no actual resource assigned to it.
To fix the I created a combo box in IDD_CURVE, this seems to allow the debug version to run fine.
I have also found a bug in the cursor code the if can move off the end of
the data causing it to lock.
By the way, great code, well worth the small effort to find this.
There is also a small problem in the build file.
I can post the fixes once I have tested them a little more.
Nick
-- modified at 21:14 Friday 14th April, 2006
|
|
|
|
|
---------------------------
XGraphTest.exe - 无法找到入口
---------------------------
无法定位程序输入点 ?
//can not locate the entry of the programme
SetColorRange@CXGraphAxis@@QAEXHNNKKVCString@@I@Z 于动态链接库 XGRAPH10.dll 上。
//dynamic libary XGRAPH10.dll
---------------------------
ok
---------------------------
when compile the src\release , there is no error,
but we use the just build XGRAPH10.dll to be used by demo\XGraphTest.exe error message displayed like above.
what wrong ?
supportyou
|
|
|
|
|
---------------------------
XGraphTest.exe - 无法找到入口
---------------------------
无法定位程序输入点 ?
//can not locate the entry of the programme
SetColorRange@CXGraphAxis@@QAEXHNNKKVCString@@I@Z 于动态链接库 XGRAPH10.dll 上。
//dynamic libary XGRAPH10.dll
---------------------------
ok
---------------------------
when compile the src\release , there is no error,
but we use the just build XGRAPH10.dll to be used by demo\XGraphTest.exe error message displayed like above.
what wrong ?
supportyou
|
|
|
|
|
Hi everyone,
I'm trying to use the autoscale feature of CXGraph Class. I don't think it's working properly so I'm posting my code. If you find an error, please tell me.
Here's my code :
<br />
m_Values[0][0].fXVal = 1;<br />
m_Values[0][0].fYVal = mVectLightData[mIndexChosenMotes].LightMax;<br />
<br />
m_Values[0][1].fXVal = 2;<br />
m_Values[0][1].fYVal = mVectLightData[mIndexChosenMotes].LightMin;<br />
<br />
m_Values[0][2].fXVal = 3;<br />
m_Values[0][2].fYVal = mVectLightData[mIndexChosenMotes].LightMean;<br />
<br />
mGraph.SetData(m_Values[0], 3, 0, 0, 0);<br />
mGraph.GetCurve(0).SetColor(RGB(0,0,0));<br />
mGraph.SetShowLegend(false);<br />
mGraph.SetInteraction(true);<br />
mGraph.GetXAxis(0).SetAutoScale(true);<br />
mGraph.GetYAxis(0).SetAutoScale(true);<br />
mGraph.SetAutoScale(0,0,0);<br />
The mIndexChosenMotes is a std vector's index.
Thanks a lot,
Rene Desgagnes
|
|
|
|
|
Has anybody tried to bring this into VS2005? If so what problems did you encounter and how did you solve them?
|
|
|
|
|
I've tried to do this, but there was many errors. Some of them I fixed... But there was also many STL related inconsistencies that I don't know how to deal with.
I would be nice if somebody helped.
|
|
|
|
|
Hi All!
What i must change to see in print preview same as what i get on paper after print?
When I open print preview i see a smal image in upper left corner, but when I print I get my graph on full page.
Best Regards,
Andrey.
|
|
|
|
|
Hey,
I've been trying to get this to work for ages now, and I keep failing :/
I've been working with Java for the last 7 years now, and my previous experience with C++ was college years.. with 0 Visual C/MFC stuff .. I've basically been thrown in into the deep end, and noone told me about the sharks
Can anyone explain to me using very small words how to get this Class displaying?
I've tried making a doc + view, but I can't display a graph on my CDialog.. I've got the View displaying, but no XGraph to be seen anywhere
If only it was as simple as myPanel.add(new XGraph(), BorderLayout.CENTER);
|
|
|
|
|
I ahve to say this project is a great one!
Thanks for your the author's great efforts on this. Also thanks for the author's great contribution!
Expecting the new release in the near future!
Sam.Z
|
|
|
|
|
|
Hi,
As we add more series to the graphs, they all show up in black. Even the demo seems to exhibit the same behavior. Here is the code snippet.
CString macName = m_curMachineList.GetAt(mac);
m_pChart[param]->GetCurve(mac).SetLabel(macName);
m_pChart[param]->GetCurve(mac).SetColor(SeriesColors[mac]);
m_pChart[param]->SetData(m_Values[param][mac], var[mac].m_numPoints, mac, 0, 0);
if (!var[0].m_numPoints)
continue;
Any suggestions is highly welcome.
Satish
|
|
|
|
|
hi,
I want to know how to chenge the curve's color automatically?
From the exmaple, I can only chenge the color manually, and the
first two color is to similar.
thank you!
Haibo
|
|
|
|
|
Hi All.
Why when i want use bitmap functions: InsertBitmap and SetBackgroundBitmap,
I got link error - unresolved symbols...
error LNK2001: unresolved external symbol "public: class CXGraphBitmap & __thiscall CXGraph::InsertBitmap(class CRect,class CBitmapEx *)" (?InsertBitmap@CXGraph@@QAEAAVCXGraphBitmap@@VCRect@@PAVCBitmapEx@@@Z)
|
|
|
|
|
These functions without realizations. (
my implementation of InsertBitmap() function:
CXGraphBitmap& CXGraph::InsertBitmap(CRect rect, CBitmapEx* pBitmap)
{
CXGraphBitmap *p_Bitmap= new CXGraphBitmap;
p_Bitmap->SetBitmap(pBitmap);
p_Bitmap->m_clRect = rect;
p_Bitmap->m_pGraph = this;
m_Objects.AddTail (p_Bitmap);
return *p_Bitmap;
}
-- modified at 7:00 Thursday 1st December, 2005
|
|
|
|