Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

OpenWPFChart: assembling charts from components: Part I - Parts

, 19 Mar 2009
Provides the component model along with base components to assemble charts.
SourceCode.zip
trunk
ChartControls
ChartControls.csproj.user
OpenWPFChart.Chart.Icon.png
OpenWPFChart.WellLogChart.Icon.png
Properties
Themes
ChartHelpers
AxisPropertiesDialog
ChartHelpers.csproj.user
ChartScaleControl
FontChooser
ItemPropertiesDialog
Properties
ChartParts
Axes
ChartParts.csproj.user
Grid
Items
Data
DataView
Elements
Visuals
NumericalRecipes
Properties
Scales
ChartParts.vsmdi
SampleDataFiles
WellLog
Samples
ControlSamples
ColumnChartControlSample
Properties
Settings.settings
CurveChartControlSample
Properties
Settings.settings
WellLogControlSample
Properties
Settings.settings
DirectCompositionSamples
BasicSample
Properties
Settings.settings
TemperatureSample
Properties
Settings.settings
WellLogSample
Properties
Settings.settings
// <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)

Share

About the Author

Oleg V. Polikarpotchkin
Team Leader
Russian Federation Russian Federation
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.140821.2 | Last Updated 19 Mar 2009
Article Copyright 2009 by Oleg V. Polikarpotchkin
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid