private void DestroyTooltipWindow()
 {
     if (myTooltip != null)
     {
         HideBubble();
         myTooltip.DestroyHandle();
         myTooltip = null;
     }
 }
Exemplo n.º 2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="NuGenToolTip"/> class.
		/// </summary>
		/// <param name="serviceProvider">
		/// <para>Requires:</para>
		/// <para><see cref="INuGenToolTipLayoutManager"/></para>
		/// <para><see cref="INuGenToolTipRenderer"/></para>
		/// </param>
		/// <exception cref="ArgumentNullException">
		/// <para><paramref name="serviceProvider"/> is <see langword="null"/>.</para>
		/// </exception>
		public NuGenToolTip(INuGenServiceProvider serviceProvider)
		{
			if (serviceProvider == null)
			{
				throw new ArgumentNullException("serviceProvider");
			}

			_serviceProvider = serviceProvider;
			
			_components = new Container();
			_tooltip = new ToolTipControl(serviceProvider);
			_components.Add(_tooltip);
			
			_autoPopDelayTimer = new Timer(_components);
			_autoPopDelayTimer.Interval = this.AutoPopDelay;
			_autoPopDelayTimer.Tick += _autoPopDelayTimer_Tick;
		}
 /// <summary>
 ///     Control.OnHandleCreate override
 /// </summary>
 /// <param name="e">EventArgs</param>
 protected override void OnHandleCreated(EventArgs e)
 {
     EnsureHeaderContainer();
     CalcTextHeight();
     CalcItemHeight(true);
     base.OnHandleCreated(e);
     if (ShowToolTips)
     {
         myTooltip = new ToolTipControl(this);
     }
     AttachHeaderContainer();
     AfterHandleCreated();
 }