示例#1
0
        public static void ShowToolTip( Drawing.ColorTable colorTable, SuperToolTipInfo info, Control owner, Point p, bool balloon )
        {
            if( _suppressCount != 0 || WinFormsUtility.Events.MenuLoop.InMenuLoop )
            {
                return;
            }

            if( _existing != null )
            {
                if( object.Equals( _existing.Info, info ) )
                {
                    return;
                }
                else
                {
                    _existing.Close();
                    _existing = null;
                }
            }

            _mousePoint = Control.MousePosition;

            _existing = new SuperToolTip( colorTable, info, p, balloon );

            _existing.Show( owner );
        }
示例#2
0
 public static void CloseToolTip()
 {
     if( _existing != null )
     {
         _existing.Close();
         _existing = null;
     }
 }