Karsten8
Germany
23 Posts |
Posted - 02/17/2022 : 10:34:45 AM
|
Origin Ver. and Service Release: 2019 9.6.172 Operating System:win10
Hello,
it would be great if you can help me to understand the c-functions. Using the setlinetype does not work whereas setcolor works fine in my Code. The error message is:
:Error, Member function DataPlot::SetLineType not defined or does not have matching prototype.
I used this page to read about the setlinetype: https://www.originlab.com/doc/OriginC/ref/DataPlot-SetLineType
Here is my Code to Change the line style of all Graphs inside my project:
void set_line_type(string& graph, vector<int> input){ GraphPage gp(graph); foreach(GraphLayer gls in gp.Layers){ for (int i = 0; i < input.GetSize(); i++){ DataPlot dps = gls.DataPlots(input[i]); dps.SetLineType(3); // <- causes the error dps.SetLineType(LINE_STYLE_DASH); // <- causes error as well dps.SetColor(1, TRUE); // <- this works } } return; }
In other words the compiler gives an error messeage when I use the setlinetype but I think I use it as proposed (see web page at the top). I didn't found other examples using setlinetype and the search function couldn't help as well.
Thanks for your help. Best regards
Karsten8. |
|