Beispiel #1
0
 /// <summary>
 /// Creates a new instance of the MessageBalloon.
 /// </summary>
 public BalloonTip()
 {
     m_tool             = new MessageTool();
     m_tool.MouseLeave += new MessageTool.DlgMouseLeave(OnMouseLeave);
     m_tool.DeActivate += new MessageTool.DlgDeActivate(OnDeActivate);
     //m_tool.DeActivate += new DeActivateEventHandler(this.Hide);
 }
Beispiel #2
0
        /// <summary>
        /// Creates a new instance of the MessageBalloon.
        /// </summary>
        /// <param name="parent">Set the parent control which will display.</param>
        public BalloonTip(Control parent)
        {
            m_parent           = parent;
            m_tool             = new MessageTool();
            m_tool.MouseLeave += new MessageTool.DlgMouseLeave(OnMouseLeave);
            m_tool.DeActivate += new MessageTool.DlgDeActivate(OnDeActivate);
            //m_tool.DeActivate += new DeActivateEventHandler(this.Hide);

            Form parentForm = parent.FindForm();

            parentForm.Deactivate      += new EventHandler(ParentFormDeactivate_EventHandler);
            parentForm.HandleDestroyed += new EventHandler(ParentFormDeactivate_EventHandler);
        }
		/// <summary>
		/// Creates a new instance of the MessageBalloon.
		/// </summary>
		/// <param name="parent">Set the parent control which will display.</param>
		public BalloonTip(Control parent)
		{
			m_parent = parent;
            m_tool = new MessageTool();
            m_tool.MouseLeave += new MessageTool.DlgMouseLeave(OnMouseLeave);
            m_tool.DeActivate += new MessageTool.DlgDeActivate(OnDeActivate);
			//m_tool.DeActivate += new DeActivateEventHandler(this.Hide);

            Form parentForm = parent.FindForm();
            parentForm.Deactivate += new EventHandler(ParentFormDeactivate_EventHandler);
            parentForm.HandleDestroyed += new EventHandler(ParentFormDeactivate_EventHandler);

		}
		/// <summary>
		/// Creates a new instance of the MessageBalloon.
		/// </summary>
		public BalloonTip()
		{
            m_tool = new MessageTool();
            m_tool.MouseLeave += new MessageTool.DlgMouseLeave(OnMouseLeave);
            m_tool.DeActivate += new MessageTool.DlgDeActivate(OnDeActivate);
			//m_tool.DeActivate += new DeActivateEventHandler(this.Hide);
		}