示例#1
0
		public LiveDataTip()
		{
			m_ToolTip = new DataTipForm();
			m_ToolTip.Dock = DockStyle.Fill;
			m_ToolTip.Visible = false;

			m_MouseMessageFilter = new MouseMessageFilter();
			m_MouseMessageFilter.AddControls(new Control[] { m_ToolTip, m_ToolTip.DataTree });
			m_MouseMessageFilter.MouseDownEvent += new MouseDownEventHandler(MouseMessageFilter_MouseDownEvent);

			Application.AddMessageFilter(m_MouseMessageFilter);

			UITools.Manager.OnMouseHover += new UITools.MouseHoverHandler(Manager_OnMouseHover);
		}
示例#2
0
        public LiveDataTip()
        {
            m_ToolTip         = new DataTipForm();
            m_ToolTip.Dock    = DockStyle.Fill;
            m_ToolTip.Visible = false;

            m_MouseMessageFilter = new MouseMessageFilter();
            m_MouseMessageFilter.AddControls(new Control[] { m_ToolTip, m_ToolTip.DataTree });
            m_MouseMessageFilter.MouseDownEvent += new MouseDownEventHandler(MouseMessageFilter_MouseDownEvent);

            Application.AddMessageFilter(m_MouseMessageFilter);

            UITools.Manager.OnMouseHover += new UITools.MouseHoverHandler(Manager_OnMouseHover);
        }