|
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
namespace SmartInstitute.Client
{
/// <summary>
/// Summary description for Office2003HeaderSub.
/// </summary>
public class Office2003HeaderSub : System.Windows.Forms.Panel
{
private System.Windows.Forms.Panel headerPanel;
private System.Windows.Forms.Label Title;
private System.Windows.Forms.Label HeaderLine;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public Office2003HeaderSub()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
// TODO: Add any initialization after the InitializeComponent call
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Component 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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Office2003HeaderSub));
this.headerPanel = new System.Windows.Forms.Panel();
this.Title = new System.Windows.Forms.Label();
this.HeaderLine = new System.Windows.Forms.Label();
this.headerPanel.SuspendLayout();
this.SuspendLayout();
//
// headerPanel
//
this.headerPanel.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("headerPanel.BackgroundImage")));
this.headerPanel.Controls.Add(this.Title);
this.headerPanel.Controls.Add(this.HeaderLine);
this.headerPanel.Dock = System.Windows.Forms.DockStyle.Top;
this.headerPanel.Location = new System.Drawing.Point(0, 0);
this.headerPanel.Name = "headerPanel";
this.headerPanel.Size = new System.Drawing.Size(344, 20);
this.headerPanel.TabIndex = 0;
//
// Title
//
this.Title.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.Title.BackColor = System.Drawing.Color.Transparent;
this.Title.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.Title.ForeColor = System.Drawing.Color.Black;
this.Title.Location = new System.Drawing.Point(2, 3);
this.Title.Name = "Title";
this.Title.Size = new System.Drawing.Size(322, 16);
this.Title.TabIndex = 0;
this.Title.Text = "SubHeading Title";
this.Title.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// HeaderLine
//
this.HeaderLine.BackColor = System.Drawing.Color.Navy;
this.HeaderLine.Dock = System.Windows.Forms.DockStyle.Bottom;
this.HeaderLine.Location = new System.Drawing.Point(0, 19);
this.HeaderLine.Name = "HeaderLine";
this.HeaderLine.Size = new System.Drawing.Size(344, 1);
this.HeaderLine.TabIndex = 1;
//
// Office2003HeaderSub
//
this.BackColor = System.Drawing.SystemColors.Control;
this.Controls.Add(this.headerPanel);
this.Size = new System.Drawing.Size(344, 144);
this.Resize += new System.EventHandler(this.Office2003HeaderSub_Resize);
this.headerPanel.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private void Office2003HeaderSub_Resize(object sender, System.EventArgs e)
{
}
#region Properties
/// <summary>
/// Property use the set the title text of the control
/// </summary>
[Description("Set the Text for the Title of the header control."),
Category("Appearance")]
public string TitleText
{
get
{
return Title.Text;
}
set
{
Title.Text = value;
}
}
/// <summary>
/// Property used to set the header font
/// </summary>
[Description("Set the Font of the the Title of the header control."),
Category("Appearance")]
public Font TitleFont
{
get
{
return Title.Font;
}
set
{
Title.Font = value;
}
}
#endregion
}
}
|
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.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here