private bool ToolTipCreated()
        {
            //Logger.LogTrace("ToolTipCreated");

            try
            {
                RemoveAll();

                _tip = new OPMToolTip();
                _tip.AutomaticDelay = this.AutomaticDelay;
                _tip.AutoPopDelay   = this.AutoPopDelay;
                _tip.InitialDelay   = this.InitialDelay;
                _tip.ReshowDelay    = this.ReshowDelay;

                _tip.Disposed += new EventHandler(_tip_Disposed);
                _tip.Popup    += new PopupEventHandler(_tip_Popup);

                //Logger.LogTrace("ToolTipCreated -> return True");

                return(true);
            }
            catch (Exception ex)
            {
                //Logger.LogTrace("ToolTipCreated esxception: {0}", ex.ToString());
                //Logger.LogTrace("ToolTipCreated -> return False");
                return(false);
            }
        }
        void _tip_Disposed(object sender, EventArgs e)
        {
            if (sender == _tip)
            {
                //Logger.LogTrace("_tip_Disposed");

                _tip = null;
                _pos = Point.Empty;
            }
        }
        public void RemoveAll()
        {
            //Logger.LogTrace_WithStackDump("RemoveAll");

            if (_tip != null)
            {
                //Logger.LogTrace("RemoveAll => Hide");

                _tip.Hide(_ctl);
                _tip.Dispose();
                _tip = null;
                _pos = Point.Empty;
            }
        }
Esempio n. 4
0
        public void RemoveAll()
        {
            //Logger.LogTrace_WithStackDump("RemoveAll");

            if (_tip != null)
            {
                //Logger.LogTrace("RemoveAll => Hide");

                _tip.Hide(_ctl);
                _tip.Dispose();
                _tip = null;
                _pos = Point.Empty;
            }
        }
Esempio n. 5
0
        void _tip_Disposed(object sender, EventArgs e)
        {
            if (sender == _tip)
            {
                //Logger.LogTrace("_tip_Disposed");

                _tip = null;
                _pos = Point.Empty;
            }
        }
Esempio n. 6
0
        private bool ToolTipCreated()
        {
            //Logger.LogTrace("ToolTipCreated");

            try
            {
                RemoveAll();
                
                _tip = new OPMToolTip();
                _tip.AutomaticDelay = this.AutomaticDelay;
                _tip.AutoPopDelay = this.AutoPopDelay;
                _tip.InitialDelay = this.InitialDelay;
                _tip.ReshowDelay = this.ReshowDelay;

                _tip.Disposed += new EventHandler(_tip_Disposed);
                _tip.Popup += new PopupEventHandler(_tip_Popup);

                //Logger.LogTrace("ToolTipCreated -> return True");

                return true;
            }
            catch(Exception ex)
            {
                //Logger.LogTrace("ToolTipCreated esxception: {0}", ex.ToString());
                //Logger.LogTrace("ToolTipCreated -> return False");
                return false;
            }
        }