Provides an owner-drawn class that displays Unicode values for a text string and the ICU character name when the text string is a single character.
상속: System.Windows.Forms.ToolTip
예제 #1
0
        /// -----------------------------------------------------------------------------------
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged
        /// resources; <c>false</c> to release only unmanaged resources.
        /// </param>
        /// -----------------------------------------------------------------------------------
        protected override void Dispose(bool disposing)
        {
            Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** ");
            // Must not be run more than once.
            if (IsDisposed)
            {
                return;
            }

            if (disposing)
            {
                if (m_fntForSpecialChar != null)
                {
                    m_fntForSpecialChar.Dispose();
                }
                if (m_toolTip != null)
                {
                    m_toolTip.Dispose();
                }
            }
            m_fntForSpecialChar = null;
            m_toolTip           = null;

            base.Dispose(disposing);
        }
예제 #2
0
        /// -----------------------------------------------------------------------------------
        /// <summary>
        /// Initializes a new instance of the <see cref="CharacterGrid"/> class.
        /// </summary>
        /// -----------------------------------------------------------------------------------
        public CharacterGrid()
        {
            DoubleBuffered           = true;
            AllowUserToAddRows       = false;
            AllowUserToDeleteRows    = false;
            AllowUserToResizeColumns = false;
            AllowUserToResizeRows    = false;
            MultiSelect                = false;
            ReadOnly                   = true;
            ColumnHeadersVisible       = false;
            RowHeadersVisible          = false;
            VirtualMode                = true;
            ShowCellToolTips           = false;
            BorderStyle                = BorderStyle.None;
            DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            BackColor                  = SystemColors.Window;
            Name = "CharacterGrid";

            m_fntForSpecialChar = new Font(SystemFonts.IconTitleFont.FontFamily, 8f);
            m_toolTip           = new CharacterInfoToolTip();
        }
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="T:EditorialChecksGrid"/> class.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public EditorialChecksGrid()
		{
			m_charChkResultToolTip = new CharacterInfoToolTip();
		}
예제 #4
0
		/// -----------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="CharacterGrid"/> class.
		/// </summary>
		/// -----------------------------------------------------------------------------------
		public CharacterGrid()
		{
			DoubleBuffered = true;
			AllowUserToAddRows = false;
			AllowUserToDeleteRows = false;
			AllowUserToResizeColumns = false;
			AllowUserToResizeRows = false;
			MultiSelect = false;
			ReadOnly = true;
			ColumnHeadersVisible = false;
			RowHeadersVisible = false;
			VirtualMode = true;
			ShowCellToolTips = false;
			BorderStyle = BorderStyle.None;
			DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
			BackColor = SystemColors.Window;
			Name = "CharacterGrid";

			m_fntForSpecialChar = new Font(SystemFonts.IconTitleFont.FontFamily, 8f);
			m_toolTip = new CharacterInfoToolTip();
		}
예제 #5
0
		/// -----------------------------------------------------------------------------------
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing"><c>true</c> to release both managed and unmanaged
		/// resources; <c>false</c> to release only unmanaged resources.
		/// </param>
		/// -----------------------------------------------------------------------------------
		protected override void Dispose(bool disposing)
		{
			Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** ");
			// Must not be run more than once.
			if (IsDisposed)
				return;

			if( disposing )
			{
				if (m_fntForSpecialChar != null)
					m_fntForSpecialChar.Dispose();
				if (m_toolTip != null)
					m_toolTip.Dispose();
			}
					m_fntForSpecialChar = null;
			m_toolTip = null;

			base.Dispose( disposing );
		}