Support Board
Date/Time: Sun, 22 Dec 2024 10:32:48 +0000
Post From: I would like to request a flexible ACSIL line tool X1,Y1 .. X2,Y2 - style.
[2015-07-04 14:31:59] |
marcovth - Posts: 61 |
What would be the big difference between ... Lines.Clear(); Lines.ChartNumber = sc.ChartNumber; Lines.DrawingType = DRAWING_LINE; Lines.LineNumber = num; Lines.BeginDateTime = sc.BaseDateTimeIn[bar1]; Lines.BeginValue = val1; Lines.EndDateTime = sc.BaseDateTimeIn[bar2]; Lines.EndValue = val2; Lines.Color = Color; Lines.LineWidth = LineWidth; Lines.LineStyle = LineStyle; Lines.AddMethod = UTAM_ADD_OR_ADJUST; //Lines.AddAsUserDrawnDrawing = 1; //Lines.SquareEdge=1; Lines.FlatEdge=1; Lines.Region = Region; sc.UseTool(Lines); And ... Lines.Clear(); Lines.ChartNumber = sc.ChartNumber; Lines.DrawingType = DRAWING_LINE; Lines.LineNumber = num; Lines.X1 = X1; Lines.Y1 = Y1; Lines.X2 = X2; Lines.Y2 = Y2; Lines.Color = Color; Lines.LineWidth = LineWidth; Lines.LineStyle = LineStyle; Lines.AddMethod = UTAM_ADD_OR_ADJUST; //Lines.AddAsUserDrawnDrawing = 1; //Lines.SquareEdge=1; Lines.FlatEdge=1; Lines.Region = Region; sc.UseTool(Lines); You have already all the code working to draw lines. Your code translates BeginDateTime, EndDateTime, BeginValue, EndValue into X1, X2, Y1, Y2 before drawing. The coordinate system would therefore only take 5 minutes to implement, and it would make a lot of serious coders very happy. GDI absolutely doesn't work. It makes things very complicated for no reason compared to a simple X1,Y1 .. X2,Y2 implementation. Please explain why your team would not add this? Thanks in advance. Date Time Of Last Edit: 2015-07-04 14:36:12
|