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.
Inheritance: System.Windows.Forms.ToolTip
Example #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);
        }
Example #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();
		}
Example #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();
		}
Example #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 );
		}