// Uncomment if the magnified tooltip of a histogram's phone is desired. //private readonly ToolTip m_phoneToolTip; /// ------------------------------------------------------------------------------------ public Histogram() { InitializeComponent(); _hashMarkGap = Properties.Settings.Default.HistogramHashMarkGap; _phoneLabelWidth = Properties.Settings.Default.HistogramPhoneLabelWidth; _extraPhoneHeight = Properties.Settings.Default.HistogramExtraPhoneLabelHeight; _barWidth = Properties.Settings.Default.HistogramBarWidth; _phoneFontSize = Properties.Settings.Default.HistogramPhoneLabelFontSize; // Uncomment if the magnified tooltip of a histogram's phone is desired. //m_phoneToolTip = new ToolTip(); //m_phoneToolTip.OwnerDraw = true; //m_phoneToolTip.Draw += HandlePhoneToolTipDraw; //m_phoneToolTip.Popup += HandlePhoneToolTipPopup; base.DoubleBuffered = true; pnlFixedBorder.Dock = DockStyle.Fill; pnlFixedBorder.BringToFront(); pnlPhones.BackColor = Color.Transparent; pnlBars.BorderStyle = BorderStyle.None; pnlYaxis.BorderStyle = BorderStyle.None; _phoneInfoPopup = new PhoneInfoPopup(); }
/// ------------------------------------------------------------------------------------ public CVChartGrid() { Font = FontHelper.MakeRegularFontDerivative(App.PhoneticFont, 14); BorderStyle = BorderStyle.None; AllowUserToOrderColumns = false; AllowUserToResizeColumns = false; SelectionMode = DataGridViewSelectionMode.CellSelect; PaintHeaderAcrossFullGridWidth = false; ColumnGroups = new List <CVChartColumnGroup>(); RowGroups = new List <CVChartRowGroup>(); m_phoneInfoPopup = new PhoneInfoPopup(this); }
/// ------------------------------------------------------------------------------------ public PhoneInfoPopupContent(PhoneInfoPopup hostingPopup) : this() { m_hostingPopup = hostingPopup; }