Ejemplo n.º 1
0
        private PanelEx CreateItem(string title, Color color)
        {
            PanelEx objPanel = new PanelEx();

            objPanel.Margin           = new System.Windows.Forms.Padding(2);
            objPanel.CanvasColor      = System.Drawing.SystemColors.Control;
            objPanel.ColorSchemeStyle = eDotNetBarStyle.Office2010;
            objPanel.Size             = new System.Drawing.Size(91, 20);
            objPanel.Style.Alignment  = System.Drawing.StringAlignment.Center;
            objPanel.Style.BorderColor.ColorSchemePart = eColorSchemePart.Custom;
            objPanel.Style.BorderColor.Color           = Color.LightBlue;
            objPanel.Style.BackColor2.ColorSchemePart  = eColorSchemePart.Custom;
            objPanel.Style.BackColor2.Color            = color;
            objPanel.Style.BackColor1.ColorSchemePart  = eColorSchemePart.Custom;
            objPanel.Style.BackColor1.Color            = Color.White;
            objPanel.Style.ForeColor.ColorSchemePart   = eColorSchemePart.Custom;
            objPanel.Style.ForeColor.Color             = Color.Black;
            objPanel.Style.Border         = DevComponents.DotNetBar.eBorderType.SingleLine;
            objPanel.Style.CornerDiameter = 3;
            objPanel.Style.CornerType     = DevComponents.DotNetBar.eCornerType.Diagonal;
            objPanel.Style.GradientAngle  = 90;
            objPanel.Style.TextTrimming   = System.Drawing.StringTrimming.None;
            objPanel.Text   = title;
            Tip.DefaultFont = Font;
            Tip.SetSuperTooltip(objPanel, new SuperTooltipInfo("", "", title, null, null, eTooltipColor.Office2003));

            return(objPanel);
        }
Ejemplo n.º 2
0
        private void ClearItems()
        {
            foreach (Control ctl in TaggingContainer.Controls)
            {
                Tip.SetSuperTooltip(ctl, null);
            }

            TaggingContainer.Controls.Clear();
        }