using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using AxSftButtonLib25;
using SftButtonLib25;
using Softelvdm.OLEConvert;
namespace Label
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
internal AxSftButtonLib25.AxSftButton axSftButton8;
internal AxSftButtonLib25.AxSftButton axSftButton9;
internal AxSftButtonLib25.AxSftButton axSftButton10;
internal AxSftButtonLib25.AxSftButton axSftButton11;
internal AxSftButtonLib25.AxSftButton axSftButton7;
internal AxSftButtonLib25.AxSftButton axSftButton6;
internal AxSftButtonLib25.AxSftButton axSftButton5;
internal AxSftButtonLib25.AxSftButton axSftButton4;
internal AxSftButtonLib25.AxSftButton axSftButton3;
internal AxSftButtonLib25.AxSftButton axSftButton2;
internal AxSftButtonLib25.AxSftButton axSftButton1;
private Softelvdm.OCXHelper.SftHelperComponent sftHelperComponent1;
private System.ComponentModel.IContainer components;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after 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 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()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
this.label1 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.axSftButton8 = new AxSftButtonLib25.AxSftButton();
this.axSftButton9 = new AxSftButtonLib25.AxSftButton();
this.axSftButton10 = new AxSftButtonLib25.AxSftButton();
this.axSftButton11 = new AxSftButtonLib25.AxSftButton();
this.axSftButton7 = new AxSftButtonLib25.AxSftButton();
this.axSftButton6 = new AxSftButtonLib25.AxSftButton();
this.axSftButton5 = new AxSftButtonLib25.AxSftButton();
this.axSftButton4 = new AxSftButtonLib25.AxSftButton();
this.axSftButton3 = new AxSftButtonLib25.AxSftButton();
this.axSftButton2 = new AxSftButtonLib25.AxSftButton();
this.axSftButton1 = new AxSftButtonLib25.AxSftButton();
this.sftHelperComponent1 = new Softelvdm.OCXHelper.SftHelperComponent(this.components);
((System.ComponentModel.ISupportInitialize)(this.axSftButton8)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton9)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton10)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton11)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton1)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label1.Location = new System.Drawing.Point(8, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(296, 24);
this.label1.TabIndex = 1;
this.label1.Text = "Button Labels - Basic Styles";
//
// button1
//
this.button1.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.button1.Location = new System.Drawing.Point(376, 8);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(64, 24);
this.button1.TabIndex = 11;
this.button1.Text = "Close";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label2
//
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label2.Location = new System.Drawing.Point(24, 40);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(208, 24);
this.label2.TabIndex = 3;
this.label2.Text = "Horizontal Layout";
//
// label3
//
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label3.Location = new System.Drawing.Point(24, 104);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(208, 24);
this.label3.TabIndex = 8;
this.label3.Text = "Vertical Layout";
//
// label4
//
this.label4.Location = new System.Drawing.Point(24, 208);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(400, 56);
this.label4.TabIndex = 11;
this.label4.Text = "Use bitmaps, icons, metafiles as picture components, single and multi-line text a" +
"nd varying vertical and horizontal alignment options for each picture and text c" +
"omponent.";
//
// axSftButton8
//
this.axSftButton8.Location = new System.Drawing.Point(32, 272);
this.axSftButton8.Name = "axSftButton8";
this.axSftButton8.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSftButton8.OcxState")));
this.axSftButton8.Size = new System.Drawing.Size(80, 40);
this.axSftButton8.TabIndex = 7;
//
// axSftButton9
//
this.axSftButton9.Location = new System.Drawing.Point(128, 272);
this.axSftButton9.Name = "axSftButton9";
this.axSftButton9.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSftButton9.OcxState")));
this.axSftButton9.Size = new System.Drawing.Size(80, 40);
this.axSftButton9.TabIndex = 8;
//
// axSftButton10
//
this.axSftButton10.Location = new System.Drawing.Point(224, 272);
this.axSftButton10.Name = "axSftButton10";
this.axSftButton10.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSftButton10.OcxState")));
this.axSftButton10.Size = new System.Drawing.Size(80, 40);
this.axSftButton10.TabIndex = 9;
//
// axSftButton11
//
this.axSftButton11.Location = new System.Drawing.Point(320, 272);
this.axSftButton11.Name = "axSftButton11";
this.axSftButton11.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSftButton11.OcxState")));
this.axSftButton11.Size = new System.Drawing.Size(80, 40);
this.axSftButton11.TabIndex = 10;
//
// axSftButton7
//
this.axSftButton7.Location = new System.Drawing.Point(320, 136);
this.axSftButton7.Name = "axSftButton7";
this.axSftButton7.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSftButton7.OcxState")));
this.axSftButton7.Size = new System.Drawing.Size(64, 64);
this.axSftButton7.TabIndex = 6;
//
// axSftButton6
//
this.axSftButton6.Location = new System.Drawing.Point(224, 136);
this.axSftButton6.Name = "axSftButton6";
this.axSftButton6.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSftButton6.OcxState")));
this.axSftButton6.Size = new System.Drawing.Size(64, 64);
this.axSftButton6.TabIndex = 5;
//
// axSftButton5
//
this.axSftButton5.Location = new System.Drawing.Point(128, 136);
this.axSftButton5.Name = "axSftButton5";
this.axSftButton5.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSftButton5.OcxState")));
this.axSftButton5.Size = new System.Drawing.Size(64, 64);
this.axSftButton5.TabIndex = 4;
//
// axSftButton4
//
this.axSftButton4.Location = new System.Drawing.Point(320, 64);
this.axSftButton4.Name = "axSftButton4";
this.axSftButton4.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSftButton4.OcxState")));
this.axSftButton4.Size = new System.Drawing.Size(80, 24);
this.axSftButton4.TabIndex = 3;
//
// axSftButton3
//
this.axSftButton3.Location = new System.Drawing.Point(224, 64);
this.axSftButton3.Name = "axSftButton3";
this.axSftButton3.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSftButton3.OcxState")));
this.axSftButton3.Size = new System.Drawing.Size(80, 24);
this.axSftButton3.TabIndex = 2;
//
// axSftButton2
//
this.axSftButton2.Location = new System.Drawing.Point(128, 64);
this.axSftButton2.Name = "axSftButton2";
this.axSftButton2.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSftButton2.OcxState")));
this.axSftButton2.Size = new System.Drawing.Size(80, 24);
this.axSftButton2.TabIndex = 1;
//
// axSftButton1
//
this.axSftButton1.Location = new System.Drawing.Point(32, 64);
this.axSftButton1.Name = "axSftButton1";
this.axSftButton1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSftButton1.OcxState")));
this.axSftButton1.Size = new System.Drawing.Size(80, 24);
this.axSftButton1.TabIndex = 0;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.CancelButton = this.button1;
this.ClientSize = new System.Drawing.Size(448, 342);
this.Controls.Add(this.axSftButton8);
this.Controls.Add(this.axSftButton9);
this.Controls.Add(this.axSftButton10);
this.Controls.Add(this.axSftButton11);
this.Controls.Add(this.axSftButton7);
this.Controls.Add(this.axSftButton6);
this.Controls.Add(this.axSftButton5);
this.Controls.Add(this.axSftButton4);
this.Controls.Add(this.axSftButton3);
this.Controls.Add(this.axSftButton2);
this.Controls.Add(this.axSftButton1);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.button1);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Form1";
this.Text = "Softel vdm, Inc. - Label Sample";
this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.axSftButton8)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton9)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton10)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton11)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axSftButton1)).EndInit();
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
//--locate-marker--
private void button1_Click(object sender, System.EventArgs e)
{
Application.Exit();
}
private void Form1_Load(object sender, System.EventArgs e)
{
axSftButton8.Text = "Two Lines\nof Text";
}
}
}