コード例 #1
0
ファイル: BalloonTip.cs プロジェクト: webgr/just-gestures
 /// <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);
 }
コード例 #2
0
ファイル: BalloonTip.cs プロジェクト: webgr/just-gestures
        /// <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);
        }
コード例 #3
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);

		}
コード例 #4
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);
		}