ComponentWorks CWGraph control 3.0.1 in VB6SP5 on Win98SE.
On the Plots tab of the property page for the CWGraph control the list of plots can be re-ordered by moving the selected plot up and down the list. This ordering is reflected in the "background to foreground" ordering of the displayed plots on the graph, i.e. Plot-1 will always appear "behind" Plot-2, so if both plots contain the same data Plot-1 cannot be seen since it is completely obscured by Plot-2.
This causes problems where many plots are present in the control. I have a VB ListBox with a list of the plots displayed on the graph. When a ListItem is selected I want the associated plot to be moved to the foreground (so that no other data overlaps it
.)
My original solution was to use an "Active" plot that was always the last added. This means that to add another plot to the list the Active plot must be deleted, the new plot created and the data loaded into it and then the Active plot re-created and the data also loaded into it.
However, for my current application I cannot have keep a data buffer in memory for every plot on the graph - it's just not practical.
I know that there's no way to copy a CWPlot object or that the plot data can be read back from the graph, however is there a way to push a "background" plot to the foreground?