- ago
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.

2
1,014
Solved
6 Replies

Reply

Bookmark

Sort
Cone8
 ( 28.25% )
- ago
#2
Let's investigate adding an overload to SetTextDrawingOptions for font style.
0
- ago
#3
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?
1
Cone8
 ( 28.25% )
- ago
#4
Added to the Wish List.
0
Glitch8
 ( 12.08% )
- ago
#5
We can direct people to submit Feature Requests now.
0
Best Answer
- ago
#6
New in Build 14:

CODE:
public void SetTextDrawingFont(Font font)


CODE:
         FontFamily ff = new FontFamily("Courier");          Font f = new Font(ff, 18);          SetTextDrawingFont(f);
1

Reply

Bookmark

Sort