Exemple #1
0
        private void OnDraw(object sender, DrawToolTipEventArgs e) // use this event to customise the tool tip
        {
            Bounds = e.Bounds;                                     // Store show Bounds
            HmsToolTip          tip = sender as HmsToolTip;
            Graphics            g   = e.Graphics;
            LinearGradientBrush b   = new LinearGradientBrush(Bounds, Color.White, Color.FromArgb(0xE4, 0xE5, 0xF0), 90f);

            g.FillRectangle(b, Bounds);
            e.DrawBorder();
            g.SmoothingMode = SmoothingMode.HighQuality;
            float i;

            WriteWords(GetText(e.ToolTipText, out i), Bounds, g);
            Visible = true;
        }
 // < By WendyH -----------------------------------
 protected override void Dispose(bool disposing)
 {
     if (disposing) {
         ToolTip?.Dispose();
         timer  ?.Dispose();
         VerticalScrollBar?.Dispose();
     }
     FocussedItemIndexChanged = null;
     visibleItems = null;
     sourceItems  = null;
     VisibleVariables = null;
     VisibleLocalVars = null;
     VisibleFunctions = null;
     tb      = null;
     ToolTip = null;
     timer   = null;
     VerticalScrollBar = null;
     base.Dispose(disposing);
     ResizeRedraw = true;
 }