I have an enum which displays a dropdown menu in the config dialog box.
I wonder if there is a method that I can call to set the value of the name of the plot in the folded config dialog box after a change has been made in the dropdown?
Please reference the attached screen capture.
In my OBU section, I set the name of the plot , depending on the selected choice in the enum dropdown. i.e. Plots[0].Name = enum.value
After the indicator has already been added to the chart, and I try to change a setting in the configure dialog, the value of Plot[0].name is set to the value previously configured, and it does not update after a change is made in the dropdown.
But I use an override for DisplayName, and as soon as I make a change to the dropdown, the DisplayName in the Configured section of the dialog box is updated to match the selected choice in the dropdown.
I have read, but have not seen, an explanation of the difference between SetDefaults and Configure AFTER an indicator has been added to the chart, and you are revisiting the config dialog box, to make a change to a parameter.
I.e. It seems that Defaults have already been set because the indicator is already on the chart, so that state does nothing, and the Configure State doesn't get triggered until you click the OK or APPLY button. I was trying to sue those 2 stats to reset the name of the plot to a generic value, ie "Plot" so it did not reflect the name of the previous selected plot.
Thank you
Comment