Ejemplo n.º 1
0
        void SetupTChartTools()
        {
            chart.Tools.Clear();
            Steema.TeeChart.Tools.MarksTip marksTip1 = new Steema.TeeChart.Tools.MarksTip();
            marksTip1.Style    = Steema.TeeChart.Styles.MarksStyles.XY;
            marksTip1.GetText += new Steema.TeeChart.Tools.MarksTipGetTextEventHandler(this.marksTip1_GetText);
            chart.Tools.Add(marksTip1);

            if (graphDef == null)
            {
                return;
            }
            if (m_dragPoints && !graphDef.ReadOnly)
            {
                for (int i = 0; i < graphDef.SeriesRows.Count(); i++)
                {
                    Steema.TeeChart.Tools.DragPoint dragPoint1 = new Steema.TeeChart.Tools.DragPoint();
                    dragPoint1.Series = chart[i];
                    dragPoint1.Active = true;
                    dragPoint1.Style  = Steema.TeeChart.Tools.DragPointStyles.Y;

                    dragPoint1.Drag  += new Steema.TeeChart.Tools.DragPointEventHandler(this.dragPoint1_Drag);
                    dragPoint1.Cursor = System.Windows.Forms.Cursors.Hand;
                    chart.Tools.Add(dragPoint1);
                }
            }
        }
Ejemplo n.º 2
0
        void SetupTChartTools()
        {
            tChart1.Tools.Clear();

            // format nearest point
            Steema.TeeChart.Tools.NearestPoint nearestPoint1 = new Steema.TeeChart.Tools.NearestPoint(tChart1.Chart);
            nearestPoint1.Direction   = Steema.TeeChart.Tools.NearestPointDirection.Horizontal;
            nearestPoint1.Pen.Color   = System.Drawing.Color.Black;
            nearestPoint1.Brush.Color = System.Drawing.Color.Black;
            nearestPoint1.Size        = 0;
            nearestPoint1.Style       = Steema.TeeChart.Tools.NearestPointStyles.Circle;
            nearestPoint1.DrawLine    = false;
            tChart1.Tools.Add(nearestPoint1);

            // set tool-tip pop-up for the FC-Ops added series
            for (int i = (tChart1.Series.Count - 5); i < tChart1.Series.Count; i++)
            {
                tChart1.Series[i].GetSeriesMark += Form1_GetSeriesMark;
            }

            // Add point tooltips
            Steema.TeeChart.Tools.MarksTip marksTip1 = new Steema.TeeChart.Tools.MarksTip(tChart1.Chart);
            marksTip1.Style       = Steema.TeeChart.Styles.MarksStyles.XY;
            marksTip1.Active      = true;
            marksTip1.MouseDelay  = 0;
            marksTip1.HideDelay   = 999999;
            marksTip1.MouseAction = Steema.TeeChart.Tools.MarksTipMouseAction.Move;
            marksTip1.BackColor   = Color.LightSteelBlue;
            marksTip1.ForeColor   = Color.Black;
            tChart1.Tools.Add(marksTip1);
        }
Ejemplo n.º 3
0
        void SetupTChartNearestPointTool()
        {
            this.tChart1.Tools.Clear();

            if (annotation1.Active)
            {
                // set tool-tip pop-up for the FC-Ops added series
                for (int i = 0; i < this.tChart1.Series.Count; i++)
                {
                    Steema.TeeChart.Tools.NearestPoint nearestPoint2 = new Steema.TeeChart.Tools.NearestPoint(this.tChart1[i]);
                    nearestPoint2.Direction   = Steema.TeeChart.Tools.NearestPointDirection.Horizontal;
                    nearestPoint2.Pen.Color   = this.tChart1[i].Color;
                    nearestPoint2.Brush.Color = this.tChart1[i].Color;
                    nearestPoint2.Size        = 5;
                    nearestPoint2.Style       = Steema.TeeChart.Tools.NearestPointStyles.Circle;
                    nearestPoint2.DrawLine    = false;
                    this.tChart1.Tools.Add(nearestPoint2);

                    this.tChart1.Series[i].GetSeriesMark += Form1_GetSeriesMark;
                }

                // Add point tooltips
                Steema.TeeChart.Tools.MarksTip marksTip1 = new Steema.TeeChart.Tools.MarksTip(this.tChart1.Chart);
                marksTip1.Style       = Steema.TeeChart.Styles.MarksStyles.XY;
                marksTip1.Active      = true;
                marksTip1.MouseDelay  = 0;
                marksTip1.HideDelay   = 999999;
                marksTip1.MouseAction = Steema.TeeChart.Tools.MarksTipMouseAction.Move;
                marksTip1.BackColor   = Color.LightSteelBlue;
                marksTip1.ForeColor   = Color.Black;
                //this.tChart1.Tools.Add(marksTip1);
            }
        }
Ejemplo n.º 4
0
        public void InitializeChart()
        {
            if (mkTip == null)
            {
                mkTip       = new Steema.TeeChart.Tools.MarksTip();
                mkTip.Style = MarksStyles.Value;
            }

            if (this.AnalysisChart.Chart.Tools.IndexOf(mkTip) < 0)
            {
                this.AnalysisChart.Chart.Tools.Add(mkTip);
            }

            this.InitializeDataButton();
            this.bButtonList1.ButtonClick += new ButtonList.ImageDelegate(bButtonList1_ButtonClick);

            this.AnalysisChart.Chart.Legend.CheckBoxes      = true;
            this.AnalysisChart.IsVisibleLegendScrollBar     = this.IsVisibleLegendScrollBar;
            this.AnalysisChart.IsVisibleShadow              = this.IsVisibleShadow;
            this.AnalysisChart.AxisDateTimeFormat           = this.AxisDateTimeFormat;
            this.AnalysisChart.IsUseAutomaticAxisOfTeeChart = true;
            this.AnalysisChart.IsUseChartEditor             = false;
            this.AnalysisChart.LegendPosition = Steema.TeeChart.LegendAlignments.Right;
            this.AnalysisChart.LegendVisible  = true;

            this.AnalysisChart.Chart.Axes.DrawBehind          = true;
            this.AnalysisChart.Chart.Axes.Left.Grid.Visible   = false;
            this.AnalysisChart.Chart.Axes.Right.Grid.Visible  = false;
            this.AnalysisChart.Chart.Axes.Top.Grid.Visible    = false;
            this.AnalysisChart.Chart.Axes.Bottom.Grid.Visible = false;
            this.AnalysisChart.SetXAxisRegularInterval(true);
            this.AnalysisChart.Chart.Axes.Bottom.MinorTickCount = 0;


            this.bButtonList1.Visible = this.IsViewButtonList;



            if (ParentPagekey != "")
            {
                LinkedList slToolTipList = this._Initialization.InitializeToolTipList(this.ParentPagekey, ParentToolTipItemkey, this.sessionData);

                for (int i = 0; i < slToolTipList.Count; i++)
                {
                    string sLabel     = slToolTipList.GetKey(i).ToString();
                    string sFieldName = slToolTipList.GetValue(i).ToString();

                    this._stt.Add(new SeriesToolTipOneRowInfo(sLabel, new string[] { sFieldName }));
                }
                this.AnalysisChart.DefaultToolTipInfo = this._stt;
            }
        }
Ejemplo n.º 5
0
        public void DrawChart(SeriesInfo Series)
        {
            this.AnalysisChart.AddSeries(Series);

            if (mkTip == null)
            {
                mkTip       = new Steema.TeeChart.Tools.MarksTip();
                mkTip.Style = MarksStyles.Value;
            }

            if (this.AnalysisChart.Chart.Tools.IndexOf(mkTip) < 0)
            {
                this.AnalysisChart.Chart.Tools.Add(mkTip);
            }
        }
Ejemplo n.º 6
0
        public void InitializeChart()
        {
            //this.bTeeChart1.ClickMenuOfBackground += new BTeeChart.ClickMenuOfBackgroundEventHandler(bTeeChart1_ClickMenuOfBackground);

            this.SPCChart.HeaderText = "test";
            //this.lblGroupName.Visible = false;

            //this.GenerateCommandButtonList();

            if (mkTip == null)
            {
                mkTip       = new Steema.TeeChart.Tools.MarksTip();
                mkTip.Style = MarksStyles.Value;
            }

            if (this.SPCChart.Chart.Tools.IndexOf(mkTip) < 0)
            {
                this.SPCChart.Chart.Tools.Add(mkTip);
            }
        }
        public ScrollerChart()
        {
            this.tChart1     = new Steema.TeeChart.Chart();
            this.line1       = new Steema.TeeChart.Styles.Line();
            this.annotation1 = new Steema.TeeChart.Tools.Annotation();
            this.annotation2 = new Steema.TeeChart.Tools.Annotation();
            //this.marksTip1 = new Steema.TeeChart.Tools.MarksTip();
            //this.scrollPager1 = new Steema.TeeChart.Tools.ScrollPager();
            // tChart1
            this.tChart1.Aspect.ColorPaletteIndex          = 21;
            this.tChart1.Aspect.View3D                     = false;
            this.tChart1.Axes.Bottom.Automatic             = false;
            this.tChart1.Axes.Bottom.AutomaticMaximum      = false;
            this.tChart1.Axes.Bottom.AutomaticMinimum      = false;
            this.tChart1.Axes.Bottom.AxisPen.Color         = Color.Gray;
            this.tChart1.Axes.Bottom.AxisPen.Width         = 1;
            this.tChart1.Axes.Bottom.Grid.Visible          = false;
            this.tChart1.Axes.Bottom.Labels.DateTimeFormat = "HH:mm";
            this.tChart1.Axes.Bottom.Maximum               = 0D;
            this.tChart1.Axes.Bottom.Minimum               = 0D;
            this.tChart1.Axes.Bottom.MinorTicks.Visible    = false;
            this.tChart1.Axes.Bottom.Title.Caption         = "Bottom Axis";
            this.tChart1.Axes.Bottom.Title.Lines           = new string[] { "Bottom Axis" };
            this.tChart1.Axes.Bottom.Title.Visible         = false;
            this.tChart1.Axes.Left.Automatic               = false;
            this.tChart1.Axes.Left.AutomaticMaximum        = false;
            this.tChart1.Axes.Left.AutomaticMinimum        = false;
            this.tChart1.Axes.Left.AxisPen.Color           = Color.Gray;
            this.tChart1.Axes.Left.AxisPen.Width           = 1;
            this.tChart1.Axes.Left.Labels.Separation       = 100;
            this.tChart1.Axes.Left.Maximum                 = 1.41D;
            this.tChart1.Axes.Left.Minimum                 = 1.2D;
            this.tChart1.Axes.Left.MinorTicks.Visible      = false;
            this.tChart1.Axes.Left.Title.Caption           = "$ 000s";
            this.tChart1.Axes.Left.Title.Lines             = new string[] { "$ 000s" };
            this.tChart1.Axes.Left.Title.Visible           = false;
            this.tChart1.Footer.Font.Brush.Color           = Color.Blue;
            this.tChart1.Header.Font.Brush.Color           = Color.Gray;
            this.tChart1.Header.Font.Size                  = 16;
            this.tChart1.Header.Lines                  = new string[] { "Sales figures" };
            this.tChart1.Header.Visible                = false;
            this.tChart1.Legend.Visible                = false;
            this.tChart1.Panel.Brush.Color             = Color.White;
            this.tChart1.Panel.Brush.Gradient.EndColor = Color.White;
            this.tChart1.Panel.Brush.Gradient.Visible  = false;
            this.tChart1.Panel.MarginTop               = 12D;
            this.tChart1.Panning.Allow                 = Steema.TeeChart.ScrollModes.Horizontal;
            this.tChart1.Series.Add(this.line1);
            this.tChart1.Tools.Add(this.annotation1);
            this.tChart1.Tools.Add(this.annotation2);
            //this.tChart1.Tools.Add(this.marksTip1);
            //this.tChart1.Tools.Add(this.scrollPager1);
            this.tChart1.Walls.Back.Brush.Gradient.EndColor = Color.White;
            this.tChart1.Walls.Back.Visible = false;
            this.tChart1.Zoom.Direction     = Steema.TeeChart.ZoomDirections.None;
            this.tChart1.AfterDraw         += tChart1_AfterDraw;
            // line1
            this.line1.Brush.Color        = Color.FromRgb(((int)(((byte)(220)))), ((int)(((byte)(92)))), ((int)(((byte)(5)))));
            this.line1.Color              = Color.FromRgb(((int)(((byte)(220)))), ((int)(((byte)(92)))), ((int)(((byte)(5)))));
            this.line1.ColorEach          = false;
            this.line1.LinePen.Color      = Color.FromRgb(((int)(((byte)(132)))), ((int)(((byte)(55)))), ((int)(((byte)(3)))));
            this.line1.LinePen.Width      = 2;
            this.line1.Pointer.SizeDouble = 0D;
            this.line1.Pointer.SizeUnits  = Steema.TeeChart.Styles.PointerSizeUnits.Pixels;
            this.line1.Title              = "USD to Euro";
            this.line1.XValues.DateTime   = true;
            this.line1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            // annotation1
            this.annotation1.AutoSize                   = true;
            this.annotation1.Callout.ArrowHead          = Steema.TeeChart.Styles.ArrowHeadStyles.None;
            this.annotation1.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint;
            this.annotation1.Callout.ArrowHeadSize      = 8;
            this.annotation1.Callout.Brush.Color        = Color.Black;
            this.annotation1.Callout.Distance           = 0;
            this.annotation1.Callout.Draw3D             = false;
            this.annotation1.Callout.SizeDouble         = 0D;
            this.annotation1.Callout.SizeUnits          = Steema.TeeChart.Styles.PointerSizeUnits.Pixels;
            this.annotation1.Callout.XPosition          = 0;
            this.annotation1.Callout.YPosition          = 0;
            this.annotation1.Callout.ZPosition          = 0;
            this.annotation1.Left                 = 61;
            this.annotation1.Shape.Bottom         = 45;
            this.annotation1.Shape.CustomPosition = true;
            this.annotation1.Shape.Font.Size      = 18;
            this.annotation1.Shape.Left           = 61;
            this.annotation1.Shape.Right          = 408;
            this.annotation1.Shape.Top            = 8;
            this.annotation1.Shape.Transparent    = true;
            this.annotation1.Text                 = "US Dollar against the Euro";
            this.annotation1.Top = 8;
            // annotation2
            this.annotation2.AutoSize                   = true;
            this.annotation2.Callout.ArrowHead          = Steema.TeeChart.Styles.ArrowHeadStyles.None;
            this.annotation2.Callout.ArrowHeadDirection = Steema.TeeChart.Styles.ArrowHeadDirection.FromPoint;
            this.annotation2.Callout.ArrowHeadSize      = 8;
            this.annotation2.Callout.Brush.Color        = Color.Black;
            this.annotation2.Callout.Distance           = 0;
            this.annotation2.Callout.Draw3D             = false;
            this.annotation2.Callout.SizeDouble         = 0D;
            this.annotation2.Callout.SizeUnits          = Steema.TeeChart.Styles.PointerSizeUnits.Pixels;
            this.annotation2.Callout.XPosition          = 0;
            this.annotation2.Callout.YPosition          = 0;
            this.annotation2.Callout.ZPosition          = 0;
            this.annotation2.Left                 = 56;
            this.annotation2.Shape.Bottom         = 62;
            this.annotation2.Shape.CustomPosition = true;
            this.annotation2.Shape.Left           = 56;
            this.annotation2.Shape.Right          = 308;
            this.annotation2.Shape.Top            = 43;
            this.annotation2.Shape.Transparent    = true;
            this.annotation2.Shape.Font.Color     = Color.FromRgb(0, 51, 102);
            this.annotation2.Text                 = "  2012 - 2013 Source: Steema Software SL";
            this.annotation2.Top = 43;
            // scrollPager1
            //this.scrollPager1.DivisionRatio = 8D;

            //this.SizeChanged += new System.EventHandler(this.Tools_ScrollPager_SizeChanged);

            tChart1.Panel.Gradient.Visible = false;
            tChart1.Panel.MarginTop        = 12;

            double[] vals = { 1.234, 1.233, 1.235, 1.241, 1.241, 1.244, 1.239, 1.220, 1.222, 1.224, 1.228, 1.242, 1.241, 1.239, 1.244, 1.238, 1.233, 1.250, 1.253,
                              1.250, 1.249, 1.240, 1.241, 1.248, 1.240, 1.247, 1.246, 1.247, 1.257, 1.268, 1.265, 1.263, 1.262, 1.268, 1.267, 1.264, 1.271, 1.274,
                              1.265, 1.275, 1.279, 1.285, 1.292, 1.301, 1.304, 1.317, 1.325, 1.323, 1.321, 1.309, 1.312, 1.308, 1.303, 1.300, 1.301, 1.306, 1.298,
                              1.302, 1.301, 1.306, 1.314, 1.312, 1.308, 1.300, 1.300, 1.305, 1.312, 1.330, 1.321, 1.319, 1.317, 1.316, 1.312, 1.313, 1.307, 1.306,
                              1.309, 1.302, 1.297, 1.290, 1.300, 1.290, 1.289, 1.284, 1.282, 1.286, 1.288, 1.289, 1.290, 1.292, 1.290, 1.297, 1.304, 1.310, 1.311,
                              1.306, 1.308, 1.315, 1.316, 1.321, 1.325, 1.306, 1.302, 1.308, 1.314, 1.323, 1.324, 1.330, 1.330, 1.338, 1.335, 1.334, 1.335, 1.341,
                              1.338, 1.333, 1.342, 1.328, 1.316, 1.316, 1.324, 1.321, 1.320, 1.340, 1.351, 1.348, 1.342, 1.342, 1.352, 1.345, 1.350, 1.345, 1.347,
                              1.355, 1.358, 1.357, 1.365, 1.369, 1.376, 1.377, 1.362, 1.367, 1.366, 1.354, 1.350, 1.351, 1.360, 1.353, 1.351, 1.348, 1.348, 1.356,
                              1.341, 1.337, 1.335, 1.318, 1.322, 1.328, 1.322, 1.314, 1.317, 1.319, 1.313, 1.322, 1.314, 1.315, 1.319, 1.310, 1.317, 1.304, 1.308,
                              1.303, 1.307, 1.304, 1.320, 1.303, 1.295, 1.293, 1.298, 1.293, 1.296, 1.305, 1.311, 1.316, 1.321, 1.320, 1.323, 1.321, 1.318, 1.331,
                              1.319, 1.321, 1.319, 1.318, 1.314, 1.317, 1.316, 1.320, 1.320, 1.329, 1.323, 1.324, 1.321, 1.325, 1.329, 1.317, 1.312, 1.314, 1.303,
                              1.300, 1.300, 1.298, 1.302, 1.304, 1.297, 1.307, 1.307, 1.305, 1.299, 1.309, 1.318, 1.316, 1.319, 1.323, 1.323, 1.338, 1.334, 1.341,
                              1.344, 1.351, 1.347, 1.347, 1.347, 1.353, 1.337, 1.338, 1.327, 1.321, 1.315, 1.319, 1.319, 1.319, 1.310, 1.313, 1.303, 1.296, 1.302,
                              1.293, 1.320, 1.321, 1.321, 1.321, 1.327, 1.323, 1.327, 1.328, 1.332, 1.330, 1.341, 1.340, 1.340, 1.338, 1.341, 1.335, 1.341, 1.355,
                              1.360, 1.363, 1.350, 1.345, 1.344, 1.339, 1.346, 1.346, 1.346, 1.353, 1.347, 1.347, 1.350, 1.350, 1.350, 1.339, 1.336, 1.351, 1.346,
                              1.346, 1.330, 1.325, 1.382, 1.338, 1.343, 1.340, 1.352, 1.350, 1.351, 1.367, 1.367, 1.368, 1.364, 1.361 };

            long[] dates = { 13420512, 13421376, 13423968, 13424832, 13425696, 13426560, 13427424, 13428288, 13430016, 13430880,
                             13432608, 13433472, 13436064, 13436928, 13437792, 13438656, 13439520, 13442112, 13442976, 13443840,
                             13444704, 13445568, 13448160, 13449024, 13450752, 13451616, 13454208, 13455072, 13455936, 13456800,
                             13457664, 13460256, 13461120, 13461984, 13462848, 13463712, 13466304, 13467168, 13468032, 13468896,
                             13469760, 13470624, 13472352, 13474080, 13474944, 13475808, 13478400, 13479264, 13480128, 13480992,
                             13481856, 13484448, 13485312, 13486176, 13487040, 13487904, 13490496, 13491360, 13492224, 13493088,
                             13493952, 13496544, 13497408, 13498272, 13499136, 13502592, 13503456, 13504320, 13505184, 13506048,
                             13508640, 13509504, 13510368, 13511232, 13512096, 13515552, 13516416, 13518144, 13520736, 13521600,
                             13522464, 13523328, 13524192, 13526784, 13527648, 13528512, 13529376, 13530240, 13532832, 13533696,
                             13534560, 13535424, 13536288, 13538880, 13539744, 13540608, 13541472, 13542336, 13544928, 13545792,
                             13546656, 13548384, 13550976, 13551840, 13552704, 13553568, 13554432, 13557024, 13557888, 13558752,
                             13559616, 13560480, 13563072, 13565664, 13566528, 13569120, 13570848, 13571712, 13572576, 13575168,
                             13576032, 13576896, 13577760, 13578624, 13581216, 13582080, 13582944, 13583808, 13584672, 13587264,
                             13588128, 13588992, 13589856, 13590720, 13593312, 13594176, 13595040, 13595904, 13596768, 13599360,
                             13600224, 13601088, 13601952, 13602816, 13605408, 13606272, 13607136, 13608000, 13608864, 13611456,
                             13612320, 13613184, 13614048, 13614912, 13617504, 13618368, 13619232, 13620096, 13620960, 13623552,
                             13624416, 13625280, 13626144, 13627008, 13629600, 13630464, 13631328, 13632192, 13633056, 13635648,
                             13636512, 13637376, 13638240, 13639104, 13641696, 13642560, 13643424, 13644288, 13648608, 13649472,
                             13650336, 13651200, 13653792, 13654656, 13655520, 13656384, 13657248, 13659840, 13660704, 13661568,
                             13662432, 13663296, 13665888, 13666752, 13667616, 13668480, 13669344, 13671936, 13672800, 13674528,
                             13675392, 13677984, 13678848, 13679712, 13680576, 13681440, 13684032, 13684896, 13685760, 13686624,
                             13687488, 13690080, 13690944, 13691808, 13692672, 13693536, 13696128, 13696992, 13697856, 13698720,
                             13699584, 13702176, 13703040, 13703904, 13704768, 13705632, 13708224, 13709088, 13709952, 13710816,
                             13711680, 13714272, 13715136, 13716000, 13716864, 13717728, 13721184, 13722048, 13722912, 13723776,
                             13726368, 13727232, 13728096, 13728960, 13729824, 13732416, 13733280, 13734144, 13735008, 13735872,
                             13738464, 13739328, 13740192, 13741056, 13741920, 13744512, 13745376, 13746240, 13747968, 13750560,
                             13751424, 13752288, 13753152, 13754016, 13756608, 13757472, 13758336, 13759200, 13760064, 13762656,
                             13763520, 13764384, 13766112, 13768704, 13769568, 13770432, 13771296, 13772160, 13774752, 13775616,
                             13776480, 13777344, 13778208, 13780800, 13781664, 13782528, 13783392, 13784256, 13786848, 13787712,
                             13789440, 13790304, 13792896, 13793760, 13794624, 13795488, 13796352, 13798944, 13799808, 13800672 };


            tChart1[0].Title = "USD to Euro";
            tChart1[0].Add(vals);

            double[] avgDates = new double[tChart1.Series[0].Count];

            for (int t = 0; t < tChart1.Series[0].Count; t++)
            {
                System.DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
                dtDateTime = dtDateTime.AddSeconds(dates[t] * 100).ToLocalTime();

                double tmpVal = dtDateTime.Millisecond;    // dtDateTime.ToFileTimeUtc();
                avgDates[t] = tmpVal;
                tChart1.Series[0].XValues.Value[t] = avgDates[t];
            }

            //config some series appearance characteristics
            //for (int i = 0; i < 1; i++)
            //{
            //tChart1.Series(i).asLine.Pointer.Visible = true;
            //tChart1.Series(i).asLine.Pointer.HorizontalSize = 4;
            //tChart1.Series(i).asLine.Pointer.VerticalSize = 4;
            //tChart1.Series(i).asLine.Pointer.Style = TeeChart.EPointerStyle.psCircle;
            //tChart1.Series(i).asLine.Pointer.Pen.Width = 2;
            //tChart1.Series(i).asLine.Pointer.Shadow.Visible=false;
            //line1.LinePen.Width = 2;
            //}

            //Axes
            tChart1.Axes.Left.Title.Caption            = "$ 000s";
            tChart1.Axes.Left.Labels.RoundFirstLabel   = true;
            tChart1.Axes.Left.Title.Visible            = false;
            tChart1.Axes.Bottom.Labels.RoundFirstLabel = true;
            tChart1.Axes.Bottom.Title.Caption          = "Bottom Axis";
            tChart1.Axes.Bottom.Title.Font.Size        = 20;
            tChart1.Axes.Bottom.Title.Visible          = false;
            tChart1.Axes.Bottom.Labels.DateTimeFormat  = "dd/MM/yy";
            tChart1.Axes.Left.SetMinMax(1.2, 1.41);
            tChart1.Axes.Left.Grid.Width      = 1;
            tChart1.Axes.Bottom.AxisPen.Width = 1;
            tChart1.Axes.Bottom.SetMinMax(tChart1[0].XValues.Value[50], tChart1[0].XValues.Value[250]);
            tChart1.Axes.Bottom.Grid.Visible    = false;
            tChart1.Series[0].XValues.DateTime  = true;
            tChart1.Axes.Left.Labels.Separation = 100;

            //Title
            tChart1.Header.Visible = false;

            //Legend
            tChart1.Legend.Visible = false;

            tChart1.Axes.Left.StartPosition = 10;

            /*// annotation (alternative title) //
             * Steema.TeeChart.Tools.Annotation ann1 = new Steema.TeeChart.Tools.Annotation();
             * tChart1.Tools.Add(ann1); //   TeeChart.EToolClass.tcAnnotate);
             * ann1.Shape.Font.Size  =20;
             * ann1.Text = "US Dollar against the Euro";
             * ann1.Shape.Transparent = true;
             *
             * // annotation (alternative title)
             * Steema.TeeChart.Tools.Annotation ann2 = new Steema.TeeChart.Tools.Annotation();
             * tChart1.Tools.Add(ann2);
             * ann2.Text = "  2012 - 2013 Source: Steema Software SL";
             * ann2.Shape.Transparent = true;
             *
             * tChart1.Draw();  //get positions
             *
             * ann1.Left = tChart1.Axes.Bottom.CalcXPosValue(tChart1.Axes.Bottom.Minimum);
             * ann1.Top = 8;
             * ann2.Left = tChart1.Axes.Bottom.CalcXPosValue(tChart1.Axes.Bottom.Minimum);
             * ann2.Top = 38;*/

            //tooltip
            Steema.TeeChart.Tools.MarksTip marks = new Steema.TeeChart.Tools.MarksTip();
            tChart1.Tools.Add(marks);

            tChart1.Zoom.Active   = false;
            tChart1.Panning.Allow = Steema.TeeChart.ScrollModes.Horizontal;

            //scroller

            /*
             * scroller = new Steema.TeeChart.Tools.ScrollPager();
             * tChart1.Tools.Add(scroller);
             * scroller.Series = line1;
             * scroller.SubChartTChart.Panel.Gradient.Visible = false;
             * scroller.SubChartTChart.Walls.Back.Visible = false;
             * scroller.SubChartTChart.Axes.Left.Visible = false;
             * scroller.SubChartTChart.Axes.Bottom.Labels.DateTimeFormat = "MM/yy";
             *
             * axStartValue = tChart1.Series[0].XValues[70];
             * axEndValue = tChart1.Series[0].XValues[tChart1.Series[0].Count - 70];
             *
             * scroller.SubChartTChart.Footer.Font.Italic = true;
             * scroller.SubChartTChart.Footer.Text = "         Showing data from " + DateTime.FromOADate(axStartValue).ToLongDateString() + " to "
             + DateTime.FromOADate(axEndValue).ToLongDateString();
             + scroller.SubChartTChart.Footer.Visible = true;
             + scroller.SubChartTChart.Panel.Color = Color.White;
             + scroller.SubChartTChart.Footer.Alignment = TextAlignment.Start;
             + scroller.DivisionRatio = 8;
             + scroller.StartLinePointer.Visible = false;
             + scroller.EndLinePointer.Visible = false;
             */

            this.tChart1.Aspect.ZoomText = true;

            chartView = new ChartView
            {
                VerticalOptions   = LayoutOptions.FillAndExpand,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                WidthRequest      = 25,
                HeightRequest     = 25
            };
            chartView.Model = tChart1;

            Content = new StackLayout
            {
                Children =
                {
                    chartView
                }
            };
        }
Ejemplo n.º 8
0
 protected void MakeTipInfo()
 {
     Steema.TeeChart.Tools.MarksTip mkTip = new Steema.TeeChart.Tools.MarksTip();
     mkTip.Style = MarksStyles.Value;
     this.AnalysisChart.Chart.Tools.Add(mkTip);
 }
Ejemplo n.º 9
0
        public StockMonitoring()
        {
            this.Title = "Stock Monitoring";

            tChart1 = new ChartView();
            tChart1.WidthRequest  = 400;
            tChart1.HeightRequest = 300;

            tChart1.Chart.Aspect.View3D   = false;
            tChart1.Chart.Zoom.Active     = true;
            tChart1.Chart.Aspect.ZoomText = true;
            tChart1.Chart.Panning.Active  = true;

            this.line1     = new Steema.TeeChart.Styles.Line();
            this.line2     = new Steema.TeeChart.Styles.Line();
            this.line3     = new Steema.TeeChart.Styles.Line();
            this.marksTip1 = new Steema.TeeChart.Tools.MarksTip();
            this.tChart1.Chart.Aspect.Elevation                    = 350;
            this.tChart1.Chart.Aspect.ElevationFloat               = 350D;
            this.tChart1.Chart.Aspect.Perspective                  = 55;
            this.tChart1.Chart.Aspect.View3D                       = false;
            this.tChart1.Chart.Axes.Bottom.AxisPen.Color           = Color.FromRgb(((int)(((byte)(110)))), ((int)(((byte)(110)))), ((int)(((byte)(110)))));
            this.tChart1.Chart.Axes.Bottom.AxisPen.Width           = 0;
            this.tChart1.Chart.Axes.Bottom.Grid.Color              = Color.FromRgb(((int)(((byte)(221)))), ((int)(((byte)(221)))), ((int)(((byte)(221)))));
            this.tChart1.Chart.Axes.Bottom.Grid.Visible            = false;
            this.tChart1.Chart.Axes.Bottom.Labels.Font.Brush.Color = Color.Gray;
            this.tChart1.Chart.Axes.Bottom.Labels.Font.Name        = "Segoe UI";
            this.tChart1.Chart.Axes.Bottom.Labels.Font.Size        = 16;
            this.tChart1.Chart.Axes.Bottom.MinorTicks.Visible      = false;
            this.tChart1.Chart.Axes.Bottom.Ticks.Color             = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
            this.tChart1.Chart.Axes.Bottom.Title.Font.Name         = "Segoe UI";
            this.tChart1.Chart.Axes.Depth.Title.Font.Name          = "Segoe UI";
            this.tChart1.Chart.Axes.Depth.Title.Font.Size          = 13;
            this.tChart1.Chart.Axes.DepthTop.Title.Font.Name       = "Segoe UI";
            this.tChart1.Chart.Axes.DepthTop.Title.Font.Size       = 13;
            this.tChart1.Chart.Axes.Left.AxisPen.Visible           = false;
            this.tChart1.Chart.Axes.Left.AxisPen.Width             = 0;
            this.tChart1.Chart.Axes.Left.Grid.Color                = Color.FromRgb(((int)(((byte)(221)))), ((int)(((byte)(221)))), ((int)(((byte)(221)))));
            this.tChart1.Chart.Axes.Left.Labels.Font.Brush.Color   = Color.Gray;
            this.tChart1.Chart.Axes.Left.Labels.Font.Name          = "Segoe UI";
            this.tChart1.Chart.Axes.Left.Labels.Font.Size          = 16;
            this.tChart1.Chart.Axes.Left.MinorTicks.Visible        = false;
            this.tChart1.Chart.Axes.Left.Ticks.Color               = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
            this.tChart1.Chart.Axes.Left.Ticks.Length              = 7;
            this.tChart1.Chart.Axes.Left.Title.Caption             = "Quote";
            this.tChart1.Chart.Axes.Left.Title.Font.Brush.Color    = Color.Gray;
            this.tChart1.Chart.Axes.Left.Title.Font.Name           = "Segoe UI";
            this.tChart1.Chart.Axes.Left.Title.Lines               = new string[] { "Quote" };
            this.tChart1.Chart.Axes.Right.AxisPen.Width            = 0;
            this.tChart1.Chart.Axes.Right.Grid.Visible             = false;
            this.tChart1.Chart.Axes.Right.Labels.Font.Brush.Color  = Color.Gray;
            this.tChart1.Chart.Axes.Right.Labels.Font.Name         = "Segoe UI";
            this.tChart1.Chart.Axes.Right.Labels.Font.Size         = 31;
            this.tChart1.Chart.Axes.Right.MinorTicks.Visible       = false;
            this.tChart1.Chart.Axes.Right.Ticks.Visible            = false;
            this.tChart1.Chart.Axes.Right.Title.Font.Name          = "Segoe UI";
            this.tChart1.Chart.Axes.Top.Title.Font.Name            = "Segoe UI";
            this.tChart1.Chart.Footer.Font.Brush.Color             = Color.Blue;
            //this.tChart1.Header.Font.Bold = true;
            this.tChart1.Chart.Header.Font.Brush.Color        = Color.Gray;
            this.tChart1.Chart.Header.Font.Name               = "Segoe UI Lt";
            this.tChart1.Chart.Header.Font.Shadow.Brush.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
            this.tChart1.Chart.Header.Font.Shadow.SmoothBlur  = 2;
            this.tChart1.Chart.Header.Font.Shadow.Visible     = true;
            this.tChart1.Chart.Header.Font.Size               = 14;
            this.tChart1.Chart.Header.Lines            = new string[] { "Stock Monitoring" };
            this.tChart1.Chart.Legend.Alignment        = Steema.TeeChart.LegendAlignments.Bottom;
            this.tChart1.Chart.Legend.Font.Brush.Color = Color.Gray;
            this.tChart1.Chart.Legend.Font.Name        = "Segoe UI";
            this.tChart1.Chart.Legend.Font.Size        = 13;
            this.tChart1.Chart.Legend.Pen.Visible      = false;
            this.tChart1.Chart.Legend.Shadow.Visible   = false;
            this.tChart1.Chart.Panel.Bevel.Outer       = Steema.TeeChart.Drawing.BevelStyles.None;
            this.tChart1.Chart.Panel.Bevel.Width       = 2;
            this.tChart1.Chart.Panel.BevelWidth        = 2;
            this.tChart1.Chart.Panel.Brush.Color       = Color.White;
            this.tChart1.Chart.Series.Add(this.line1);
            this.tChart1.Chart.Series.Add(this.line2);
            this.tChart1.Chart.Series.Add(this.line3);
            this.tChart1.Chart.Tools.Add(this.marksTip1);
            this.tChart1.Chart.Walls.Back.Brush.Gradient.EndColor = Color.White;
            this.tChart1.Chart.Walls.Back.Pen.Visible             = false;
            this.tChart1.Chart.Walls.Back.Visible = false;
            this.tChart1.Chart.Walls.Bottom.Brush.Gradient.EndColor   = Color.Silver;
            this.tChart1.Chart.Walls.Bottom.Brush.Gradient.StartColor = Color.Gray;
            this.tChart1.Chart.Walls.Bottom.Brush.Gradient.Visible    = true;
            this.tChart1.Chart.Walls.Bottom.Pen.Color               = Color.Gray;
            this.tChart1.Chart.Walls.Bottom.Transparent             = true;
            this.tChart1.Chart.Walls.Left.Brush.Color               = Color.White;
            this.tChart1.Chart.Walls.Left.Brush.Gradient.EndColor   = Color.Silver;
            this.tChart1.Chart.Walls.Left.Brush.Gradient.StartColor = Color.Gray;
            this.tChart1.Chart.Walls.Left.Brush.Gradient.Visible    = true;
            this.tChart1.Chart.Walls.Left.Pen.Color    = Color.Gray;
            this.tChart1.Chart.Walls.Left.Transparent  = true;
            this.tChart1.Chart.Walls.Right.Transparent = true;
            // line1
            this.line1.Brush.Color         = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(102)))));
            this.line1.Color               = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(102)))));
            this.line1.ColorEach           = false;
            this.line1.LinePen.Color       = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
            this.line1.LinePen.Width       = 3;
            this.line1.Marks.Arrow.Visible = false;
            this.line1.Marks.ArrowLength   = 0;
            this.line1.Marks.Font.Name     = "Segoe UI";
            this.line1.Marks.Font.Size     = 24;
            this.line1.Marks.Transparent   = true;
            this.line1.Pointer.Brush.Color = Color.FromRgba(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(250)))));
            this.line1.Pointer.Brush.Gradient.Transparency = 2;
            this.line1.Pointer.HorizSize  = 6;
            this.line1.Pointer.Pen.Color  = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(64)))));
            this.line1.Pointer.Pen.Width  = 3;
            this.line1.Pointer.SizeDouble = 0D;
            this.line1.Pointer.SizeUnits  = Steema.TeeChart.Styles.PointerSizeUnits.Pixels;
            this.line1.Pointer.Style      = Steema.TeeChart.Styles.PointerStyles.Circle;
            this.line1.Pointer.VertSize   = 6;
            this.line1.Pointer.Visible    = true;
            this.line1.Title            = "Portfolio 1";
            this.line1.ValueFormat      = "#.##0,###";
            this.line1.XValues.DateTime = true;
            this.line1.XValues.Order    = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            // line2
            this.line2.Brush.Color           = Color.FromRgba(((int)(((byte)(0)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(250)))));
            this.line2.Gradient.Transparency = 2;
            this.line2.Color                                    = Color.FromRgba(((int)(((byte)(0)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(250)))));
            this.line2.ColorEach                                = false;
            this.line2.LinePen.Color                            = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
            this.line2.LinePen.Transparency                     = 2;
            this.line2.LinePen.Width                            = 3;
            this.line2.Marks.Arrow.Transparency                 = 2;
            this.line2.Marks.Arrow.Visible                      = false;
            this.line2.Marks.ArrowLength                        = 0;
            this.line2.Marks.Brush.Color                        = Color.FromRgba(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(250)))));
            this.line2.Marks.Brush.Gradient.Transparency        = 2;
            this.line2.Marks.Font.Brush.Color                   = Color.FromRgba(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(250)))));
            this.line2.Marks.Font.Brush.Gradient.Transparency   = 2;
            this.line2.Marks.Font.Name                          = "Segoe UI";
            this.line2.Marks.Font.Size                          = 24;
            this.line2.Marks.Pen.Transparency                   = 2;
            this.line2.Marks.Shadow.Brush.Color                 = Color.FromRgba(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(250)))));
            this.line2.Marks.Shadow.Brush.Gradient.Transparency = 2;
            this.line2.Marks.Transparent                        = true;
            this.line2.Pointer.Brush.Color                      = Color.FromRgba(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(250)))));
            this.line2.Pointer.Brush.Gradient.Transparency      = 2;
            this.line2.Pointer.HorizSize                        = 6;
            this.line2.Pointer.Pen.Color                        = Color.FromRgb(((int)(((byte)(0)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
            this.line2.Pointer.Pen.Transparency                 = 2;
            this.line2.Pointer.Pen.Width                        = 3;
            this.line2.Pointer.SizeDouble                       = 0D;
            this.line2.Pointer.SizeUnits                        = Steema.TeeChart.Styles.PointerSizeUnits.Pixels;
            this.line2.Pointer.Style                            = Steema.TeeChart.Styles.PointerStyles.Circle;
            this.line2.Pointer.VertSize                         = 6;
            this.line2.Pointer.Visible                          = true;
            this.line2.Title                                    = "Portfolio 2";
            this.line2.Transparency                             = 2;
            this.line2.ValueFormat                              = "#.##0,###";
            this.line2.XValues.DateTime                         = true;
            this.line2.XValues.Order                            = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            // line3
            this.line3.Brush.Color         = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
            this.line3.Color               = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
            this.line3.ColorEach           = false;
            this.line3.LinePen.Color       = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
            this.line3.LinePen.Width       = 3;
            this.line3.Marks.Arrow.Visible = false;
            this.line3.Marks.ArrowLength   = 0;
            this.line3.Marks.Font.Name     = "Segoe UI";
            this.line3.Marks.Font.Size     = 24;
            this.line3.Marks.Transparent   = true;
            this.line3.Pointer.Brush.Color = Color.FromRgba(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(250)))));
            this.line3.Pointer.Brush.Gradient.Transparency = 2;
            this.line3.Pointer.HorizSize  = 6;
            this.line3.Pointer.Pen.Color  = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
            this.line3.Pointer.Pen.Width  = 3;
            this.line3.Pointer.SizeDouble = 0D;
            this.line3.Pointer.SizeUnits  = Steema.TeeChart.Styles.PointerSizeUnits.Pixels;
            this.line3.Pointer.Style      = Steema.TeeChart.Styles.PointerStyles.Circle;
            this.line3.Pointer.VertSize   = 6;
            this.line3.Pointer.Visible    = true;
            this.line3.Title            = "Portfolio 3";
            this.line3.ValueFormat      = "#.##0,###";
            this.line3.XValues.DateTime = true;
            this.line3.XValues.Order    = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            // StockMonitoring

            tChart1.Chart.Panel.Gradient.Visible = false;
            tChart1.Chart.Walls.Back.Transparent = true;

            tChart1.Chart[0].FillSampleValues(12);
            tChart1.Chart[1].FillSampleValues(10);
            tChart1.Chart[2].FillSampleValues(11);

            this.tChart1.Chart.Aspect.ZoomText = true;

            Content = new StackLayout
            {
                VerticalOptions   = LayoutOptions.CenterAndExpand,
                HorizontalOptions = LayoutOptions.CenterAndExpand,
                Children          =
                {
                    tChart1
                }
            };
        }
Ejemplo n.º 10
0
 private void marksTip1_GetText(Steema.TeeChart.Tools.MarksTip sender, Steema.TeeChart.Tools.MarksTipGetTextEventArgs e)
 {
     e.Text = m_markTipText;
 }
Ejemplo n.º 11
0
        private void CreateRegressionSeries()
        {
            // Scale the x and y axes the same.
            Chart.Axes.Left.AutomaticMinimum   = true;
            Chart.Axes.Left.AutomaticMaximum   = true;
            Chart.Axes.Bottom.AutomaticMinimum = true;
            Chart.Axes.Bottom.AutomaticMaximum = true;
            Chart.Axes.Left.AdjustMaxMin();
            Chart.Axes.Bottom.AdjustMaxMin();
            double Minimum = 0;
            double Maximum = 0;

            Minimum = Math.Min(Chart.Axes.Left.Minimum, Chart.Axes.Bottom.Minimum);
            Maximum = Math.Max(Chart.Axes.Left.Maximum, Chart.Axes.Bottom.Maximum);

            Chart.Axes.Left.AutomaticMinimum   = false;
            Chart.Axes.Left.AutomaticMaximum   = false;
            Chart.Axes.Left.Minimum            = Minimum;
            Chart.Axes.Left.Maximum            = Maximum;
            Chart.Axes.Bottom.AutomaticMinimum = false;
            Chart.Axes.Bottom.AutomaticMaximum = false;
            Chart.Axes.Bottom.Minimum          = Minimum;
            Chart.Axes.Bottom.Maximum          = Maximum;

            Chart.Footer.Text       = "";
            Chart.Footer.Font.Color = Color.Blue;

            // Loop through twice, once for normal series and once for Checkpointed series.
            for (int i = 0; i != 2; i++)
            {
                CSGeneral.MathUtility.RegrStats Stats = CalcRegressionStats(i);
                if (Stats != null)
                {
                    Line RegressionLine;
                    if (i == 0)
                    {
                        RegressionLine = (Line)GetSeries("Regression line");
                    }
                    else
                    {
                        RegressionLine = (Line)GetSeries("{Checkpoint} regression line");
                    }
                    RegressionLine.Active = false;

                    // setup footer
                    string FooterText = "y = " + Stats.m.ToString("f2") + " x + " + Stats.c.ToString("f2")
                                        + " (r2 = " + Stats.R2.ToString("f2") + ", n = " + Stats.n.ToString()
                                        + ", RMSD = " + Stats.RMSD.ToString("f2") + ")";
                    if (i == 0)
                    {
                        Chart.Footer.Text = FooterText;
                    }
                    else
                    {
                        Chart.Footer.Text = FooterText + ": Checkpoint\r\n" + Chart.Footer.Text;
                    }

                    Chart.Footer.Alignment = StringAlignment.Near;
                    Chart.Footer.Visible   = true;

                    // Put on a regression line.

                    RegressionLine.Clear();
                    if (i == 0)
                    {
                        RegressionLine.Color = Color.Blue;
                    }
                    else
                    {
                        RegressionLine.Color = Color.LightBlue;
                    }
                    RegressionLine.Add(Minimum, Stats.m * Minimum + Stats.c);
                    RegressionLine.Add(Maximum, Stats.m * Maximum + Stats.c);
                    RegressionLine.Active = true;
                }
            }

            // Add a 1:1 line.
            Line OneToOneLine = (Line)GetSeries("1:1 line");

            OneToOneLine.Clear();
            OneToOneLine.LinePen.Style = System.Drawing.Drawing2D.DashStyle.Dot;
            OneToOneLine.LinePen.Color = Color.Blue;
            OneToOneLine.Color         = Color.Blue;
            OneToOneLine.Add(Minimum, Minimum);
            OneToOneLine.Add(Maximum, Maximum);
            OneToOneLine.Active = true;

            // Add a mark tool so that if the user hovers over a point then it's XY value will be displayed.
            Chart.Tools.Clear();
            Steema.TeeChart.Tools.MarksTip MarkTip = new Steema.TeeChart.Tools.MarksTip(Chart.Chart);
            MarkTip.Series   = Chart.Series[0];
            MarkTip.GetText += new Steema.TeeChart.Tools.MarksTipGetTextEventHandler(MarkTip_GetText);
            Chart.Tools.Add(MarkTip);
        }
Ejemplo n.º 12
0
 void MarkTip_GetText(Steema.TeeChart.Tools.MarksTip sender, Steema.TeeChart.Tools.MarksTipGetTextEventArgs e)
 {
     e.Text = GetMarkText(Chart.Series[0]);
 }
Ejemplo n.º 13
0
        internal void Fcplot(Series actual, Series required, Series alternateRequiredContent,
                             Series alternateActualContent, SeriesList ruleCurves, DateTime[] labelDates,
                             String RequiredLegend, SeriesList userInput, bool greenLines, bool dashed, bool useFB = false)
        {
            tChart1.Zoom.Undo();
            this.tChart1.Series.RemoveAllSeries();
            this.tChart1.Tools.Clear();
            tChart1.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.Value;

            if (labelDates.Length != ruleCurves.Count)
            {
                throw new Exception("Error: The number of label dates " + labelDates.Length
                                    + " must match the number of forecast levels " + ruleCurves.Count);
            }

            //add green lines
            if (greenLines && !useFB)
            {
                AddRuleCurves(ruleCurves, labelDates, dashed);
            }

            Color[] colors = { Color.DodgerBlue, Color.DarkOrange, Color.DarkKhaki, Color.Teal,
                               Color.Aqua,       Color.Olive,      Color.BurlyWood, Color.MediumSpringGreen,
                               Color.CadetBlue,  Color.Chartreuse, Color.Chocolate, Color.Coral, Color.CornflowerBlue };

            for (int i = 0; i < userInput.Count; i++)
            {
                if (i <= colors.Length)
                {
                    var s = Reclamation.TimeSeries.Math.ShiftToYear(userInput[i], required[0].DateTime.Year);
                    CreateSeries(colors[i], userInput[i].Name, s, "right");
                }
                else
                {
                    var s = Reclamation.TimeSeries.Math.ShiftToYear(userInput[i], required[0].DateTime.Year);
                    CreateSeries(colors[i - colors.Length], userInput[i].Name, s, "right");
                }
            }

            //add alternative lines
            if (alternateRequiredContent.Count > 0) //&& required.Count >0)
            {
                var s = new Series();
                if (!useFB)
                {
                    s = Reclamation.TimeSeries.Math.ShiftToYear(alternateRequiredContent, required[0].DateTime.Year);
                    CreateSeries(Color.BlueViolet, alternateRequiredContent.Name + " " + RequiredLegend, s, "left");
                }
                s = Reclamation.TimeSeries.Math.ShiftToYear(alternateActualContent, required[0].DateTime.Year);
                CreateSeries(Color.LightSkyBlue, alternateActualContent.Name, s, "left");
            }

            //add lines
            if (!useFB)
            {
                CreateSeries(Color.Red, required.Name + " " + RequiredLegend, required, "left", true, 2);
                CreateSeries(Color.Blue, actual.Name + " Storage", actual, "left", false, 2);
            }
            else
            {
                CreateSeries(Color.Blue, actual.Name + " Elevation", actual, "left", false, 2);
                var sDummy = new Series();
                for (DateTime i = actual.MinDateTime; i < ruleCurves[0].MaxDateTime; i = i.AddDays(1))
                {
                    sDummy.Add(i, actual.Values.Average());
                }
                CreateSeries(Color.Transparent, "Dummy", sDummy, "left", false, 0);
            }

            // zoom out a little..
            double min = 0, max = 0;

            tChart1.Axes.Left.Automatic = true;
            tChart1.Axes.Left.CalcMinMax(ref min, ref max);
            if (useFB)
            {
                tChart1.Axes.Left.Maximum = max + (max - min) * 0.1;
                tChart1.Axes.Left.Minimum = min - (max - min) * 0.1;
            }
            else
            {
                tChart1.Axes.Left.Maximum = max * 1.01;
                tChart1.Axes.Left.Minimum = 0;// min - 1000;
            }
            tChart1.Axes.Left.Automatic = false;
            //tChart1.Axes.Bottom.in
            //tChart1.Zoom.ZoomPercent(10);

            // format nearest point
            for (int i = 0; i < tChart1.Series.Count; i++)
            {
                if (tChart1.Series[i].ToString().Any(x => char.IsLetter(x)))
                {
                    Steema.TeeChart.Tools.NearestPoint nearestPoint1 = new Steema.TeeChart.Tools.NearestPoint(tChart1[i]);
                    nearestPoint1.Direction   = Steema.TeeChart.Tools.NearestPointDirection.Horizontal;
                    nearestPoint1.Pen.Color   = tChart1[i].Color;
                    nearestPoint1.Brush.Color = tChart1[i].Color;
                    nearestPoint1.Size        = 5;
                    nearestPoint1.Style       = Steema.TeeChart.Tools.NearestPointStyles.Circle;
                    nearestPoint1.DrawLine    = false;
                    tChart1.Tools.Add(nearestPoint1);

                    // set tool-tip text
                    tChart1[i].GetSeriesMark += Form1_GetSeriesMark;
                }
            }

            // Add point tooltips
            Steema.TeeChart.Tools.MarksTip marksTip1 = new Steema.TeeChart.Tools.MarksTip(tChart1.Chart);
            marksTip1.Style       = Steema.TeeChart.Styles.MarksStyles.XY;
            marksTip1.Active      = true;
            marksTip1.MouseDelay  = 0;
            marksTip1.HideDelay   = 999999;
            marksTip1.MouseAction = Steema.TeeChart.Tools.MarksTipMouseAction.Move;
            marksTip1.BackColor   = Color.LightSteelBlue;
            marksTip1.ForeColor   = Color.Black;
            tChart1.Tools.Add(marksTip1);
        }
Ejemplo n.º 14
0
 void tips_GetText(Steema.TeeChart.Tools.MarksTip sender, Steema.TeeChart.Tools.MarksTipGetTextEventArgs e)
 {
     //sender.
 }
        private void ScrollerChart_Load(object sender, EventArgs e)
        {
            this.SizeChanged += new System.EventHandler(this.Tools_ScrollPager_SizeChanged);

            tChart1.Panel.Gradient.Visible = false;
            tChart1.Panel.MarginTop        = 12;

            double[] vals = { 1.234, 1.233, 1.235, 1.241, 1.241, 1.244, 1.239, 1.220, 1.222, 1.224, 1.228, 1.242, 1.241, 1.239, 1.244, 1.238, 1.233, 1.250, 1.253,
                              1.250, 1.249, 1.240, 1.241, 1.248, 1.240, 1.247, 1.246, 1.247, 1.257, 1.268, 1.265, 1.263, 1.262, 1.268, 1.267, 1.264, 1.271, 1.274,
                              1.265, 1.275, 1.279, 1.285, 1.292, 1.301, 1.304, 1.317, 1.325, 1.323, 1.321, 1.309, 1.312, 1.308, 1.303, 1.300, 1.301, 1.306, 1.298,
                              1.302, 1.301, 1.306, 1.314, 1.312, 1.308, 1.300, 1.300, 1.305, 1.312, 1.330, 1.321, 1.319, 1.317, 1.316, 1.312, 1.313, 1.307, 1.306,
                              1.309, 1.302, 1.297, 1.290, 1.300, 1.290, 1.289, 1.284, 1.282, 1.286, 1.288, 1.289, 1.290, 1.292, 1.290, 1.297, 1.304, 1.310, 1.311,
                              1.306, 1.308, 1.315, 1.316, 1.321, 1.325, 1.306, 1.302, 1.308, 1.314, 1.323, 1.324, 1.330, 1.330, 1.338, 1.335, 1.334, 1.335, 1.341,
                              1.338, 1.333, 1.342, 1.328, 1.316, 1.316, 1.324, 1.321, 1.320, 1.340, 1.351, 1.348, 1.342, 1.342, 1.352, 1.345, 1.350, 1.345, 1.347,
                              1.355, 1.358, 1.357, 1.365, 1.369, 1.376, 1.377, 1.362, 1.367, 1.366, 1.354, 1.350, 1.351, 1.360, 1.353, 1.351, 1.348, 1.348, 1.356,
                              1.341, 1.337, 1.335, 1.318, 1.322, 1.328, 1.322, 1.314, 1.317, 1.319, 1.313, 1.322, 1.314, 1.315, 1.319, 1.310, 1.317, 1.304, 1.308,
                              1.303, 1.307, 1.304, 1.320, 1.303, 1.295, 1.293, 1.298, 1.293, 1.296, 1.305, 1.311, 1.316, 1.321, 1.320, 1.323, 1.321, 1.318, 1.331,
                              1.319, 1.321, 1.319, 1.318, 1.314, 1.317, 1.316, 1.320, 1.320, 1.329, 1.323, 1.324, 1.321, 1.325, 1.329, 1.317, 1.312, 1.314, 1.303,
                              1.300, 1.300, 1.298, 1.302, 1.304, 1.297, 1.307, 1.307, 1.305, 1.299, 1.309, 1.318, 1.316, 1.319, 1.323, 1.323, 1.338, 1.334, 1.341,
                              1.344, 1.351, 1.347, 1.347, 1.347, 1.353, 1.337, 1.338, 1.327, 1.321, 1.315, 1.319, 1.319, 1.319, 1.310, 1.313, 1.303, 1.296, 1.302,
                              1.293, 1.320, 1.321, 1.321, 1.321, 1.327, 1.323, 1.327, 1.328, 1.332, 1.330, 1.341, 1.340, 1.340, 1.338, 1.341, 1.335, 1.341, 1.355,
                              1.360, 1.363, 1.350, 1.345, 1.344, 1.339, 1.346, 1.346, 1.346, 1.353, 1.347, 1.347, 1.350, 1.350, 1.350, 1.339, 1.336, 1.351, 1.346,
                              1.346, 1.330, 1.325, 1.382, 1.338, 1.343, 1.340, 1.352, 1.350, 1.351, 1.367, 1.367, 1.368, 1.364, 1.361 };

            long[] dates = { 13420512, 13421376, 13423968, 13424832, 13425696, 13426560, 13427424, 13428288, 13430016, 13430880,
                             13432608, 13433472, 13436064, 13436928, 13437792, 13438656, 13439520, 13442112, 13442976, 13443840,
                             13444704, 13445568, 13448160, 13449024, 13450752, 13451616, 13454208, 13455072, 13455936, 13456800,
                             13457664, 13460256, 13461120, 13461984, 13462848, 13463712, 13466304, 13467168, 13468032, 13468896,
                             13469760, 13470624, 13472352, 13474080, 13474944, 13475808, 13478400, 13479264, 13480128, 13480992,
                             13481856, 13484448, 13485312, 13486176, 13487040, 13487904, 13490496, 13491360, 13492224, 13493088,
                             13493952, 13496544, 13497408, 13498272, 13499136, 13502592, 13503456, 13504320, 13505184, 13506048,
                             13508640, 13509504, 13510368, 13511232, 13512096, 13515552, 13516416, 13518144, 13520736, 13521600,
                             13522464, 13523328, 13524192, 13526784, 13527648, 13528512, 13529376, 13530240, 13532832, 13533696,
                             13534560, 13535424, 13536288, 13538880, 13539744, 13540608, 13541472, 13542336, 13544928, 13545792,
                             13546656, 13548384, 13550976, 13551840, 13552704, 13553568, 13554432, 13557024, 13557888, 13558752,
                             13559616, 13560480, 13563072, 13565664, 13566528, 13569120, 13570848, 13571712, 13572576, 13575168,
                             13576032, 13576896, 13577760, 13578624, 13581216, 13582080, 13582944, 13583808, 13584672, 13587264,
                             13588128, 13588992, 13589856, 13590720, 13593312, 13594176, 13595040, 13595904, 13596768, 13599360,
                             13600224, 13601088, 13601952, 13602816, 13605408, 13606272, 13607136, 13608000, 13608864, 13611456,
                             13612320, 13613184, 13614048, 13614912, 13617504, 13618368, 13619232, 13620096, 13620960, 13623552,
                             13624416, 13625280, 13626144, 13627008, 13629600, 13630464, 13631328, 13632192, 13633056, 13635648,
                             13636512, 13637376, 13638240, 13639104, 13641696, 13642560, 13643424, 13644288, 13648608, 13649472,
                             13650336, 13651200, 13653792, 13654656, 13655520, 13656384, 13657248, 13659840, 13660704, 13661568,
                             13662432, 13663296, 13665888, 13666752, 13667616, 13668480, 13669344, 13671936, 13672800, 13674528,
                             13675392, 13677984, 13678848, 13679712, 13680576, 13681440, 13684032, 13684896, 13685760, 13686624,
                             13687488, 13690080, 13690944, 13691808, 13692672, 13693536, 13696128, 13696992, 13697856, 13698720,
                             13699584, 13702176, 13703040, 13703904, 13704768, 13705632, 13708224, 13709088, 13709952, 13710816,
                             13711680, 13714272, 13715136, 13716000, 13716864, 13717728, 13721184, 13722048, 13722912, 13723776,
                             13726368, 13727232, 13728096, 13728960, 13729824, 13732416, 13733280, 13734144, 13735008, 13735872,
                             13738464, 13739328, 13740192, 13741056, 13741920, 13744512, 13745376, 13746240, 13747968, 13750560,
                             13751424, 13752288, 13753152, 13754016, 13756608, 13757472, 13758336, 13759200, 13760064, 13762656,
                             13763520, 13764384, 13766112, 13768704, 13769568, 13770432, 13771296, 13772160, 13774752, 13775616,
                             13776480, 13777344, 13778208, 13780800, 13781664, 13782528, 13783392, 13784256, 13786848, 13787712,
                             13789440, 13790304, 13792896, 13793760, 13794624, 13795488, 13796352, 13798944, 13799808, 13800672 };


            tChart1[0].Title = "USD to Euro";
            tChart1[0].Add(vals);

            double[] avgDates = new double[tChart1.Series[0].Count];

            for (int t = 0; t < tChart1.Series[0].Count; t++)
            {
                System.DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
                dtDateTime = dtDateTime.AddSeconds(dates[t] * 100).ToLocalTime();
                double tmpVal = dtDateTime.ToOADate();
                avgDates[t] = tmpVal;
                tChart1.Series[0].XValues.Value[t] = avgDates[t];
            }

            //config some series appearance characteristics
            //for (int i = 0; i < 1; i++)
            //{
            //tChart1.Series(i).asLine.Pointer.Visible = true;
            //tChart1.Series(i).asLine.Pointer.HorizontalSize = 4;
            //tChart1.Series(i).asLine.Pointer.VerticalSize = 4;
            //tChart1.Series(i).asLine.Pointer.Style = TeeChart.EPointerStyle.psCircle;
            //tChart1.Series(i).asLine.Pointer.Pen.Width = 2;
            //tChart1.Series(i).asLine.Pointer.Shadow.Visible=false;
            //line1.LinePen.Width = 2;
            //}

            //Axes
            tChart1.Axes.Left.Title.Caption            = "$ 000s";
            tChart1.Axes.Left.Labels.RoundFirstLabel   = true;
            tChart1.Axes.Left.Title.Visible            = false;
            tChart1.Axes.Bottom.Labels.RoundFirstLabel = true;
            tChart1.Axes.Bottom.Title.Caption          = "Bottom Axis";
            tChart1.Axes.Bottom.Title.Font.Size        = 20;
            tChart1.Axes.Bottom.Title.Visible          = false;
            tChart1.Axes.Bottom.Labels.DateTimeFormat  = "dd/MM/yy";
            tChart1.Axes.Left.SetMinMax(1.2, 1.41);
            tChart1.Axes.Left.Grid.Width      = 1;
            tChart1.Axes.Bottom.AxisPen.Width = 1;
            tChart1.Axes.Bottom.SetMinMax(tChart1[0].XValues.Value[50], tChart1[0].XValues.Value[250]);
            tChart1.Axes.Bottom.Grid.Visible    = false;
            tChart1.Series[0].XValues.DateTime  = true;
            tChart1.Axes.Left.Labels.Separation = 100;

            //Title
            tChart1.Header.Visible = false;

            //Legend
            tChart1.Legend.Visible = false;

            tChart1.Axes.Left.StartPosition = 10;

            /*// annotation (alternative title) //
             * Steema.TeeChart.Tools.Annotation ann1 = new Steema.TeeChart.Tools.Annotation();
             * tChart1.Tools.Add(ann1); //   TeeChart.EToolClass.tcAnnotate);
             * ann1.Shape.Font.Size  =20;
             * ann1.Text = "US Dollar against the Euro";
             * ann1.Shape.Transparent = true;
             *
             * // annotation (alternative title)
             * Steema.TeeChart.Tools.Annotation ann2 = new Steema.TeeChart.Tools.Annotation();
             * tChart1.Tools.Add(ann2);
             * ann2.Text = "  2012 - 2013 Source: Steema Software SL";
             * ann2.Shape.Transparent = true;
             *
             * tChart1.Draw();  //get positions
             *
             * ann1.Left = tChart1.Axes.Bottom.CalcXPosValue(tChart1.Axes.Bottom.Minimum);
             * ann1.Top = 8;
             * ann2.Left = tChart1.Axes.Bottom.CalcXPosValue(tChart1.Axes.Bottom.Minimum);
             * ann2.Top = 38;*/

            //tooltip
            Steema.TeeChart.Tools.MarksTip marks = new Steema.TeeChart.Tools.MarksTip();
            tChart1.Tools.Add(marks);

            tChart1.Zoom.Active   = false;
            tChart1.Panning.Allow = Steema.TeeChart.ScrollModes.Horizontal;

            //scroller
            scroller = new Steema.TeeChart.Tools.ScrollPager();
            tChart1.Tools.Add(scroller);
            scroller.Series = line1;
            scroller.SubChartTChart.Panel.Gradient.Visible            = false;
            scroller.SubChartTChart.Walls.Back.Visible                = false;
            scroller.SubChartTChart.Axes.Left.Visible                 = false;
            scroller.SubChartTChart.Axes.Bottom.Labels.DateTimeFormat = "MM/yy";

            axStartValue = tChart1.Series[0].XValues[70];
            axEndValue   = tChart1.Series[0].XValues[tChart1.Series[0].Count - 70];

            //tChart1.Refresh();
            scroller.SubChartTChart.Footer.Font.Italic = true;
            scroller.SubChartTChart.Footer.Text        = "         Showing data from " + DateTime.FromOADate(axStartValue).ToLongDateString() + " to "
                                                         + DateTime.FromOADate(axEndValue).ToLongDateString();
            scroller.SubChartTChart.Footer.Visible   = true;
            scroller.SubChartTChart.Panel.Color      = Color.White;
            scroller.SubChartTChart.Footer.Alignment = StringAlignment.Near;
            scroller.DivisionRatio            = 8;
            scroller.StartLinePointer.Visible = false;
            scroller.EndLinePointer.Visible   = false;
        }
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.barSeries1 = new Steema.TeeChart.Styles.Bar();
			this.marksTip1 = new Steema.TeeChart.Tools.MarksTip();
			this.checkBox1 = new System.Windows.Forms.CheckBox();
			this.comboBox1 = new System.Windows.Forms.ComboBox();
			this.button1 = new System.Windows.Forms.Button();
			this.label1 = new System.Windows.Forms.Label();
			this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
			this.panel1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
			this.SuspendLayout();
			// 
			// textBox1
			// 
			this.textBox1.Name = "textBox1";
			this.textBox1.Size = new System.Drawing.Size(466, 80);
			this.textBox1.Text = @"The Marks Tip tool is used to display default Hint windows when the  mouse is over (or clicks) a Series point. The Style property and theOnGetText event can be used to customize the hint text.

Move the mouse over a Bar series point to show the Mark tip.";
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.numericUpDown1);
			this.panel1.Controls.Add(this.label1);
			this.panel1.Controls.Add(this.button1);
			this.panel1.Controls.Add(this.comboBox1);
			this.panel1.Controls.Add(this.checkBox1);
			this.panel1.Location = new System.Drawing.Point(0, 80);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(466, 41);
			// 
			// tChart1
			// 
			// 
			// tChart1.Aspect
			// 
			this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
			this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
			// 
			// tChart1.Header
			// 
			this.tChart1.Header.Lines = new string[] {
																								 "tChart1"};
			this.tChart1.Header.Visible = false;
			// 
			// tChart1.Legend
			// 
			// 
			// tChart1.Legend.Bevel
			// 
			this.tChart1.Legend.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.Raised;
			this.tChart1.Legend.Bevel.Width = 2;
			this.tChart1.Location = new System.Drawing.Point(0, 121);
			this.tChart1.Name = "tChart1";
			// 
			// tChart1.Panel
			// 
			// 
			// tChart1.Panel.Brush
			// 
			this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.tChart1.Series.Add(this.barSeries1);
			this.tChart1.Size = new System.Drawing.Size(466, 165);
			this.tChart1.Tools.Add(this.marksTip1);
			// 
			// tChart1.Walls
			// 
			// 
			// tChart1.Walls.Bottom
			// 
			// 
			// tChart1.Walls.Bottom.Pen
			// 
			this.tChart1.Walls.Bottom.Pen.Visible = false;
			this.tChart1.Walls.Bottom.Size = 5;
			// 
			// tChart1.Walls.Left
			// 
			// 
			// tChart1.Walls.Left.Pen
			// 
			this.tChart1.Walls.Left.Pen.Visible = false;
			this.tChart1.Walls.Left.Size = 5;
			// 
			// barSeries1
			// 
			this.barSeries1.BarStyle = Steema.TeeChart.Styles.BarStyles.RectGradient;
			// 
			// barSeries1.Brush
			// 
			this.barSeries1.Brush.Color = System.Drawing.Color.Red;
			// 
			// barSeries1.Gradient
			// 
			this.barSeries1.Brush.Gradient.EndColor = System.Drawing.Color.Red;
			this.barSeries1.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(128)), ((System.Byte)(64)));
			this.barSeries1.Brush.Gradient.Visible = true;
			// 
			// barSeries1.Gradient
			// 
			this.barSeries1.Gradient.EndColor = System.Drawing.Color.Red;
			this.barSeries1.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(128)), ((System.Byte)(64)));
			this.barSeries1.Gradient.Visible = true;
			// 
			// barSeries1.Marks
			// 
			// 
			// barSeries1.Marks.Symbol
			// 
			// 
			// barSeries1.Marks.Symbol.Shadow
			// 
			this.barSeries1.Marks.Symbol.Shadow.Height = 1;
			this.barSeries1.Marks.Symbol.Shadow.Visible = true;
			this.barSeries1.Marks.Symbol.Shadow.Width = 1;
			this.barSeries1.Marks.Visible = false;
			this.barSeries1.Title = "barSeries1";
			// 
			// barSeries1.XValues
			// 
			this.barSeries1.XValues.DataMember = "X";
			this.barSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
			// 
			// barSeries1.YValues
			// 
			this.barSeries1.YValues.DataMember = "Bar";
			// 
			// marksTip1
			// 
			this.marksTip1.Series = this.barSeries1;
			// 
			// checkBox1
			// 
			this.checkBox1.Checked = true;
			this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
			this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.checkBox1.Location = new System.Drawing.Point(13, 7);
			this.checkBox1.Name = "checkBox1";
			this.checkBox1.Size = new System.Drawing.Size(99, 21);
			this.checkBox1.TabIndex = 0;
			this.checkBox1.Text = "&Show tips on:";
			this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
			// 
			// comboBox1
			// 
			this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.comboBox1.Items.AddRange(new object[] {
																									 "Move",
																									 "Click"});
			this.comboBox1.Location = new System.Drawing.Point(104, 7);
			this.comboBox1.Name = "comboBox1";
			this.comboBox1.Size = new System.Drawing.Size(80, 21);
			this.comboBox1.TabIndex = 1;
			this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
			// 
			// button1
			// 
			this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.button1.Location = new System.Drawing.Point(333, 6);
			this.button1.Name = "button1";
			this.button1.TabIndex = 2;
			this.button1.Text = "&Edit...";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(193, 9);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(61, 16);
			this.label1.TabIndex = 3;
			this.label1.Text = "&Delay [ms]:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
			// 
			// numericUpDown1
			// 
			this.numericUpDown1.Location = new System.Drawing.Point(253, 7);
			this.numericUpDown1.Maximum = new System.Decimal(new int[] {
																																	 1000,
																																	 0,
																																	 0,
																																	 0});
			this.numericUpDown1.Name = "numericUpDown1";
			this.numericUpDown1.Size = new System.Drawing.Size(54, 20);
			this.numericUpDown1.TabIndex = 4;
			this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown1.Value = new System.Decimal(new int[] {
																																 10,
																																 0,
																																 0,
																																 0});
			this.numericUpDown1.TextChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
			this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
			// 
			// Tools_MarksTip
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(466, 286);
			this.Name = "Tools_MarksTip";
			this.Load += new System.EventHandler(this.Tools_MarksTip_Load);
			this.panel1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
			this.ResumeLayout(false);

		}