Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Does DrawText auto-trim a string?
Collapse
X
-
Does DrawText auto-trim a string?
I have a line DrawText("Test"+ CurrentBar, "Hello" + " ", 0, Close[0], Color.Black, textFont, StringAlignment.Far, Color.Transparent,Color.White,10); The added padding of spaces to shift the text slightly to the left is eliminated when displayed. I tried to use .PadRight(8, ' ') and it seems to ignore it also. Is there a way to get the text shifted slightly over to the left with spaces?Last edited by marketmasher; 04-14-2009, 07:45 PM.Tags: None
-
.,;'[]\/12345asdf. Anything that does not produce a blank space. If you want a blank space unfortunately that is beyond the level of support we can offer. You will have to dive into C# to see if there are any string manipulations you can use to mimic the effect.Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by sjsj2732, Yesterday, 04:31 AM
|
0 responses
33 views
0 likes
|
Last Post
by sjsj2732
Yesterday, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
286 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
284 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
133 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
91 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Comment