Exemplo n.º 1
0
        // update regular tooltip using Show/Hide methods
        private void _flex4_MouseHoverCell(object sender, EventArgs e)
        {
            C1.Win.C1FlexGrid.C1FlexGrid flex = sender as C1.Win.C1FlexGrid.C1FlexGrid;
            string tip = string.Format("This is a regular tip on cell ({0},{1})", flex.MouseRow, flex.MouseCol);
            Point  pt  = flex.PointToClient(Control.MousePosition);

            this.toolTip1.Show(tip, flex, pt);
        }
Exemplo n.º 2
0
        // update super tooltip using Show/Hide methods
        private void _flex3_MouseHoverCell(object sender, EventArgs e)
        {
            C1.Win.C1FlexGrid.C1FlexGrid flex = sender as C1.Win.C1FlexGrid.C1FlexGrid;
            string tip = _tip.Replace("(row,col)", string.Format("<b>({0},{1})</b>", flex.MouseRow, flex.MouseCol));
            Point  pt  = flex.PointToClient(Control.MousePosition);

            this.c1SuperTooltip1.Show(tip, flex, pt);
        }