Click here to Skip to main content
15,895,192 members
Articles / Desktop Programming / WPF

OpenWPFChart: Assembling Charts from Components. Part II - Controls

Rate me:
Please Sign up or sign in to vote.
4.90/5 (14 votes)
26 Mar 2009CPOL10 min read 70.1K   2.2K   52  
Chart controls composed from Chart Parts
// <revision>$Id: ToolTipMessage.cs 18093 2009-03-16 04:15:06Z unknown $</revision>

#region Using directives

using System;
using System.Collections;
using System.Text;

#endregion

namespace Microsoft.Samples.WPFNotepad
{
    /// <summary>
    /// define tool tip message for font dialog
    /// </summary>
    class ToolTipMessage
    {
        /// <summary>
        /// hashtable to hold all the message.
        /// </summary>
        static Hashtable table = new Hashtable();
        /// <summary>
        /// method to fill up the hastable.
        /// </summary>
        static ToolTipMessage()
        {
            table.Add("OKButton", "Close the dialog and save any changes you have made");
            table.Add("CancelButton", "Close the dialog without saving any changes you have made");
            
            table.Add("StrikeCheckBox", "Check/uncheck to draw/undraw StrikeLine");
            table.Add("UnderLineCheckBox", "Check/uncheck to draw/undraw UnderLine");
            table.Add("BaseLineCheckBox", "Check/uncheck to draw/undraw BaseLine");
            table.Add("OverLineCheckBox", "Check/uncheck to draw/undraw OverLine");
            table.Add("TestRichTextBox", "Sample font, size, weight, color, etc");
            table.Add("TextColorListBox", "List popular colors for text");
            table.Add("TextColorTextBox", "Input to find an available color");
            table.Add("FontSizeListBox", "List available sizes in point for specified font");
            table.Add("FontStretchListBox", "List available stretchs for specified font");
            table.Add("FontWeightListBox", "List available weights for specified font");
            table.Add("FontStyleListBox", "List available styles for specified font");
            table.Add("FontFamilyListBox", "List available System fonts");
            table.Add("FontSizeTextBox", "Input to find an available font Size");
            table.Add("FontStretchTextBox", "Input to find an available font Stretch");
            table.Add("FontWeightTextBox", "Input to find an available font Weight");
            table.Add("FontStyleTextBox", "Input to find an available font Style");
            table.Add("FontFamilyTextBox", "Input to find an available System font");
        }
        /// <summary>
        /// return the hastable containing all the tooltip messages. using the Control Name as key to retrieve the message.
        /// </summary>
        /// <param name="ControlID">the key to return a specific message.</param>
        /// <returns>return a string that describle the usage of each control in the Font dialog</returns>
        public static string GetToolTipMessage(string ControlID)
        {
            return (string)table[ControlID];

        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions