Support Board
Date/Time: Fri, 31 Jan 2025 23:48:57 +0000
Post From: Vertical Centering Label on Line using ACSIL
[2019-05-09 05:21:18] |
HAB-User115006 - Posts: 38 |
SC version: 1915, 64-bit, Win 7 I am drawing a horizontal line using sc.UseTool(), I need to show price and label DT_Bottom works correctly but DT_VCENTER always resets the text to the default DT_TOP, momentarily it is VCentered but on the next tick it goes back to being DT_TOP justified. What am I missing?, I have deleted an earlier post from 3 weeks ago, I got no reply and after further debugging I think this is an SC issue. Please resolve this, THANKS... Here is the abbreviated code: Tool.DrawingType = DRAWING_HORIZONTALLINE; Tool.AddAsUserDrawnDrawing = 1; Tool.TextAlignment = DT_LEFT | DT_VCENTER; Tool.AddMethod = UTAM_ADD_OR_ADJUST; if (r_DailyID != 0) Tool.LineNumber = r_DailyID; Tool.BeginValue = sc.Close[sc.ArraySize - 1]; Tool.Text = " Test Line"; sc.UseTool(Tool); r_DailyID = Tool.LineNumber; //Remember line number which has been automatically set |