Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
ovelha.negra
Posted - 07/31/2009 : 04:51:30 AM Origin Ver. and Service Release (Select Help-->About Origin): Operating System:
Hi,
I have a small program to index automatically some lines in several graphs and I have associated that same program to a button. It was written using origin 7 and i want to make it work in origin 8. Could someone please tell me if there is any changes refering to the code that I must take into consideration? I have checked everything several times and I have no idea of what's wrong.
{ GraphPage grph; BOOL bOK = grph.Create(strTemplate, CREATE_VISIBLE);// this create a graph window from a Template if (!bOK) return;
GraphLayer grlay = grph.Layers(0); // attaching the first layer (0) to a new GraphLayer object Curve cv(strData); //adding the Curve object to the GraphLayer1 object int nPlot = grlay.AddPlot(cv); if(nPlot>=0)
{ // setting plot color to blue (3) grlay.DataPlots(nPlot).SetColor(3, TRUE); grlay.Rescale(); // rescaling the plot }