Click here to Skip to main content
13,259,194 members (48,742 online)
Click here to Skip to main content
Articles » Languages » C# » Applications » Downloads

Stats

213K views
2.5K downloads
273 bookmarked
Posted 2 Feb 2007

Context Help Made Easy

, 2 Feb 2007
This article introduces a new way of instrumenting your code that enables help authors associate help topics with the application’s visual contexts at any time - even post-compilation – and to do so using the application’s user interface without the involvement of the developer.
namespace ContextHelpMadeEasy
{
    partial class FHelpMappingDialog
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FHelpMappingDialog));
            this.lvMapping = new System.Windows.Forms.ListView();
            this.chTopic = new System.Windows.Forms.ColumnHeader();
            this.chContext = new System.Windows.Forms.ColumnHeader();
            this.btnOK = new System.Windows.Forms.Button();
            this.btnCancel = new System.Windows.Forms.Button();
            this.btnEditTopicFile = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // lvMapping
            // 
            this.lvMapping.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.lvMapping.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.chTopic,
            this.chContext});
            this.lvMapping.Font = new System.Drawing.Font("Cambria", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lvMapping.FullRowSelect = true;
            this.lvMapping.GridLines = true;
            this.lvMapping.LabelEdit = true;
            this.lvMapping.Location = new System.Drawing.Point(15, 12);
            this.lvMapping.MultiSelect = false;
            this.lvMapping.Name = "lvMapping";
            this.lvMapping.Size = new System.Drawing.Size(488, 206);
            this.lvMapping.TabIndex = 0;
            this.lvMapping.UseCompatibleStateImageBehavior = false;
            this.lvMapping.View = System.Windows.Forms.View.Details;
            this.lvMapping.AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.lvMapping_AfterLabelEdit);
            // 
            // chTopic
            // 
            this.chTopic.Text = "Topic Filename";
            this.chTopic.Width = 181;
            // 
            // chContext
            // 
            this.chContext.Text = "Context";
            this.chContext.Width = 381;
            // 
            // btnOK
            // 
            this.btnOK.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
            this.btnOK.Location = new System.Drawing.Point(321, 224);
            this.btnOK.Name = "btnOK";
            this.btnOK.Size = new System.Drawing.Size(75, 23);
            this.btnOK.TabIndex = 3;
            this.btnOK.Text = "OK";
            this.btnOK.UseVisualStyleBackColor = true;
            this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
            // 
            // btnCancel
            // 
            this.btnCancel.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
            this.btnCancel.Location = new System.Drawing.Point(405, 224);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new System.Drawing.Size(75, 23);
            this.btnCancel.TabIndex = 4;
            this.btnCancel.Text = "Cancel";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
            // 
            // btnEditTopicFile
            // 
            this.btnEditTopicFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.btnEditTopicFile.Location = new System.Drawing.Point(12, 224);
            this.btnEditTopicFile.Name = "btnEditTopicFile";
            this.btnEditTopicFile.Size = new System.Drawing.Size(154, 23);
            this.btnEditTopicFile.TabIndex = 5;
            this.btnEditTopicFile.Text = "Edit Topic Filename";
            this.btnEditTopicFile.UseVisualStyleBackColor = true;
            this.btnEditTopicFile.Click += new System.EventHandler(this.btnEditTopicFile_Click);
            // 
            // FHelpMappingDialog
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(513, 252);
            this.Controls.Add(this.btnEditTopicFile);
            this.Controls.Add(this.btnCancel);
            this.Controls.Add(this.btnOK);
            this.Controls.Add(this.lvMapping);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "FHelpMappingDialog";
            this.Text = "Help Mapping";
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.ListView lvMapping;
        private System.Windows.Forms.ColumnHeader chTopic;
        private System.Windows.Forms.ColumnHeader chContext;
        private System.Windows.Forms.Button btnOK;
        private System.Windows.Forms.Button btnCancel;
        private System.Windows.Forms.Button btnEditTopicFile;
    }
}

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

Tom Clement
Product Manager
United States United States
I've been programming in C, C++, Visual Basic and C# for over 30 years. I've worked at Sierra Systems, ViewStar, Mosaix, Lucent, Avaya, Avinon, Apptero, Serena and now Guidewire Software in various roles over my career.

You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171114.1 | Last Updated 2 Feb 2007
Article Copyright 2007 by Tom Clement
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid