I am using DrawHeaderText to add some information on the chart. The current default font is not fixed width, so if I try to print multi-line info in some tabular form or spaced in particular way, then they don't align properly. For example, here:
If the font is fixed width, then that expands up the capability of what can be done with DrawHeaderText. Is there a way to change the font to fixed width? May be provide an option in SetTextDrawingOptions() to change the font.
I am already using SetTextDrawingOptions() to manipulate the background color of the text which has been very helpful.
Or if there is any other way to show some formatted or tabular text info on the chart, then that will also solve the issue.
If the font is fixed width, then that expands up the capability of what can be done with DrawHeaderText. Is there a way to change the font to fixed width? May be provide an option in SetTextDrawingOptions() to change the font.
I am already using SetTextDrawingOptions() to manipulate the background color of the text which has been very helpful.
Or if there is any other way to show some formatted or tabular text info on the chart, then that will also solve the issue.
Rename
Let's investigate adding an overload to SetTextDrawingOptions for font style.
Also, is there a way to get DrawHeaderText to draw text in some other pane besides the "Price" pane? WL6 has DrawLabel, which does let you specify a particular pane (other than "Price"). Why can't DrawHeaderText do the same?
I know about DrawText, which does let you specify a particular pane. But I don't think it's possible to get DrawText to place annotations in the upper left corner (which is what I need) like DrawHeaderText does. Is there a way?
I know about DrawText, which does let you specify a particular pane. But I don't think it's possible to get DrawText to place annotations in the upper left corner (which is what I need) like DrawHeaderText does. Is there a way?
Added to the Wish List.
We can direct people to submit Feature Requests now.
New in Build 14:
CODE:
public void SetTextDrawingFont(Font font)
CODE:
FontFamily ff = new FontFamily("Courier"); Font f = new Font(ff, 18); SetTextDrawingFont(f);
Your Response
Post
Edit Post
Login is required