Support Board
Date/Time: Tue, 11 Feb 2025 13:24:09 +0000
Why is BeginDateTime working RightToLeft instead LeftToRight with DRAWING_STATIONARY_TEXT
View Count: 583
[2020-09-04 15:11:01] |
TeeJay - Posts: 123 |
Hello, there seems to be a bug in text positioning with sc.UseTool() and DRAWING_STATIONARY_TEXT The same behavior is also with DRAWING_TEXT, so that does not matter, but let's use STATIONARY If you set BeginDateTime this should be a value relative to the left of the chart. But the position of the text is calculated from the right to the left then. For what purpose is this exactly? You cannot vary your text in length then without repositioning it every time you change it, because it leaves the window to the left. This is not "relative to left aligning", at least not with Western languages. Example : Let your text be 10.00 % and BeginDateTime = 15 Then change this text to "Position calc. stopped" and update it with the given line number from the previous call The text is exactly aligned to the right of the previous text, and leaves the chart to the left. This cannot be intended, right? For every text length you would have to try and figure out how the starting position should be so it does not leave the window. Like this you can never left-align texts that vary in length Thanks Screenshots attached Date Time Of Last Edit: 2020-09-04 15:15:57
|
![]() ![]() |
[2020-09-04 16:12:19] |
TeeJay - Posts: 123 |
This seem definitely buggy, this is the exact same call, same positioning, but one time with FontBold=1 and one time without it. This is reproducible with any texts. You can see the right-alignment of the text here and how it wanders to the left through the bold setting. http://www.sierrachart.com/image.php?Image=1599235759680.png http://www.sierrachart.com/image.php?Image=1599235868587.png Date Time Of Last Edit: 2020-09-04 16:13:30
|
[2020-09-04 16:20:20] |
TeeJay - Posts: 123 |
Ok, this was fixed by setting TextAlignment which does not seem to default to DT_LEFT anymore like according to the documentation.
|
To post a message in this thread, you need to log in with your Sierra Chart account: