Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 09:00:08 +0000



flag used to 'Center Text Vertically' for DRAWING_RECTANGLE_EXT_HIGHLIGHT

View Count: 281

[2023-05-02 04:41:11]
User719512 - Posts: 227
What flag is used "Center Text Vertically" for DRAWING_RECTANGLE_EXT_HIGHLIGHT and DRAWING_RECTANGLEHIGHLIGHT?
If you right click properties, you can "Center Text Vertically", but have not found a way to set this flag from ACSIL.

DT_VCENTER seems like it should be correct, but has no effect.


s_UseTool Tool;
Tool.Clear();
...
Tool.DrawingType = DRAWING_RECTANGLE_EXT_HIGHLIGHT;
Tool.TextAlignment = DT_VCENTER;
Tool.Text = "text to show centered";

[2023-05-02 07:21:10]
User431178 - Posts: 413
Use CenterText member instead


s_UseTool Tool;
Tool.Clear();
...
Tool.DrawingType = DRAWING_RECTANGLE_EXT_HIGHLIGHT;
Tool.CenterText = 1;
Tool.Text = "text to show centered";

[2023-10-18 05:01:03]
User907967 - Posts: 53
Thanks, User431178.

Do we know why DT_VCENTER does not work?

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account