quote:
Originally posted by yuivanov
GroupPlot gPlot;
gPlot = gL.Groups(i);
Separation of declaration and initialization will solve the problem.
This works only for groups set to "Dependent" edit mode (group tab of the group's first data plot). If it is set to "independant" the error still exists. Thus, I cannot change GroupPlot properties (of a group that I cannot attach).
Does anybody know how to set this attribute with OriginC?
I used
gl.AddPlot(dr, IDM_PLOT_LINE, GAP_GROUP_PLOTS);
and
m_gl.GroupPlots(iFirstDataPlotIndex, iLastDataPlotIndex);
The only workaround I could find is saving the manual setting to a template (but this does not work for variable group numbers).
Thanks,
Michael