|
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
|
|
|
|
|
I want to use this chat as a trend for that i want to continues update of values of this chart. so please advise me ,how to change and display new added values on the chart ? without closing this chart page.
|
|
|
|
|
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
|
|
|
|
|
I load the source files in studio and compile it in debug mode and BAM! you got yourself a xgraph10d.dll
|
|
|
|
|
Because I need a bitmap not in a file but in a DIB , I use the code inside SaveBitmap to wite a new function GetDIB.
HANDLE CXGraph::GetDIB()
{
CWnd* pWnd = this;
CBitmap bitmap;
CWindowDC dc(pWnd);
CDC memDC;
CRect rect;
memDC.CreateCompatibleDC(&dc);
pWnd->GetWindowRect(rect);
bitmap.CreateCompatibleBitmap(&dc, rect.Width(),rect.Height() );
CBitmap* pOldBitmap = memDC.SelectObject(&bitmap);
memDC.BitBlt(0, 0, rect.Width(),rect.Height(), &dc, 0, 0, SRCCOPY);
// Create logical palette if device support a palette
CPalette pal;
if( dc.GetDeviceCaps(RASTERCAPS) & RC_PALETTE )
{
UINT nSize = sizeof(LOGPALETTE) + (sizeof(PALETTEENTRY) * 256);
LOGPALETTE *pLP = (LOGPALETTE *) new BYTE[nSize];
pLP->palVersion = 0x300;
pLP->palNumEntries =
GetSystemPaletteEntries( dc, 0, 255, pLP->palPalEntry );
// Create the palette
pal.CreatePalette( pLP );
delete[] pLP;
}
memDC.SelectObject(pOldBitmap);
// Convert the bitmap to a DIB
return DDBToDIB( bitmap, BI_RGB, &pal );
}
It works very well to me
|
|
|
|
|
Dear all,
I am using this nice chart control in a new application (using Visual C++ 6.0). It builds and run in Release mode, but it does not run in Debug mode.
The application crash when invoking the method EnableWindow(true).
Maybe a problem with the handle m_hWnd?
Any help will be very wellcomed!!
Thanks in advance
Eloy
|
|
|
|
|
Dear Eloy & All,
I am having the same problem, but not sure if exactly. I followed all the threads and fixed all the reported bugs w/ the provided solutions, then I rebuilt XGRAPH both in debug & release mode. On my machine, both mode works.
However, when I include XGRAPH in the same project BUT on a different machine w/ the same OS, in debug mode, I got an error.
Has anyone experienced this problem? Please help me - it WILL take forever for me to debug XGRAPH since I don't know anything about graphics programming...
Geoffrey
|
|
|
|
|
Anyway, this is a good control to implement chart in one project.
Cheers!
|
|
|
|
|
Hi,
I saw ur message in discussion form. I had the same problem while printing more number of page. i printed the current displayed graph. if i set current range, i couldn't print the rest of the pages. i just used PrintGraph(pDC) to print current dispalyed graph. if u know how to print rest of the pages with same current step value, post me logic
Thanks
Parthiban.K
|
|
|
|
|
Hello,
Did anyone manage to use the printing code? I would appreciate if you could send the corrections that must be made.
|
|
|
|
|
I want to make a kind of report that lists many different charts one after the other. then I want to print that report into a pdf-file (this function is already installed in my system). there is no need to show the charts that I want to print on the schreen. I just want to select, if I like to have a chart in the report. then that chart should be stored in a list of charts which I can print into a pdf (or on any printer that is installed).
does somebody got a solution for that problem? I need it for my master theses...
thanks
michael
|
|
|
|
|
I compiled the code in VS.NET2003 and ran the demo. It worked fine until I decided to open the Properties box, and then a access violation occurred in the DoDataExchange (). It seemed that the dialog resource is not present !!!
Could you please help me in solving the problem?
Thanx a lot.
Regards,
Andrea
|
|
|
|
|
I am not an MFC guy but here is what I found. The popup menu items are processed in XGraphTest.cpp. But the resource id for "Properties" is not connected to anything, so it goes boom.
I also found several of the window buttons on the right do not work because the resource id's are not set up correctly. And I don't know how to fix them.
Regards,
Keith
|
|
|
|
|
I have an application written in C#. Is it possible using this graph tool in C# program?
JR
|
|
|
|
|
Not directly. I am workin to a COM wrap to this class that should be used (via .NET-COM interoperability). I'll keep you uptodated.
Regards,
Andrea
|
|
|
|
|
Hi,
how successful are you with your COM-wrapper?
Regards,
gunag
|
|
|
|
|
Using Visual Studio .NET 2003 on WinXP I was not able to build the demo program. I was getting link errors for unresolved external symbols for the CXGraph::InsertLabel() and CXGraphAxis::SetColorRange(). From searching through the posts this appears to have been a known problem since the start of the year. Well, I found the solution.
The include directory in the demo does not contain the latest .h files.
1. In addition to downloading the demo project you must also download the source. Build the source as a separate project.
2. In the demo project remove the include directory (and it's contents).
3. Add the source project directory as an include directory so the correct version of the .h files are used.
4. Some files will not build because the include path is wrong so change those from "include/xgraph10.h" to <xgraph10.h>
5. I could not get the library path to work so copy the XGRAPH10.dll file from the source project to the demo project.
Then it worked.
-- modified at 11:40 Thursday 15th September, 2005 -- changed one bit of formatting for clarity
|
|
|
|