Support Board
Date/Time: Thu, 16 Jan 2025 00:12:05 +0000
Post From: Code using UseTool and DRAWING_TEXT not working in 1609 vs 1595
[2017-09-19 04:19:34] |
binaryduke - Posts: 373 |
Hi Sierra Chart Something seems to have changed since 1595 to 1609 that is affecting code using drawing tools to draw text. I plan to deconstruct the affected code to find out exactly and will advise but ahead of this, do you have any changes that have been made between these releases that could have affected UseTool and DRAWING_TEXT? The code below works fine in 1595 but not in 1609: s_UseTool displaytext; displaytext.Clear(); displaytext.ChartNumber = sc.ChartNumber; displaytext.Region = sc.GraphRegion; displaytext.DrawingType = DRAWING_TEXT; displaytext.TextAlignment = DT_CENTER; displaytext.FontSize = 10; displaytext.ReverseTextColor = 1; displaytext.Color = RGB(0,0,255); displaytext.BeginIndex = sc.Index; if (sc.Index == sc.ArraySize - 1) displaytext.AddMethod = UTAM_ADD_OR_ADJUST; else displaytext.AddMethod = UTAM_ADD_ALWAYS; displaytext.BeginValue = sc.High[sc.Index] + (2 * sc.TickSize); displaytext.Text = output; sc.UseTool(displaytext); Thanks Lee. |