I submitted this question to NTTS and although I did get a response and was directed to a Forum page it was a bit over my head. The code would not be difficult but when using the necessary components it would fall into the undocumented/unsupported category. Even if it doesn't work after trying something I can't even get to the point of coding it.
What I would like to accomplish is to pro grammatically increase the lower margin in an indicator panel to allow more space for a message which is getting overlaid by the indicator's output. This can very easily be done manually by changing the chart's properties. Because the messages are optional I would like to be able to increase the lower margin when the option is true.
There is a property for setting the margins via UI and is someplace in Chartcontrol which if set by NS code to a value it MAY work. That is about as far as I can get.
The documentation seems to indicate that something like the code below might work, however, I don't know how exactly how to use it. Putting it into the indicator as is returns a compile error complaining about a possible missing directive.
protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { if ( test-if-a-message-is-to-be-displayed ) chartScale.Properties.AutoScaleMarginLower = 9.0; }
Comment