Beispiel #1
0
        private void Chart_ClickSeries(object sender, Series s, int valueIndex, Steema.TeeChart.Drawing.MouseEventArgs e)
        {
            var chart = sender as Chart;

            calendar.SetCell(e.X, e.Y);
            labelHeader.Text = calendar.Date.ToShortDateString();
        }
Beispiel #2
0
        private void Chart_ClickSeries(object sender, Series s, int valueIndex, Steema.TeeChart.Drawing.MouseEventArgs e)
        {
            var chart = sender as Chart;

            calendar.SetCell(e.X, e.Y);
            //Steema.TeeChart.Styles.Calendar.CalendarCell cell = new Steema.TeeChart.Styles.Calendar.CalendarCell();
            calendar[calendar.Clicked(e.Location)].Color = Color.Red;
            chart.Header.Text = MyConvert.NumericMonthToString(calendar.Date.Month) + ", " + calendar.Date.Year.ToString();
        }
Beispiel #3
0
 private void Chart_ClickSeries(object sender, Steema.TeeChart.Styles.Series s, int valueIndex, Steema.TeeChart.Drawing.MouseEventArgs e)
 {
     ann.Active = true;
     ann.Text   = pie.PieValues.Value[valueIndex].ToString();
     ann.Left   = e.X - ann.Width / 2;
     ann.Top    = e.Y - 20;
 }