Support Board
Date/Time: Mon, 20 Jan 2025 13:56:48 +0000
Post From: DrawingType 'DRAWING_CYCLE' how to?
[2018-06-09 13:19:17] |
b3cker - Posts: 34 |
Hello, Cycle object region is set to Cycle.Region = sc.GraphRegion; but the cycle is always displayed to Cycle.Region= 0 ; Bug? Regards int& r_LineNumber = sc.GetPersistentInt(1); if (sc.IsFullRecalculation) { r_LineNumber = 0; } //Add or update cycle drawing. s_UseTool Cycle; Cycle.Region = sc.GraphRegion; Cycle.Clear(); Cycle.ChartNumber = sc.ChartNumber; if (r_LineNumber != 0) Cycle.LineNumber = r_LineNumber; Cycle.DrawingType = DRAWING_CYCLE; Cycle.BeginDateTime = sc.BaseDateTimeIn[sc.ArraySize - 33]; Cycle.EndDateTime = sc.BaseDateTimeIn[sc.ArraySize - 77]; //Cycle.Region = 0; Cycle.Color = RGB(255, 255, 0); Cycle.LineWidth = 1; Cycle.NumCycles = 5; Cycle.AddMethod = UTAM_ADD_OR_ADJUST; if (sc.UseTool(Cycle) > 0) r_LineNumber = Cycle.LineNumber; http://www.sierrachart.com/image.php?Image=1528550253977.png |