Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

cwgraph background image

Hi,
for an application I need to change on runtime the background image of CWGraph with C++ Builder 6.0. How can I do this?
I tried the following code, but doesn't works:
 
        String str_URL="C:\\figure.bmp";
        wchar_t *URL_1 = new wchar_t[str_URL.WideCharBufSize()];
        str_URL.WideChar(URL_1, str_URL.WideCharBufSize());
        CWGraph1->PlotAreaImage->CWImage->set_URL(URL_1);
 
Thanks,
Marco
 
 
0 Kudos
Message 1 of 2
(6,208 Views)
The following piece of code
 
CNiImage myImage = m_graph.Images("Plot Area");   myImage.Url = "C:\\mypicture.bmp";   myImage.Reload();
 
works fine in Visual C++ 6.0.
Also, find Here the right code and example for VB
 
Regards,
AlessioD
0 Kudos
Message 2 of 2
(6,176 Views)