//////////////////////////////////////////////////////////////////////
// Author : David Shepherd
// Copyright (c) 2003, DaeDoe-Software
//////////////////////////////////////////////////////////////////////
using System;
using System.Data;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
namespace CSDemo
{
public class Form1 : System.Windows.Forms.Form
{
// modified flag
private bool modified=false;
// class1 (used to demonstrate object exposing)
private Class1 class1=null;
// class2 (used to demonstrate object exposing)
private Class2 class2=null;
#region Windows Form Designer variables
// menu
private System.Windows.Forms.MainMenu mainMenu1;
// file menu
private System.Windows.Forms.MenuItem menuItemFile;
private System.Windows.Forms.MenuItem menuItemNew;
private System.Windows.Forms.MenuItem menuItemOpen;
private System.Windows.Forms.MenuItem menuItemSave;
private System.Windows.Forms.MenuItem menuItemSaveAs;
private System.Windows.Forms.MenuItem menuItemFileBar1;
private System.Windows.Forms.MenuItem menuItemExit;
// edit menu
private System.Windows.Forms.MenuItem menuItemEdit;
private System.Windows.Forms.MenuItem menuItemUndo;
private System.Windows.Forms.MenuItem menuItemRedo;
private System.Windows.Forms.MenuItem menuItemEditBar1;
private System.Windows.Forms.MenuItem menuItemCut;
private System.Windows.Forms.MenuItem menuItemCopy;
private System.Windows.Forms.MenuItem menuItemPaste;
private System.Windows.Forms.MenuItem menuItemEditBar2;
private System.Windows.Forms.MenuItem menuItemDelete;
private System.Windows.Forms.MenuItem menuItemEditBar3;
private System.Windows.Forms.MenuItem menuItemSelectAll;
private System.Windows.Forms.MenuItem menuItemUnselectAll;
private System.Windows.Forms.MenuItem menuItemEditBar4;
private System.Windows.Forms.MenuItem menuItemProperties;
// controls menu
private System.Windows.Forms.MenuItem menuItemControls;
private System.Windows.Forms.MenuItem menuItemInsertFrame;
private System.Windows.Forms.MenuItem menuItemInsertRectangle;
private System.Windows.Forms.MenuItem menuItemInsertPicture;
private System.Windows.Forms.MenuItem menuItemInsertLabel;
private System.Windows.Forms.MenuItem menuItemInsertButton;
private System.Windows.Forms.MenuItem menuItemInsertCheck;
private System.Windows.Forms.MenuItem menuItemInsertRadio;
private System.Windows.Forms.MenuItem menuItemInsertText;
private System.Windows.Forms.MenuItem menuItemInsertCombo;
private System.Windows.Forms.MenuItem menuItemInsertList;
private System.Windows.Forms.MenuItem menuItemInsertHorzScroll;
private System.Windows.Forms.MenuItem menuItemInsertVertScroll;
private System.Windows.Forms.MenuItem menuItemControlsBar1;
private System.Windows.Forms.MenuItem menuItemInsertSpin;
private System.Windows.Forms.MenuItem menuItemInsertSlider;
private System.Windows.Forms.MenuItem menuItemInsertProgress;
private System.Windows.Forms.MenuItem menuItemControlsBar2;
private System.Windows.Forms.MenuItem menuItemInsertActiveX;
// layout menu
private System.Windows.Forms.MenuItem menuItemLayout;
private System.Windows.Forms.MenuItem menuItemMoveLeft;
private System.Windows.Forms.MenuItem menuItemMoveRight;
private System.Windows.Forms.MenuItem menuItemMoveUp;
private System.Windows.Forms.MenuItem menuItemMoveDown;
private System.Windows.Forms.MenuItem menuItemLayoutBar1;
private System.Windows.Forms.MenuItem menuItemSendBack;
private System.Windows.Forms.MenuItem menuItemBringFront;
private System.Windows.Forms.MenuItem menuItemLayoutBar2;
private System.Windows.Forms.MenuItem menuItemAlign;
private System.Windows.Forms.MenuItem menuItemAlignLeft;
private System.Windows.Forms.MenuItem menuItemAlignRight;
private System.Windows.Forms.MenuItem menuItemAlignTop;
private System.Windows.Forms.MenuItem menuItemAlignBottom;
private System.Windows.Forms.MenuItem menuItemSpace;
private System.Windows.Forms.MenuItem menuItemSpaceHorz;
private System.Windows.Forms.MenuItem menuItemSpaceVert;
private System.Windows.Forms.MenuItem menuItemLayoutBar3;
private System.Windows.Forms.MenuItem menuItemSizeLargest;
private System.Windows.Forms.MenuItem menuItemSizeLargestWidth;
private System.Windows.Forms.MenuItem menuItemSizeLargestHeight;
private System.Windows.Forms.MenuItem menuItemSizeLargestWidthAndHeight;
private System.Windows.Forms.MenuItem menuItemSizeSmallest;
private System.Windows.Forms.MenuItem menuItemSizeSmallestWidth;
private System.Windows.Forms.MenuItem menuItemSizeSmallestHeight;
private System.Windows.Forms.MenuItem menuItemSizeSmallestWidthAndHeight;
private System.Windows.Forms.MenuItem menuItemLayoutBar4;
private System.Windows.Forms.MenuItem menuItemCenter;
private System.Windows.Forms.MenuItem menuItemCenterHorz;
private System.Windows.Forms.MenuItem menuItemCenterVert;
private System.Windows.Forms.MenuItem menuItemCenterHorzAndVert;
// tools menu
private System.Windows.Forms.MenuItem menuItemTools;
private System.Windows.Forms.MenuItem menuItemToggleGrid;
private System.Windows.Forms.MenuItem menuItemGridSettings;
private System.Windows.Forms.MenuItem menuItemToolsBar1;
private System.Windows.Forms.MenuItem menuItemSetTabOrder;
private System.Windows.Forms.MenuItem menuItemToolsBar2;
private System.Windows.Forms.MenuItem menuItemValidateScript;
private System.Windows.Forms.MenuItem menuItemToolsBar3;
private System.Windows.Forms.MenuItem menuItemPreview;
private System.Windows.Forms.MenuItem menuItemPreviewAutoSizing;
private System.Windows.Forms.MenuItem menuItemPreviewNoneAutoSizing;
// help menu
private System.Windows.Forms.MenuItem menuItemHelp;
private System.Windows.Forms.MenuItem menuItemAbout;
// toolbars 1
private System.Windows.Forms.ToolBar toolBar1;
private System.Windows.Forms.ToolBarButton toolBarButtonNew;
private System.Windows.Forms.ToolBarButton toolBarButtonOpen;
private System.Windows.Forms.ToolBarButton toolBarButtonSave;
private System.Windows.Forms.ToolBarButton toolBar1Bar1;
private System.Windows.Forms.ToolBarButton toolBarButtonCut;
private System.Windows.Forms.ToolBarButton toolBarButtonCopy;
private System.Windows.Forms.ToolBarButton toolBarButtonPaste;
private System.Windows.Forms.ToolBarButton toolBar1Bar2;
private System.Windows.Forms.ToolBarButton toolBarButtonUndo;
private System.Windows.Forms.ToolBarButton toolBarButtonRedo;
private System.Windows.Forms.ToolBarButton toolBar1Bar3;
private System.Windows.Forms.ToolBarButton toolBarButtonAbout;
// toolbar2
private System.Windows.Forms.ToolBar toolBar2;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertFrame;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertRectangle;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertPicture;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertLabel;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertButton;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertCheck;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertRadio;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertText;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertCombo;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertList;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertHorzScroll;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertVertScroll;
private System.Windows.Forms.ToolBarButton toolBar2Bar1;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertSpin;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertSlider;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertProgress;
private System.Windows.Forms.ToolBarButton toolBar2Bar2;
private System.Windows.Forms.ToolBarButton toolBarButtonInsertActiveX;
private System.Windows.Forms.ToolBarButton toolBar2Bar3;
private System.Windows.Forms.ToolBarButton toolBarButtonDelete;
private System.Windows.Forms.ToolBarButton toolBar2Bar4;
private System.Windows.Forms.ToolBarButton toolBarButtonToggleGrid;
private System.Windows.Forms.ToolBarButton toolBarButtonGridSettings;
private System.Windows.Forms.ToolBarButton toolBar2Bar5;
private System.Windows.Forms.ToolBarButton toolBarButtonSetTabOrder;
private System.Windows.Forms.ToolBarButton toolBar2Bar6;
private System.Windows.Forms.ToolBarButton toolBarButtonSelectAll;
private System.Windows.Forms.ToolBarButton toolBarButtonUnselectAll;
private System.Windows.Forms.ToolBarButton toolBar2Bar7;
private System.Windows.Forms.ToolBarButton toolBarButtonProperties;
// toolbar3
private System.Windows.Forms.ToolBar toolBar3;
private System.Windows.Forms.ToolBarButton toolBarButtonMoveLeft;
private System.Windows.Forms.ToolBarButton toolBarButtonMoveRight;
private System.Windows.Forms.ToolBarButton toolBarButtonMoveUp;
private System.Windows.Forms.ToolBarButton toolBarButtonMoveDown;
private System.Windows.Forms.ToolBarButton toolBar3Bar1;
private System.Windows.Forms.ToolBarButton toolBarButtonSendBack;
private System.Windows.Forms.ToolBarButton toolBarButtonBringFront;
private System.Windows.Forms.ToolBarButton toolBar3Bar2;
private System.Windows.Forms.ToolBarButton toolBarButtonAlignLeft;
private System.Windows.Forms.ToolBarButton toolBarButtonAlignRight;
private System.Windows.Forms.ToolBarButton toolBarButtonAlignTop;
private System.Windows.Forms.ToolBarButton toolBarButtonAlignBottom;
private System.Windows.Forms.ToolBarButton toolBar3Bar3;
private System.Windows.Forms.ToolBarButton toolBarButtonSpaceHorz;
private System.Windows.Forms.ToolBarButton toolBarButtonSpaceVert;
private System.Windows.Forms.ToolBarButton toolBar3Bar4;
private System.Windows.Forms.ToolBarButton toolBarButtonSizeLargestWidth;
private System.Windows.Forms.ToolBarButton toolBarButtonSizeLargestHeight;
private System.Windows.Forms.ToolBarButton toolBarButtonSizeLargestWidthAndHeight;
private System.Windows.Forms.ToolBarButton toolBar3Bar5;
private System.Windows.Forms.ToolBarButton toolBarButtonSizeSmallestWidth;
private System.Windows.Forms.ToolBarButton toolBarButtonSizeSmallestHeight;
private System.Windows.Forms.ToolBarButton toolBarButtonSizeSmallestWidthAndHeight;
private System.Windows.Forms.ToolBarButton toolBar3Bar6;
private System.Windows.Forms.ToolBarButton toolBarButtonCenterHorz;
private System.Windows.Forms.ToolBarButton toolBarButtonCenterVert;
private System.Windows.Forms.ToolBarButton toolBarButtonCenterHorzAndVert;
private System.Windows.Forms.ToolBarButton toolBar3Bar7;
private System.Windows.Forms.ToolBarButton toolBarButtonValidateScript;
private System.Windows.Forms.ToolBarButton toolBar3Bar8;
private System.Windows.Forms.ToolBarButton toolBarButtonPreviewAutoSizing;
private System.Windows.Forms.ToolBarButton toolBarButtonPreviewNoneAutoSizing;
// toolbar image lists
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.ImageList imageList2;
private System.Windows.Forms.ImageList imageList3;
// tab control
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1; // form editor
private System.Windows.Forms.TabPage tabPage2; // script editor
private System.Windows.Forms.TabPage tabPage3; // form viewer
// form editor
private AxDDFORMSLib.AxFormEditor axFormEditor1;
// script editor
private AxDDFORMSLib.AxSimpleScriptEditor axSimpleScriptEditor1;
// form viewer
private AxDDFORMSLib.AxFormViewer axFormViewer1;
// open file dialog
private System.Windows.Forms.OpenFileDialog openFileDialog1;
// save file dialog
private System.Windows.Forms.SaveFileDialog saveFileDialog1;
private System.ComponentModel.IContainer components;
#endregion
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.axFormEditor1 = new AxDDFORMSLib.AxFormEditor();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.axSimpleScriptEditor1 = new AxDDFORMSLib.AxSimpleScriptEditor();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.axFormViewer1 = new AxDDFORMSLib.AxFormViewer();
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItemFile = new System.Windows.Forms.MenuItem();
this.menuItemNew = new System.Windows.Forms.MenuItem();
this.menuItemOpen = new System.Windows.Forms.MenuItem();
this.menuItemSave = new System.Windows.Forms.MenuItem();
this.menuItemSaveAs = new System.Windows.Forms.MenuItem();
this.menuItemFileBar1 = new System.Windows.Forms.MenuItem();
this.menuItemExit = new System.Windows.Forms.MenuItem();
this.menuItemEdit = new System.Windows.Forms.MenuItem();
this.menuItemUndo = new System.Windows.Forms.MenuItem();
this.menuItemRedo = new System.Windows.Forms.MenuItem();
this.menuItemEditBar1 = new System.Windows.Forms.MenuItem();
this.menuItemCut = new System.Windows.Forms.MenuItem();
this.menuItemCopy = new System.Windows.Forms.MenuItem();
this.menuItemPaste = new System.Windows.Forms.MenuItem();
this.menuItemEditBar2 = new System.Windows.Forms.MenuItem();
this.menuItemDelete = new System.Windows.Forms.MenuItem();
this.menuItemEditBar3 = new System.Windows.Forms.MenuItem();
this.menuItemSelectAll = new System.Windows.Forms.MenuItem();
this.menuItemUnselectAll = new System.Windows.Forms.MenuItem();
this.menuItemEditBar4 = new System.Windows.Forms.MenuItem();
this.menuItemProperties = new System.Windows.Forms.MenuItem();
this.menuItemControls = new System.Windows.Forms.MenuItem();
this.menuItemInsertFrame = new System.Windows.Forms.MenuItem();
this.menuItemInsertRectangle = new System.Windows.Forms.MenuItem();
this.menuItemInsertPicture = new System.Windows.Forms.MenuItem();
this.menuItemInsertLabel = new System.Windows.Forms.MenuItem();
this.menuItemInsertButton = new System.Windows.Forms.MenuItem();
this.menuItemInsertCheck = new System.Windows.Forms.MenuItem();
this.menuItemInsertRadio = new System.Windows.Forms.MenuItem();
this.menuItemInsertText = new System.Windows.Forms.MenuItem();
this.menuItemInsertCombo = new System.Windows.Forms.MenuItem();
this.menuItemInsertList = new System.Windows.Forms.MenuItem();
this.menuItemInsertHorzScroll = new System.Windows.Forms.MenuItem();
this.menuItemInsertVertScroll = new System.Windows.Forms.MenuItem();
this.menuItemControlsBar1 = new System.Windows.Forms.MenuItem();
this.menuItemInsertSpin = new System.Windows.Forms.MenuItem();
this.menuItemInsertSlider = new System.Windows.Forms.MenuItem();
this.menuItemInsertProgress = new System.Windows.Forms.MenuItem();
this.menuItemControlsBar2 = new System.Windows.Forms.MenuItem();
this.menuItemInsertActiveX = new System.Windows.Forms.MenuItem();
this.menuItemLayout = new System.Windows.Forms.MenuItem();
this.menuItemMoveLeft = new System.Windows.Forms.MenuItem();
this.menuItemMoveRight = new System.Windows.Forms.MenuItem();
this.menuItemMoveUp = new System.Windows.Forms.MenuItem();
this.menuItemMoveDown = new System.Windows.Forms.MenuItem();
this.menuItemLayoutBar1 = new System.Windows.Forms.MenuItem();
this.menuItemSendBack = new System.Windows.Forms.MenuItem();
this.menuItemBringFront = new System.Windows.Forms.MenuItem();
this.menuItemLayoutBar2 = new System.Windows.Forms.MenuItem();
this.menuItemAlign = new System.Windows.Forms.MenuItem();
this.menuItemAlignLeft = new System.Windows.Forms.MenuItem();
this.menuItemAlignRight = new System.Windows.Forms.MenuItem();
this.menuItemAlignTop = new System.Windows.Forms.MenuItem();
this.menuItemAlignBottom = new System.Windows.Forms.MenuItem();
this.menuItemSpace = new System.Windows.Forms.MenuItem();
this.menuItemSpaceHorz = new System.Windows.Forms.MenuItem();
this.menuItemSpaceVert = new System.Windows.Forms.MenuItem();
this.menuItemLayoutBar3 = new System.Windows.Forms.MenuItem();
this.menuItemSizeLargest = new System.Windows.Forms.MenuItem();
this.menuItemSizeLargestWidth = new System.Windows.Forms.MenuItem();
this.menuItemSizeLargestHeight = new System.Windows.Forms.MenuItem();
this.menuItemSizeLargestWidthAndHeight = new System.Windows.Forms.MenuItem();
this.menuItemSizeSmallest = new System.Windows.Forms.MenuItem();
this.menuItemSizeSmallestWidth = new System.Windows.Forms.MenuItem();
this.menuItemSizeSmallestHeight = new System.Windows.Forms.MenuItem();
this.menuItemSizeSmallestWidthAndHeight = new System.Windows.Forms.MenuItem();
this.menuItemLayoutBar4 = new System.Windows.Forms.MenuItem();
this.menuItemCenter = new System.Windows.Forms.MenuItem();
this.menuItemCenterHorz = new System.Windows.Forms.MenuItem();
this.menuItemCenterVert = new System.Windows.Forms.MenuItem();
this.menuItemCenterHorzAndVert = new System.Windows.Forms.MenuItem();
this.menuItemTools = new System.Windows.Forms.MenuItem();
this.menuItemToggleGrid = new System.Windows.Forms.MenuItem();
this.menuItemGridSettings = new System.Windows.Forms.MenuItem();
this.menuItemToolsBar1 = new System.Windows.Forms.MenuItem();
this.menuItemSetTabOrder = new System.Windows.Forms.MenuItem();
this.menuItemToolsBar2 = new System.Windows.Forms.MenuItem();
this.menuItemValidateScript = new System.Windows.Forms.MenuItem();
this.menuItemToolsBar3 = new System.Windows.Forms.MenuItem();
this.menuItemPreview = new System.Windows.Forms.MenuItem();
this.menuItemPreviewAutoSizing = new System.Windows.Forms.MenuItem();
this.menuItemPreviewNoneAutoSizing = new System.Windows.Forms.MenuItem();
this.menuItemHelp = new System.Windows.Forms.MenuItem();
this.menuItemAbout = new System.Windows.Forms.MenuItem();
this.toolBar1 = new System.Windows.Forms.ToolBar();
this.toolBarButtonNew = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonOpen = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonSave = new System.Windows.Forms.ToolBarButton();
this.toolBar1Bar1 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonCut = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonCopy = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonPaste = new System.Windows.Forms.ToolBarButton();
this.toolBar1Bar2 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonUndo = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonRedo = new System.Windows.Forms.ToolBarButton();
this.toolBar1Bar3 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonAbout = new System.Windows.Forms.ToolBarButton();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.toolBar2 = new System.Windows.Forms.ToolBar();
this.toolBarButtonInsertFrame = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertRectangle = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertPicture = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertLabel = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertButton = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertCheck = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertRadio = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertText = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertCombo = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertList = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertHorzScroll = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertVertScroll = new System.Windows.Forms.ToolBarButton();
this.toolBar2Bar1 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertSpin = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertSlider = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertProgress = new System.Windows.Forms.ToolBarButton();
this.toolBar2Bar2 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonInsertActiveX = new System.Windows.Forms.ToolBarButton();
this.toolBar2Bar3 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonDelete = new System.Windows.Forms.ToolBarButton();
this.toolBar2Bar4 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonToggleGrid = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonGridSettings = new System.Windows.Forms.ToolBarButton();
this.toolBar2Bar5 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonSetTabOrder = new System.Windows.Forms.ToolBarButton();
this.toolBar2Bar6 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonSelectAll = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonUnselectAll = new System.Windows.Forms.ToolBarButton();
this.toolBar2Bar7 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonProperties = new System.Windows.Forms.ToolBarButton();
this.imageList2 = new System.Windows.Forms.ImageList(this.components);
this.toolBar3 = new System.Windows.Forms.ToolBar();
this.toolBarButtonMoveLeft = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonMoveRight = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonMoveUp = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonMoveDown = new System.Windows.Forms.ToolBarButton();
this.toolBar3Bar1 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonSendBack = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonBringFront = new System.Windows.Forms.ToolBarButton();
this.toolBar3Bar2 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonAlignLeft = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonAlignRight = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonAlignTop = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonAlignBottom = new System.Windows.Forms.ToolBarButton();
this.toolBar3Bar3 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonSpaceHorz = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonSpaceVert = new System.Windows.Forms.ToolBarButton();
this.toolBar3Bar4 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonSizeLargestWidth = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonSizeLargestHeight = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonSizeLargestWidthAndHeight = new System.Windows.Forms.ToolBarButton();
this.toolBar3Bar5 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonSizeSmallestWidth = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonSizeSmallestHeight = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonSizeSmallestWidthAndHeight = new System.Windows.Forms.ToolBarButton();
this.toolBar3Bar6 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonCenterHorz = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonCenterVert = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonCenterHorzAndVert = new System.Windows.Forms.ToolBarButton();
this.toolBar3Bar7 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonValidateScript = new System.Windows.Forms.ToolBarButton();
this.toolBar3Bar8 = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonPreviewAutoSizing = new System.Windows.Forms.ToolBarButton();
this.toolBarButtonPreviewNoneAutoSizing = new System.Windows.Forms.ToolBarButton();
this.imageList3 = new System.Windows.Forms.ImageList(this.components);
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.axFormEditor1)).BeginInit();
this.tabPage2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.axSimpleScriptEditor1)).BeginInit();
this.tabPage3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.axFormViewer1)).BeginInit();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Location = new System.Drawing.Point(8, 72);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(600, 336);
this.tabControl1.TabIndex = 0;
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
//
// tabPage1
//
this.tabPage1.Controls.Add(this.axFormEditor1);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(592, 310);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Form Editor";
//
// axFormEditor1
//
this.axFormEditor1.ContainingControl = this;
this.axFormEditor1.Enabled = true;
this.axFormEditor1.Location = new System.Drawing.Point(8, 8);
this.axFormEditor1.Name = "axFormEditor1";
this.axFormEditor1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axFormEditor1.OcxState")));
this.axFormEditor1.Size = new System.Drawing.Size(576, 296);
this.axFormEditor1.TabIndex = 0;
this.axFormEditor1.StateChanged += new AxDDFORMSLib._IFormEditorEvents_StateChangedEventHandler(this.axFormEditor1_StateChanged);
this.axFormEditor1.EditExistingEventHandler += new System.EventHandler(this.axFormEditor1_EditExistingEventHandler);
this.axFormEditor1.EditScriptError += new AxDDFORMSLib._IFormEditorEvents_EditScriptErrorEventHandler(this.axFormEditor1_EditScriptError);
//
// tabPage2
//
this.tabPage2.Controls.Add(this.axSimpleScriptEditor1);
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(592, 310);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Script Editor";
//
// axSimpleScriptEditor1
//
this.axSimpleScriptEditor1.ContainingControl = this;
this.axSimpleScriptEditor1.Enabled = true;
this.axSimpleScriptEditor1.Location = new System.Drawing.Point(8, 8);
this.axSimpleScriptEditor1.Name = "axSimpleScriptEditor1";
this.axSimpleScriptEditor1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSimpleScriptEditor1.OcxState")));
this.axSimpleScriptEditor1.Size = new System.Drawing.Size(576, 296);
this.axSimpleScriptEditor1.TabIndex = 0;
this.axSimpleScriptEditor1.ModifiedStateChanged += new AxDDFORMSLib._ISimpleScriptEditorEvents_ModifiedStateChangedEventHandler(this.axSimpleScriptEditor1_ModifiedStateChanged);
//
// tabPage3
//
this.tabPage3.Controls.Add(this.axFormViewer1);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(592, 310);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Form Viewer";
//
// axFormViewer1
//
this.axFormViewer1.ContainingControl = this;
this.axFormViewer1.Enabled = true;
this.axFormViewer1.Location = new System.Drawing.Point(8, 8);
this.axFormViewer1.Name = "axFormViewer1";
this.axFormViewer1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axFormViewer1.OcxState")));
this.axFormViewer1.Size = new System.Drawing.Size(576, 296);
this.axFormViewer1.TabIndex = 0;
//
// mainMenu1
//
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemFile,
this.menuItemEdit,
this.menuItemControls,
this.menuItemLayout,
this.menuItemTools,
this.menuItemHelp});
//
// menuItemFile
//
this.menuItemFile.Index = 0;
this.menuItemFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemNew,
this.menuItemOpen,
this.menuItemSave,
this.menuItemSaveAs,
this.menuItemFileBar1,
this.menuItemExit});
this.menuItemFile.Text = "&File";
//
// menuItemNew
//
this.menuItemNew.Index = 0;
this.menuItemNew.Shortcut = System.Windows.Forms.Shortcut.CtrlN;
this.menuItemNew.Text = "&New";
this.menuItemNew.Click += new System.EventHandler(this.menuItemNew_Click);
//
// menuItemOpen
//
this.menuItemOpen.Index = 1;
this.menuItemOpen.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
this.menuItemOpen.Text = "&Open...";
this.menuItemOpen.Click += new System.EventHandler(this.menuItemOpen_Click);
//
// menuItemSave
//
this.menuItemSave.Index = 2;
this.menuItemSave.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
this.menuItemSave.Text = "&Save";
this.menuItemSave.Click += new System.EventHandler(this.menuItemSave_Click);
//
// menuItemSaveAs
//
this.menuItemSaveAs.Index = 3;
this.menuItemSaveAs.Text = "Save &As...";
this.menuItemSaveAs.Click += new System.EventHandler(this.menuItemSaveAs_Click);
//
// menuItemFileBar1
//
this.menuItemFileBar1.Index = 4;
this.menuItemFileBar1.Text = "-";
//
// menuItemExit
//
this.menuItemExit.Index = 5;
this.menuItemExit.Text = "E&xit";
this.menuItemExit.Click += new System.EventHandler(this.menuItemExit_Click);
//
// menuItemEdit
//
this.menuItemEdit.Index = 1;
this.menuItemEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemUndo,
this.menuItemRedo,
this.menuItemEditBar1,
this.menuItemCut,
this.menuItemCopy,
this.menuItemPaste,
this.menuItemEditBar2,
this.menuItemDelete,
this.menuItemEditBar3,
this.menuItemSelectAll,
this.menuItemUnselectAll,
this.menuItemEditBar4,
this.menuItemProperties});
this.menuItemEdit.Text = "&Edit";
//
// menuItemUndo
//
this.menuItemUndo.Index = 0;
this.menuItemUndo.Shortcut = System.Windows.Forms.Shortcut.CtrlZ;
this.menuItemUndo.Text = "&Undo";
this.menuItemUndo.Click += new System.EventHandler(this.menuItemUndo_Click);
//
// menuItemRedo
//
this.menuItemRedo.Index = 1;
this.menuItemRedo.Shortcut = System.Windows.Forms.Shortcut.CtrlY;
this.menuItemRedo.Text = "&Redo";
this.menuItemRedo.Click += new System.EventHandler(this.menuItemRedo_Click);
//
// menuItemEditBar1
//
this.menuItemEditBar1.Index = 2;
this.menuItemEditBar1.Text = "-";
//
// menuItemCut
//
this.menuItemCut.Index = 3;
this.menuItemCut.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
this.menuItemCut.Text = "Cu&t";
this.menuItemCut.Click += new System.EventHandler(this.menuItemCut_Click);
//
// menuItemCopy
//
this.menuItemCopy.Index = 4;
this.menuItemCopy.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
this.menuItemCopy.Text = "&Copy";
this.menuItemCopy.Click += new System.EventHandler(this.menuItemCopy_Click);
//
// menuItemPaste
//
this.menuItemPaste.Index = 5;
this.menuItemPaste.Shortcut = System.Windows.Forms.Shortcut.CtrlV;
this.menuItemPaste.Text = "&Paste";
this.menuItemPaste.Click += new System.EventHandler(this.menuItemPaste_Click);
//
// menuItemEditBar2
//
this.menuItemEditBar2.Index = 6;
this.menuItemEditBar2.Text = "-";
//
// menuItemDelete
//
this.menuItemDelete.Index = 7;
this.menuItemDelete.Shortcut = System.Windows.Forms.Shortcut.Del;
this.menuItemDelete.Text = "&Delete";
this.menuItemDelete.Click += new System.EventHandler(this.menuItemDelete_Click);
//
// menuItemEditBar3
//
this.menuItemEditBar3.Index = 8;
this.menuItemEditBar3.Text = "-";
//
// menuItemSelectAll
//
this.menuItemSelectAll.Index = 9;
this.menuItemSelectAll.Text = "Select &All";
this.menuItemSelectAll.Click += new System.EventHandler(this.menuItemSelectAll_Click);
//
// menuItemUnselectAll
//
this.menuItemUnselectAll.Index = 10;
this.menuItemUnselectAll.Text = "U&nselect All";
this.menuItemUnselectAll.Click += new System.EventHandler(this.menuItemUnselectAll_Click);
//
// menuItemEditBar4
//
this.menuItemEditBar4.Index = 11;
this.menuItemEditBar4.Text = "-";
//
// menuItemProperties
//
this.menuItemProperties.Index = 12;
this.menuItemProperties.Text = "Pr&operties...";
this.menuItemProperties.Click += new System.EventHandler(this.menuItemProperties_Click);
//
// menuItemControls
//
this.menuItemControls.Index = 2;
this.menuItemControls.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemInsertFrame,
this.menuItemInsertRectangle,
this.menuItemInsertPicture,
this.menuItemInsertLabel,
this.menuItemInsertButton,
this.menuItemInsertCheck,
this.menuItemInsertRadio,
this.menuItemInsertText,
this.menuItemInsertCombo,
this.menuItemInsertList,
this.menuItemInsertHorzScroll,
this.menuItemInsertVertScroll,
this.menuItemControlsBar1,
this.menuItemInsertSpin,
this.menuItemInsertSlider,
this.menuItemInsertProgress,
this.menuItemControlsBar2,
this.menuItemInsertActiveX});
this.menuItemControls.Text = "&Controls";
//
// menuItemInsertFrame
//
this.menuItemInsertFrame.Index = 0;
this.menuItemInsertFrame.Text = "&Frame";
this.menuItemInsertFrame.Click += new System.EventHandler(this.menuItemInsertFrame_Click);
//
// menuItemInsertRectangle
//
this.menuItemInsertRectangle.Index = 1;
this.menuItemInsertRectangle.Text = "&Rectangle";
this.menuItemInsertRectangle.Click += new System.EventHandler(this.menuItemInsertRectangle_Click);
//
// menuItemInsertPicture
//
this.menuItemInsertPicture.Index = 2;
this.menuItemInsertPicture.Text = "Pict&ure";
this.menuItemInsertPicture.Click += new System.EventHandler(this.menuItemInsertPicture_Click);
//
// menuItemInsertLabel
//
this.menuItemInsertLabel.Index = 3;
this.menuItemInsertLabel.Text = "&Label";
this.menuItemInsertLabel.Click += new System.EventHandler(this.menuItemInsertLabel_Click);
//
// menuItemInsertButton
//
this.menuItemInsertButton.Index = 4;
this.menuItemInsertButton.Text = "&Button";
this.menuItemInsertButton.Click += new System.EventHandler(this.menuItemInsertButton_Click);
//
// menuItemInsertCheck
//
this.menuItemInsertCheck.Index = 5;
this.menuItemInsertCheck.Text = "&Check Box";
this.menuItemInsertCheck.Click += new System.EventHandler(this.menuItemInsertCheck_Click);
//
// menuItemInsertRadio
//
this.menuItemInsertRadio.Index = 6;
this.menuItemInsertRadio.Text = "R&adio Button";
this.menuItemInsertRadio.Click += new System.EventHandler(this.menuItemInsertRadio_Click);
//
// menuItemInsertText
//
this.menuItemInsertText.Index = 7;
this.menuItemInsertText.Text = "&Text Box";
this.menuItemInsertText.Click += new System.EventHandler(this.menuItemInsertText_Click);
//
// menuItemInsertCombo
//
this.menuItemInsertCombo.Index = 8;
this.menuItemInsertCombo.Text = "C&ombo Box";
this.menuItemInsertCombo.Click += new System.EventHandler(this.menuItemInsertCombo_Click);
//
// menuItemInsertList
//
this.menuItemInsertList.Index = 9;
this.menuItemInsertList.Text = "L&ist Box";
this.menuItemInsertList.Click += new System.EventHandler(this.menuItemInsertList_Click);
//
// menuItemInsertHorzScroll
//
this.menuItemInsertHorzScroll.Index = 10;
this.menuItemInsertHorzScroll.Text = "&Horizontal Scrollbar";
this.menuItemInsertHorzScroll.Click += new System.EventHandler(this.menuItemInsertHorzScroll_Click);
//
// menuItemInsertVertScroll
//
this.menuItemInsertVertScroll.Index = 11;
this.menuItemInsertVertScroll.Text = "&Vertical Scrollbar";
this.menuItemInsertVertScroll.Click += new System.EventHandler(this.menuItemInsertVertScroll_Click);
//
// menuItemControlsBar1
//
this.menuItemControlsBar1.Index = 12;
this.menuItemControlsBar1.Text = "-";
//
// menuItemInsertSpin
//
this.menuItemInsertSpin.Index = 13;
this.menuItemInsertSpin.Text = "S&pin Control";
this.menuItemInsertSpin.Click += new System.EventHandler(this.menuItemInsertSpin_Click);
//
// menuItemInsertSlider
//
this.menuItemInsertSlider.Index = 14;
this.menuItemInsertSlider.Text = "Sli&der Control";
this.menuItemInsertSlider.Click += new System.EventHandler(this.menuItemInsertSlider_Click);
//
// menuItemInsertProgress
//
this.menuItemInsertProgress.Index = 15;
this.menuItemInsertProgress.Text = "Pro&gress Bar Control";
this.menuItemInsertProgress.Click += new System.EventHandler(this.menuItemInsertProgress_Click);
//
// menuItemControlsBar2
//
this.menuItemControlsBar2.Index = 16;
this.menuItemControlsBar2.Text = "-";
//
// menuItemInsertActiveX
//
this.menuItemInsertActiveX.Index = 17;
this.menuItemInsertActiveX.Text = "Other Active&X Control...";
this.menuItemInsertActiveX.Click += new System.EventHandler(this.menuItemInsertActiveX_Click);
//
// menuItemLayout
//
this.menuItemLayout.Index = 3;
this.menuItemLayout.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemMoveLeft,
this.menuItemMoveRight,
this.menuItemMoveUp,
this.menuItemMoveDown,
this.menuItemLayoutBar1,
this.menuItemSendBack,
this.menuItemBringFront,
this.menuItemLayoutBar2,
this.menuItemAlign,
this.menuItemSpace,
this.menuItemLayoutBar3,
this.menuItemSizeLargest,
this.menuItemSizeSmallest,
this.menuItemLayoutBar4,
this.menuItemCenter});
this.menuItemLayout.Text = "&Layout";
//
// menuItemMoveLeft
//
this.menuItemMoveLeft.Index = 0;
this.menuItemMoveLeft.Text = "&Left";
this.menuItemMoveLeft.Click += new System.EventHandler(this.menuItemMoveLeft_Click);
//
// menuItemMoveRight
//
this.menuItemMoveRight.Index = 1;
this.menuItemMoveRight.Text = "&Right";
this.menuItemMoveRight.Click += new System.EventHandler(this.menuItemMoveRight_Click);
//
// menuItemMoveUp
//
this.menuItemMoveUp.Index = 2;
this.menuItemMoveUp.Text = "&Up";
this.menuItemMoveUp.Click += new System.EventHandler(this.menuItemMoveUp_Click);
//
// menuItemMoveDown
//
this.menuItemMoveDown.Index = 3;
this.menuItemMoveDown.Text = "&Down";
this.menuItemMoveDown.Click += new System.EventHandler(this.menuItemMoveDown_Click);
//
// menuItemLayoutBar1
//
this.menuItemLayoutBar1.Index = 4;
this.menuItemLayoutBar1.Text = "-";
//
// menuItemSendBack
//
this.menuItemSendBack.Index = 5;
this.menuItemSendBack.Text = "Send To &Back";
this.menuItemSendBack.Click += new System.EventHandler(this.menuItemSendBack_Click);
//
// menuItemBringFront
//
this.menuItemBringFront.Index = 6;
this.menuItemBringFront.Text = "Bring To &Front";
this.menuItemBringFront.Click += new System.EventHandler(this.menuItemBringFront_Click);
//
// menuItemLayoutBar2
//
this.menuItemLayoutBar2.Index = 7;
this.menuItemLayoutBar2.Text = "-";
//
// menuItemAlign
//
this.menuItemAlign.Index = 8;
this.menuItemAlign.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemAlignLeft,
this.menuItemAlignRight,
this.menuItemAlignTop,
this.menuItemAlignBottom});
this.menuItemAlign.Text = "&Align";
//
// menuItemAlignLeft
//
this.menuItemAlignLeft.Index = 0;
this.menuItemAlignLeft.Text = "&Left";
this.menuItemAlignLeft.Click += new System.EventHandler(this.menuItemAlignLeft_Click);
//
// menuItemAlignRight
//
this.menuItemAlignRight.Index = 1;
this.menuItemAlignRight.Text = "&Right";
this.menuItemAlignRight.Click += new System.EventHandler(this.menuItemAlignRight_Click);
//
// menuItemAlignTop
//
this.menuItemAlignTop.Index = 2;
this.menuItemAlignTop.Text = "&Top";
this.menuItemAlignTop.Click += new System.EventHandler(this.menuItemAlignTop_Click);
//
// menuItemAlignBottom
//
this.menuItemAlignBottom.Index = 3;
this.menuItemAlignBottom.Text = "&Bottom";
this.menuItemAlignBottom.Click += new System.EventHandler(this.menuItemAlignBottom_Click);
//
// menuItemSpace
//
this.menuItemSpace.Index = 9;
this.menuItemSpace.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemSpaceHorz,
this.menuItemSpaceVert});
this.menuItemSpace.Text = "S&pace";
//
// menuItemSpaceHorz
//
this.menuItemSpaceHorz.Index = 0;
this.menuItemSpaceHorz.Text = "&Horizontal";
this.menuItemSpaceHorz.Click += new System.EventHandler(this.menuItemSpaceHorz_Click);
//
// menuItemSpaceVert
//
this.menuItemSpaceVert.Index = 1;
this.menuItemSpaceVert.Text = "&Vertical";
this.menuItemSpaceVert.Click += new System.EventHandler(this.menuItemSpaceVert_Click);
//
// menuItemLayoutBar3
//
this.menuItemLayoutBar3.Index = 10;
this.menuItemLayoutBar3.Text = "-";
//
// menuItemSizeLargest
//
this.menuItemSizeLargest.Index = 11;
this.menuItemSizeLargest.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemSizeLargestWidth,
this.menuItemSizeLargestHeight,
this.menuItemSizeLargestWidthAndHeight});
this.menuItemSizeLargest.Text = "Size Lar&gest";
//
// menuItemSizeLargestWidth
//
this.menuItemSizeLargestWidth.Index = 0;
this.menuItemSizeLargestWidth.Text = "&Width";
this.menuItemSizeLargestWidth.Click += new System.EventHandler(this.menuItemSizeLargestWidth_Click);
//
// menuItemSizeLargestHeight
//
this.menuItemSizeLargestHeight.Index = 1;
this.menuItemSizeLargestHeight.Text = "&Height";
this.menuItemSizeLargestHeight.Click += new System.EventHandler(this.menuItemSizeLargestHeight_Click);
//
// menuItemSizeLargestWidthAndHeight
//
this.menuItemSizeLargestWidthAndHeight.Index = 2;
this.menuItemSizeLargestWidthAndHeight.Text = "&Both";
this.menuItemSizeLargestWidthAndHeight.Click += new System.EventHandler(this.menuItemSizeLargestWidthAndHeight_Click);
//
// menuItemSizeSmallest
//
this.menuItemSizeSmallest.Index = 12;
this.menuItemSizeSmallest.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemSizeSmallestWidth,
this.menuItemSizeSmallestHeight,
this.menuItemSizeSmallestWidthAndHeight});
this.menuItemSizeSmallest.Text = "Size &Smallest";
//
// menuItemSizeSmallestWidth
//
this.menuItemSizeSmallestWidth.Index = 0;
this.menuItemSizeSmallestWidth.Text = "&Width";
this.menuItemSizeSmallestWidth.Click += new System.EventHandler(this.menuItemSizeSmallestWidth_Click);
//
// menuItemSizeSmallestHeight
//
this.menuItemSizeSmallestHeight.Index = 1;
this.menuItemSizeSmallestHeight.Text = "&Height";
this.menuItemSizeSmallestHeight.Click += new System.EventHandler(this.menuItemSizeSmallestHeight_Click);
//
// menuItemSizeSmallestWidthAndHeight
//
this.menuItemSizeSmallestWidthAndHeight.Index = 2;
this.menuItemSizeSmallestWidthAndHeight.Text = "&Both";
this.menuItemSizeSmallestWidthAndHeight.Click += new System.EventHandler(this.menuItemSizeSmallestWidthAndHeight_Click);
//
// menuItemLayoutBar4
//
this.menuItemLayoutBar4.Index = 13;
this.menuItemLayoutBar4.Text = "-";
//
// menuItemCenter
//
this.menuItemCenter.Index = 14;
this.menuItemCenter.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemCenterHorz,
this.menuItemCenterVert,
this.menuItemCenterHorzAndVert});
this.menuItemCenter.Text = "&Center";
//
// menuItemCenterHorz
//
this.menuItemCenterHorz.Index = 0;
this.menuItemCenterHorz.Text = "&Horizontal";
this.menuItemCenterHorz.Click += new System.EventHandler(this.menuItemCenterHorz_Click);
//
// menuItemCenterVert
//
this.menuItemCenterVert.Index = 1;
this.menuItemCenterVert.Text = "&Vertical";
this.menuItemCenterVert.Click += new System.EventHandler(this.menuItemCenterVert_Click);
//
// menuItemCenterHorzAndVert
//
this.menuItemCenterHorzAndVert.Index = 2;
this.menuItemCenterHorzAndVert.Text = "&Both";
this.menuItemCenterHorzAndVert.Click += new System.EventHandler(this.menuItemCenterHorzAndVert_Click);
//
// menuItemTools
//
this.menuItemTools.Index = 4;
this.menuItemTools.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemToggleGrid,
this.menuItemGridSettings,
this.menuItemToolsBar1,
this.menuItemSetTabOrder,
this.menuItemToolsBar2,
this.menuItemValidateScript,
this.menuItemToolsBar3,
this.menuItemPreview});
this.menuItemTools.Text = "&Tools";
//
// menuItemToggleGrid
//
this.menuItemToggleGrid.Index = 0;
this.menuItemToggleGrid.Text = "Toggle &Grid";
this.menuItemToggleGrid.Click += new System.EventHandler(this.menuItemToggleGrid_Click);
//
// menuItemGridSettings
//
this.menuItemGridSettings.Index = 1;
this.menuItemGridSettings.Text = "Grid &Settings...";
this.menuItemGridSettings.Click += new System.EventHandler(this.menuItemGridSettings_Click);
//
// menuItemToolsBar1
//
this.menuItemToolsBar1.Index = 2;
this.menuItemToolsBar1.Text = "-";
//
// menuItemSetTabOrder
//
this.menuItemSetTabOrder.Index = 3;
this.menuItemSetTabOrder.Text = "Set &Tab Order";
this.menuItemSetTabOrder.Click += new System.EventHandler(this.menuItemSetTabOrder_Click);
//
// menuItemToolsBar2
//
this.menuItemToolsBar2.Index = 4;
this.menuItemToolsBar2.Text = "-";
//
// menuItemValidateScript
//
this.menuItemValidateScript.Index = 5;
this.menuItemValidateScript.Shortcut = System.Windows.Forms.Shortcut.CtrlQ;
this.menuItemValidateScript.Text = "&Validate Script";
this.menuItemValidateScript.Click += new System.EventHandler(this.menuItemValidateScript_Click);
//
// menuItemToolsBar3
//
this.menuItemToolsBar3.Index = 6;
this.menuItemToolsBar3.Text = "-";
//
// menuItemPreview
//
this.menuItemPreview.Index = 7;
this.menuItemPreview.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemPreviewAutoSizing,
this.menuItemPreviewNoneAutoSizing});
this.menuItemPreview.Text = "&Preview";
//
// menuItemPreviewAutoSizing
//
this.menuItemPreviewAutoSizing.Index = 0;
this.menuItemPreviewAutoSizing.Text = "&Auto Sizing...";
this.menuItemPreviewAutoSizing.Click += new System.EventHandler(this.menuItemPreviewAutoSizing_Click);
//
// menuItemPreviewNoneAutoSizing
//
this.menuItemPreviewNoneAutoSizing.Index = 1;
this.menuItemPreviewNoneAutoSizing.Text = "&None Auto Sizing...";
this.menuItemPreviewNoneAutoSizing.Click += new System.EventHandler(this.menuItemPreviewNoneAutoSizing_Click);
//
// menuItemHelp
//
this.menuItemHelp.Index = 5;
this.menuItemHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemAbout});
this.menuItemHelp.Text = "&Help";
//
// menuItemAbout
//
this.menuItemAbout.Index = 0;
this.menuItemAbout.Text = "&About...";
this.menuItemAbout.Click += new System.EventHandler(this.menuItemAbout_Click);
//
// toolBar1
//
this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
this.toolBar1.AutoSize = false;
this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.toolBarButtonNew,
this.toolBarButtonOpen,
this.toolBarButtonSave,
this.toolBar1Bar1,
this.toolBarButtonCut,
this.toolBarButtonCopy,
this.toolBarButtonPaste,
this.toolBar1Bar2,
this.toolBarButtonUndo,
this.toolBarButtonRedo,
this.toolBar1Bar3,
this.toolBarButtonAbout});
this.toolBar1.ButtonSize = new System.Drawing.Size(16, 16);
this.toolBar1.DropDownArrows = true;
this.toolBar1.ImageList = this.imageList1;
this.toolBar1.Location = new System.Drawing.Point(0, 0);
this.toolBar1.Name = "toolBar1";
this.toolBar1.ShowToolTips = true;
this.toolBar1.Size = new System.Drawing.Size(618, 24);
this.toolBar1.TabIndex = 1;
this.toolBar1.Wrappable = false;
this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
//
// toolBarButtonNew
//
this.toolBarButtonNew.ImageIndex = 0;
this.toolBarButtonNew.ToolTipText = "New [Ctrl+N]";
//
// toolBarButtonOpen
//
this.toolBarButtonOpen.ImageIndex = 1;
this.toolBarButtonOpen.ToolTipText = "Open [Ctrl+O]";
//
// toolBarButtonSave
//
this.toolBarButtonSave.ImageIndex = 2;
this.toolBarButtonSave.ToolTipText = "Save [Ctrl+S]";
//
// toolBar1Bar1
//
this.toolBar1Bar1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonCut
//
this.toolBarButtonCut.ImageIndex = 3;
this.toolBarButtonCut.ToolTipText = "Cut [Ctrl+X]";
//
// toolBarButtonCopy
//
this.toolBarButtonCopy.ImageIndex = 4;
this.toolBarButtonCopy.ToolTipText = "Copy [Ctrl+C]";
//
// toolBarButtonPaste
//
this.toolBarButtonPaste.ImageIndex = 5;
this.toolBarButtonPaste.ToolTipText = "Paste [Ctrl+V]";
//
// toolBar1Bar2
//
this.toolBar1Bar2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonUndo
//
this.toolBarButtonUndo.ImageIndex = 6;
this.toolBarButtonUndo.ToolTipText = "Undo [Ctrl+Z]";
//
// toolBarButtonRedo
//
this.toolBarButtonRedo.ImageIndex = 7;
this.toolBarButtonRedo.ToolTipText = "Redo [Ctrl+Y]";
//
// toolBar1Bar3
//
this.toolBar1Bar3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonAbout
//
this.toolBarButtonAbout.ImageIndex = 8;
this.toolBarButtonAbout.ToolTipText = "About";
//
// imageList1
//
this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Teal;
//
// toolBar2
//
this.toolBar2.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
this.toolBar2.AutoSize = false;
this.toolBar2.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.toolBarButtonInsertFrame,
this.toolBarButtonInsertRectangle,
this.toolBarButtonInsertPicture,
this.toolBarButtonInsertLabel,
this.toolBarButtonInsertButton,
this.toolBarButtonInsertCheck,
this.toolBarButtonInsertRadio,
this.toolBarButtonInsertText,
this.toolBarButtonInsertCombo,
this.toolBarButtonInsertList,
this.toolBarButtonInsertHorzScroll,
this.toolBarButtonInsertVertScroll,
this.toolBar2Bar1,
this.toolBarButtonInsertSpin,
this.toolBarButtonInsertSlider,
this.toolBarButtonInsertProgress,
this.toolBar2Bar2,
this.toolBarButtonInsertActiveX,
this.toolBar2Bar3,
this.toolBarButtonDelete,
this.toolBar2Bar4,
this.toolBarButtonToggleGrid,
this.toolBarButtonGridSettings,
this.toolBar2Bar5,
this.toolBarButtonSetTabOrder,
this.toolBar2Bar6,
this.toolBarButtonSelectAll,
this.toolBarButtonUnselectAll,
this.toolBar2Bar7,
this.toolBarButtonProperties});
this.toolBar2.ButtonSize = new System.Drawing.Size(16, 16);
this.toolBar2.DropDownArrows = true;
this.toolBar2.ImageList = this.imageList2;
this.toolBar2.Location = new System.Drawing.Point(0, 24);
this.toolBar2.Name = "toolBar2";
this.toolBar2.ShowToolTips = true;
this.toolBar2.Size = new System.Drawing.Size(618, 24);
this.toolBar2.TabIndex = 2;
this.toolBar2.Wrappable = false;
this.toolBar2.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar2_ButtonClick);
//
// toolBarButtonInsertFrame
//
this.toolBarButtonInsertFrame.ImageIndex = 0;
this.toolBarButtonInsertFrame.ToolTipText = "Frame";
//
// toolBarButtonInsertRectangle
//
this.toolBarButtonInsertRectangle.ImageIndex = 1;
this.toolBarButtonInsertRectangle.ToolTipText = "Rectangle";
//
// toolBarButtonInsertPicture
//
this.toolBarButtonInsertPicture.ImageIndex = 2;
this.toolBarButtonInsertPicture.ToolTipText = "Picture";
//
// toolBarButtonInsertLabel
//
this.toolBarButtonInsertLabel.ImageIndex = 3;
this.toolBarButtonInsertLabel.ToolTipText = "Label";
//
// toolBarButtonInsertButton
//
this.toolBarButtonInsertButton.ImageIndex = 4;
this.toolBarButtonInsertButton.ToolTipText = "Button";
//
// toolBarButtonInsertCheck
//
this.toolBarButtonInsertCheck.ImageIndex = 5;
this.toolBarButtonInsertCheck.ToolTipText = "Check Box";
//
// toolBarButtonInsertRadio
//
this.toolBarButtonInsertRadio.ImageIndex = 6;
this.toolBarButtonInsertRadio.ToolTipText = "Radio Button";
//
// toolBarButtonInsertText
//
this.toolBarButtonInsertText.ImageIndex = 7;
this.toolBarButtonInsertText.ToolTipText = "Text Box";
//
// toolBarButtonInsertCombo
//
this.toolBarButtonInsertCombo.ImageIndex = 8;
this.toolBarButtonInsertCombo.ToolTipText = "Combo Box";
//
// toolBarButtonInsertList
//
this.toolBarButtonInsertList.ImageIndex = 9;
this.toolBarButtonInsertList.ToolTipText = "List Box";
//
// toolBarButtonInsertHorzScroll
//
this.toolBarButtonInsertHorzScroll.ImageIndex = 10;
this.toolBarButtonInsertHorzScroll.ToolTipText = "Horizontal Scrollbar";
//
// toolBarButtonInsertVertScroll
//
this.toolBarButtonInsertVertScroll.ImageIndex = 11;
this.toolBarButtonInsertVertScroll.ToolTipText = "Vertical Scrollbar";
//
// toolBar2Bar1
//
this.toolBar2Bar1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonInsertSpin
//
this.toolBarButtonInsertSpin.ImageIndex = 12;
this.toolBarButtonInsertSpin.ToolTipText = "Spin Control";
//
// toolBarButtonInsertSlider
//
this.toolBarButtonInsertSlider.ImageIndex = 13;
this.toolBarButtonInsertSlider.ToolTipText = "Slider Control";
//
// toolBarButtonInsertProgress
//
this.toolBarButtonInsertProgress.ImageIndex = 14;
this.toolBarButtonInsertProgress.ToolTipText = "Progress Bar Control";
//
// toolBar2Bar2
//
this.toolBar2Bar2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonInsertActiveX
//
this.toolBarButtonInsertActiveX.ImageIndex = 15;
this.toolBarButtonInsertActiveX.ToolTipText = "Other ActiveX Control";
//
// toolBar2Bar3
//
this.toolBar2Bar3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonDelete
//
this.toolBarButtonDelete.ImageIndex = 16;
this.toolBarButtonDelete.ToolTipText = "Delete [Del]";
//
// toolBar2Bar4
//
this.toolBar2Bar4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonToggleGrid
//
this.toolBarButtonToggleGrid.ImageIndex = 17;
this.toolBarButtonToggleGrid.ToolTipText = "Toggle Grid";
//
// toolBarButtonGridSettings
//
this.toolBarButtonGridSettings.ImageIndex = 18;
this.toolBarButtonGridSettings.ToolTipText = "Grid Settings";
//
// toolBar2Bar5
//
this.toolBar2Bar5.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonSetTabOrder
//
this.toolBarButtonSetTabOrder.ImageIndex = 19;
this.toolBarButtonSetTabOrder.ToolTipText = "Set Tab Order";
//
// toolBar2Bar6
//
this.toolBar2Bar6.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonSelectAll
//
this.toolBarButtonSelectAll.ImageIndex = 20;
this.toolBarButtonSelectAll.ToolTipText = "Select All";
//
// toolBarButtonUnselectAll
//
this.toolBarButtonUnselectAll.ImageIndex = 21;
this.toolBarButtonUnselectAll.ToolTipText = "Unselect All";
//
// toolBar2Bar7
//
this.toolBar2Bar7.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonProperties
//
this.toolBarButtonProperties.ImageIndex = 22;
this.toolBarButtonProperties.ToolTipText = "Properties";
//
// imageList2
//
this.imageList2.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
this.imageList2.ImageSize = new System.Drawing.Size(16, 16);
this.imageList2.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList2.ImageStream")));
this.imageList2.TransparentColor = System.Drawing.Color.Teal;
//
// toolBar3
//
this.toolBar3.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
this.toolBar3.AutoSize = false;
this.toolBar3.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.toolBarButtonMoveLeft,
this.toolBarButtonMoveRight,
this.toolBarButtonMoveUp,
this.toolBarButtonMoveDown,
this.toolBar3Bar1,
this.toolBarButtonSendBack,
this.toolBarButtonBringFront,
this.toolBar3Bar2,
this.toolBarButtonAlignLeft,
this.toolBarButtonAlignRight,
this.toolBarButtonAlignTop,
this.toolBarButtonAlignBottom,
this.toolBar3Bar3,
this.toolBarButtonSpaceHorz,
this.toolBarButtonSpaceVert,
this.toolBar3Bar4,
this.toolBarButtonSizeLargestWidth,
this.toolBarButtonSizeLargestHeight,
this.toolBarButtonSizeLargestWidthAndHeight,
this.toolBar3Bar5,
this.toolBarButtonSizeSmallestWidth,
this.toolBarButtonSizeSmallestHeight,
this.toolBarButtonSizeSmallestWidthAndHeight,
this.toolBar3Bar6,
this.toolBarButtonCenterHorz,
this.toolBarButtonCenterVert,
this.toolBarButtonCenterHorzAndVert,
this.toolBar3Bar7,
this.toolBarButtonValidateScript,
this.toolBar3Bar8,
this.toolBarButtonPreviewAutoSizing,
this.toolBarButtonPreviewNoneAutoSizing});
this.toolBar3.ButtonSize = new System.Drawing.Size(16, 16);
this.toolBar3.DropDownArrows = true;
this.toolBar3.ImageList = this.imageList3;
this.toolBar3.Location = new System.Drawing.Point(0, 48);
this.toolBar3.Name = "toolBar3";
this.toolBar3.ShowToolTips = true;
this.toolBar3.Size = new System.Drawing.Size(618, 24);
this.toolBar3.TabIndex = 3;
this.toolBar3.Wrappable = false;
this.toolBar3.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar3_ButtonClick);
//
// toolBarButtonMoveLeft
//
this.toolBarButtonMoveLeft.ImageIndex = 0;
this.toolBarButtonMoveLeft.ToolTipText = "Left";
//
// toolBarButtonMoveRight
//
this.toolBarButtonMoveRight.ImageIndex = 1;
this.toolBarButtonMoveRight.ToolTipText = "Right";
//
// toolBarButtonMoveUp
//
this.toolBarButtonMoveUp.ImageIndex = 2;
this.toolBarButtonMoveUp.ToolTipText = "Up";
//
// toolBarButtonMoveDown
//
this.toolBarButtonMoveDown.ImageIndex = 3;
this.toolBarButtonMoveDown.ToolTipText = "Down";
//
// toolBar3Bar1
//
this.toolBar3Bar1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonSendBack
//
this.toolBarButtonSendBack.ImageIndex = 4;
this.toolBarButtonSendBack.ToolTipText = "Send To Back";
//
// toolBarButtonBringFront
//
this.toolBarButtonBringFront.ImageIndex = 5;
this.toolBarButtonBringFront.ToolTipText = "Bring To Front";
//
// toolBar3Bar2
//
this.toolBar3Bar2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonAlignLeft
//
this.toolBarButtonAlignLeft.ImageIndex = 6;
this.toolBarButtonAlignLeft.ToolTipText = "Align Left";
//
// toolBarButtonAlignRight
//
this.toolBarButtonAlignRight.ImageIndex = 7;
this.toolBarButtonAlignRight.ToolTipText = "Align Right";
//
// toolBarButtonAlignTop
//
this.toolBarButtonAlignTop.ImageIndex = 8;
this.toolBarButtonAlignTop.ToolTipText = "Align Top";
//
// toolBarButtonAlignBottom
//
this.toolBarButtonAlignBottom.ImageIndex = 9;
this.toolBarButtonAlignBottom.ToolTipText = "Align Bottom";
//
// toolBar3Bar3
//
this.toolBar3Bar3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonSpaceHorz
//
this.toolBarButtonSpaceHorz.ImageIndex = 10;
this.toolBarButtonSpaceHorz.ToolTipText = "Space Horz";
//
// toolBarButtonSpaceVert
//
this.toolBarButtonSpaceVert.ImageIndex = 11;
this.toolBarButtonSpaceVert.ToolTipText = "Space Vert";
//
// toolBar3Bar4
//
this.toolBar3Bar4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonSizeLargestWidth
//
this.toolBarButtonSizeLargestWidth.ImageIndex = 12;
this.toolBarButtonSizeLargestWidth.ToolTipText = "Size Largest Width";
//
// toolBarButtonSizeLargestHeight
//
this.toolBarButtonSizeLargestHeight.ImageIndex = 13;
this.toolBarButtonSizeLargestHeight.ToolTipText = "Size Largest Height";
//
// toolBarButtonSizeLargestWidthAndHeight
//
this.toolBarButtonSizeLargestWidthAndHeight.ImageIndex = 14;
this.toolBarButtonSizeLargestWidthAndHeight.ToolTipText = "Size Largest";
//
// toolBar3Bar5
//
this.toolBar3Bar5.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonSizeSmallestWidth
//
this.toolBarButtonSizeSmallestWidth.ImageIndex = 15;
this.toolBarButtonSizeSmallestWidth.ToolTipText = "Size Smallest Width";
//
// toolBarButtonSizeSmallestHeight
//
this.toolBarButtonSizeSmallestHeight.ImageIndex = 16;
this.toolBarButtonSizeSmallestHeight.ToolTipText = "Size Smallest Height";
//
// toolBarButtonSizeSmallestWidthAndHeight
//
this.toolBarButtonSizeSmallestWidthAndHeight.ImageIndex = 17;
this.toolBarButtonSizeSmallestWidthAndHeight.ToolTipText = "Size Smallest";
//
// toolBar3Bar6
//
this.toolBar3Bar6.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonCenterHorz
//
this.toolBarButtonCenterHorz.ImageIndex = 18;
this.toolBarButtonCenterHorz.ToolTipText = "Center Horz";
//
// toolBarButtonCenterVert
//
this.toolBarButtonCenterVert.ImageIndex = 19;
this.toolBarButtonCenterVert.ToolTipText = "Center Vert";
//
// toolBarButtonCenterHorzAndVert
//
this.toolBarButtonCenterHorzAndVert.ImageIndex = 20;
this.toolBarButtonCenterHorzAndVert.ToolTipText = "Center";
//
// toolBar3Bar7
//
this.toolBar3Bar7.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonValidateScript
//
this.toolBarButtonValidateScript.ImageIndex = 21;
this.toolBarButtonValidateScript.ToolTipText = "Validate Script [Ctrl+Q]";
//
// toolBar3Bar8
//
this.toolBar3Bar8.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButtonPreviewAutoSizing
//
this.toolBarButtonPreviewAutoSizing.ImageIndex = 22;
this.toolBarButtonPreviewAutoSizing.ToolTipText = "Preview (Auto Sizing)";
//
// toolBarButtonPreviewNoneAutoSizing
//
this.toolBarButtonPreviewNoneAutoSizing.ImageIndex = 22;
this.toolBarButtonPreviewNoneAutoSizing.ToolTipText = "Preview (None Auto Sizing)";
//
// imageList3
//
this.imageList3.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
this.imageList3.ImageSize = new System.Drawing.Size(16, 16);
this.imageList3.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList3.ImageStream")));
this.imageList3.TransparentColor = System.Drawing.Color.Teal;
//
// openFileDialog1
//
this.openFileDialog1.Filter = "Form Files (*.ddf)|*.ddf|All Files (*.*)|*.*";
//
// saveFileDialog1
//
this.saveFileDialog1.Filter = "Form Files (*.ddf)|*.ddf|All Files (*.*)|*.*";
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(618, 419);
this.Controls.Add(this.toolBar3);
this.Controls.Add(this.toolBar2);
this.Controls.Add(this.toolBar1);
this.Controls.Add(this.tabControl1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Menu = this.mainMenu1;
this.Name = "Form1";
this.Text = "DaeDoe Forms Demonstration Application";
this.Load += new System.EventHandler(this.Form1_Load);
this.Activated += new System.EventHandler(this.Form1_Activated);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.axFormEditor1)).EndInit();
this.tabPage2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.axSimpleScriptEditor1)).EndInit();
this.tabPage3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.axFormViewer1)).EndInit();
this.ResumeLayout(false);
}
#endregion
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void Form1_Load(object sender, System.EventArgs e)
{
try
{
// show the application notes
Form6 form=new Form6();
form.ShowDialog(this);
// connect the script editor to the script
axFormEditor1.Script.Editor=axSimpleScriptEditor1.GetOcx();
// expose an instance of "Class1"
// "Message" is the name by which the form editor will reference the object
// "class1" is the name of the actual object within this program
class1=new Class1();
axFormEditor1.Expose("Message",class1);
// expose an instance of "Class2"
class2=new Class2();
axFormEditor1.Expose("YetAnotherObject",class2);
// the same is required for the form viewer
axFormViewer1.Expose("Message",class1);
axFormViewer1.Expose("YetAnotherObject",class2);
// set the script text
axFormEditor1.Script.Text=
"\' ----------------------------------------------------------------\r\n"+
"\' This is the script editor provided by the standard DaeDoe Forms \r\n"+
"\' package. If required, it can easily be replaced by a number of \r\n"+
"\' powerful third party syntax highlighting editors such as CodeMax\r\n"+
"\' and CodeSense. For additional information, please refer to the \r\n"+
"\' DaeDoe Forms help manual. \r\n"+
"\' ----------------------------------------------------------------\r\n";
// reset the script editor modified flag
axSimpleScriptEditor1.Modified=false;
// clear the modified flag
modified=false;
}
catch(Exception)
{}
}
private void Form1_Activated(object sender, System.EventArgs e)
{
try
{
// refresh the state
// this forces a "StateChanged" event to be fired
axFormEditor1.RefreshState();
// this forces a "ModifiedStateChanged" event to be fired
axSimpleScriptEditor1.RefreshModifiedState();
}
catch(Exception)
{}
}
private void axFormEditor1_StateChanged(object sender, AxDDFORMSLib._IFormEditorEvents_StateChangedEvent e)
{
try
{
#region Toolbar button and menu item state management
// gray out toolbar buttons and menu items
// this simple example covers most cases but not all
// true when 1 or more items are selected
bool enableWhenSelOnePlus=
(e.selectedItemCount > 0) ? true : false;
// true when 2 or more items are selected
bool enableWhenSelTwoPlus=
(e.selectedItemCount > 1) ? true : false;
// true when 3 or more items are selected
bool enableWhenSelThreePlus=
(e.selectedItemCount > 2) ? true : false;
// true when 1 or less items are selected
bool enableWhenSelOneOrLess=
(e.selectedItemCount <= 1) ? true : false;
// true when 1 or more items are selected but not all
bool enableWhenSelOnePlusButNotAll=
(e.selectedItemCount > 0 && e.selectedItemCount!=e.itemCount) ? true : false;
//
// cut
//
menuItemCut.Enabled=enableWhenSelOnePlus;
toolBarButtonCut.Enabled=enableWhenSelOnePlus;
//
// copy
//
menuItemCopy.Enabled=enableWhenSelOnePlus;
toolBarButtonCopy.Enabled=enableWhenSelOnePlus;
//
// paste
//
menuItemPaste.Enabled=e.canPaste;
toolBarButtonPaste.Enabled=e.canPaste;
//
// undo
//
menuItemUndo.Enabled=e.canUndo;
toolBarButtonUndo.Enabled=e.canUndo;
//
// redo
//
menuItemRedo.Enabled=e.canRedo;
toolBarButtonRedo.Enabled=e.canRedo;
//
// delete
//
menuItemDelete.Enabled=enableWhenSelOnePlus;
toolBarButtonDelete.Enabled=enableWhenSelOnePlus;
//
// properties
//
menuItemProperties.Enabled=enableWhenSelOneOrLess;
toolBarButtonProperties.Enabled=enableWhenSelOneOrLess;
//
// move left
//
menuItemMoveLeft.Enabled=enableWhenSelOnePlus;
toolBarButtonMoveLeft.Enabled=enableWhenSelOnePlus;
//
// move right
//
menuItemMoveRight.Enabled=enableWhenSelOnePlus;
toolBarButtonMoveRight.Enabled=enableWhenSelOnePlus;
//
// move up
//
menuItemMoveUp.Enabled=enableWhenSelOnePlus;
toolBarButtonMoveUp.Enabled=enableWhenSelOnePlus;
//
// move down
//
menuItemMoveDown.Enabled=enableWhenSelOnePlus;
toolBarButtonMoveDown.Enabled=enableWhenSelOnePlus;
//
// send back
//
menuItemSendBack.Enabled=enableWhenSelOnePlusButNotAll;
toolBarButtonSendBack.Enabled=enableWhenSelOnePlusButNotAll;
//
// bring front
//
menuItemBringFront.Enabled=enableWhenSelOnePlusButNotAll;
toolBarButtonBringFront.Enabled=enableWhenSelOnePlusButNotAll;
//
// align left
//
menuItemAlignLeft.Enabled=enableWhenSelTwoPlus;
toolBarButtonAlignLeft.Enabled=enableWhenSelTwoPlus;
//
// align right
//
menuItemAlignRight.Enabled=enableWhenSelTwoPlus;
toolBarButtonAlignRight.Enabled=enableWhenSelTwoPlus;
//
// align top
//
menuItemAlignTop.Enabled=enableWhenSelTwoPlus;
toolBarButtonAlignTop.Enabled=enableWhenSelTwoPlus;
//
// align bottom
//
menuItemAlignBottom.Enabled=enableWhenSelTwoPlus;
toolBarButtonAlignBottom.Enabled=enableWhenSelTwoPlus;
//
// space horz
//
menuItemSpaceHorz.Enabled=enableWhenSelThreePlus;
toolBarButtonSpaceHorz.Enabled=enableWhenSelThreePlus;
//
// space vert
//
menuItemSpaceVert.Enabled=enableWhenSelThreePlus;
toolBarButtonSpaceVert.Enabled=enableWhenSelThreePlus;
//
// size largest width
//
menuItemSizeLargestWidth.Enabled=enableWhenSelTwoPlus;
toolBarButtonSizeLargestWidth.Enabled=enableWhenSelTwoPlus;
//
// size largest height
//
menuItemSizeLargestHeight.Enabled=enableWhenSelTwoPlus;
toolBarButtonSizeLargestHeight.Enabled=enableWhenSelTwoPlus;
//
// size largest width and height
//
menuItemSizeLargestWidthAndHeight.Enabled=enableWhenSelTwoPlus;
toolBarButtonSizeLargestWidthAndHeight.Enabled=enableWhenSelTwoPlus;
//
// size smallest width
//
menuItemSizeSmallestWidth.Enabled=enableWhenSelTwoPlus;
toolBarButtonSizeSmallestWidth.Enabled=enableWhenSelTwoPlus;
//
// size smallest height
//
menuItemSizeSmallestHeight.Enabled=enableWhenSelTwoPlus;
toolBarButtonSizeSmallestHeight.Enabled=enableWhenSelTwoPlus;
//
// size smallest width and height
//
menuItemSizeSmallestWidthAndHeight.Enabled=enableWhenSelTwoPlus;
toolBarButtonSizeSmallestWidthAndHeight.Enabled=enableWhenSelTwoPlus;
//
// center horz
//
menuItemCenterHorz.Enabled=enableWhenSelOnePlus;
toolBarButtonCenterHorz.Enabled=enableWhenSelOnePlus;
//
// center vert
//
menuItemCenterVert.Enabled=enableWhenSelOnePlus;
toolBarButtonCenterVert.Enabled=enableWhenSelOnePlus;
//
// center horz and vert
//
menuItemCenterHorzAndVert.Enabled=enableWhenSelOnePlus;
toolBarButtonCenterHorzAndVert.Enabled=enableWhenSelOnePlus;
#endregion
// set the modified flag
if(e.modified)
{
modified=true;
}
}
catch(Exception)
{}
}
private void axFormEditor1_EditExistingEventHandler(object sender, System.EventArgs e)
{
try
{
// select the script editor tab
tabControl1.SelectedTab=tabPage2;
}
catch(Exception)
{}
}
private void axFormEditor1_EditScriptError(object sender, AxDDFORMSLib._IFormEditorEvents_EditScriptErrorEvent e)
{
try
{
// select the script editor tab
tabControl1.SelectedTab=tabPage2;
// show the error details
StringBuilder errorInfo=new StringBuilder();
errorInfo.Append("Error Details\r\n\r\n");
errorInfo.Append("Source : "); // source
errorInfo.Append(e.source);
errorInfo.Append("\r\n");
errorInfo.Append("Number : "); // number
errorInfo.Append(e.number);
errorInfo.Append(" - ");
errorInfo.Append(e.number.ToString("X")+" Hex");
errorInfo.Append("\r\n");
errorInfo.Append("Description : "); // description
errorInfo.Append(e.description);
Form5 form=new Form5();
form.ErrorInfo=errorInfo.ToString();
form.ShowDialog(this);
}
catch(Exception)
{}
}
private void axSimpleScriptEditor1_ModifiedStateChanged(object sender, AxDDFORMSLib._ISimpleScriptEditorEvents_ModifiedStateChangedEvent e)
{
try
{
// set the modified flag
if(e.modified)
{
modified=true;
}
}
catch(Exception)
{}
}
private void tabControl1_SelectedIndexChanged(object sender, System.EventArgs e)
{
try
{
// if the form viewer page has been selected
if(tabControl1.SelectedTab==tabPage3)
{
// validate the script
if(axFormEditor1.ValidateScript()==false)
{
throw new Exception();
}
// save the form
string FileName=Application.StartupPath+"\\Demo.tmp";
axFormEditor1.SaveToFile(FileName);
// load the form into the viewer
axFormViewer1.LoadFromFile(FileName);
// set the viewer background color (optional but looks better)
axFormViewer1.BackColor=
ColorTranslator.FromOle((int)axFormViewer1.Form.BackColor);
}
}
catch(Exception)
{}
}
private void New()
{
try
{
// if modified save changes
DialogResult Result=DialogResult.None;
if(modified)
{
Result=MessageBox.Show(this,
"Do you wish to save changes first ?","CSDemo",
MessageBoxButtons.YesNoCancel,MessageBoxIcon.Question);
if(Result==DialogResult.Yes) // save the form
{
Save();
}
if(Result==DialogResult.Cancel) // cancel
{
throw new Exception();
}
}
// if save succeeded or the user chose not to save changes
if(modified==false || Result==DialogResult.No)
{
// create a new form (this resets the form editor modified flag)
axFormEditor1.New();
// set the script text
axFormEditor1.Script.Text=
"\' ----------------------------------------------------------------\r\n"+
"\' This is the script editor provided by the standard DaeDoe Forms \r\n"+
"\' package. If required, it can easily be replaced by a number of \r\n"+
"\' powerful third party syntax highlighting editors such as CodeMax\r\n"+
"\' and CodeSense. For additional information, please refer to the \r\n"+
"\' DaeDoe Forms help manual. \r\n"+
"\' ----------------------------------------------------------------\r\n";
// reset the script editor modified flag
axSimpleScriptEditor1.Modified=false;
// reset the modified flag
modified=false;
}
}
catch(Exception)
{}
}
private void Open()
{
try
{
// if modified save changes
DialogResult Result=DialogResult.None;
if(modified)
{
Result=MessageBox.Show(this,
"Do you wish to save changes first ?","CSDemo",
MessageBoxButtons.YesNoCancel,MessageBoxIcon.Question);
if(Result==DialogResult.Yes) // save the form
{
Save();
}
if(Result==DialogResult.Cancel) // cancel
{
throw new Exception();
}
}
// if save succeeded or the user chose not to save changes
if(modified==false || Result==DialogResult.No)
{
// show the open file dialog
if(openFileDialog1.ShowDialog(this)==DialogResult.OK)
{
// open the form (this resets the form editor modified flag)
axFormEditor1.LoadFromFile(openFileDialog1.FileName);
// reset the script editor modified flag
axSimpleScriptEditor1.Modified=false;
// reset the modified flag
modified=false;
}
}
}
catch(Exception)
{
// show the error dialog
// TODO : catch any exceptions thrown from this
Form8 form=new Form8();
form.ShowDialog();
}
}
private void Save()
{
try
{
// TODO : implement this rather than delegating to SaveAs
SaveAs();
}
catch(Exception)
{}
}
private void SaveAs()
{
try
{
// show the save file dialog
if(saveFileDialog1.ShowDialog(this)==DialogResult.OK)
{
// save the form (this resets the form editor modified flag)
axFormEditor1.SaveToFile(saveFileDialog1.FileName);
// reset the script editor modified flag
axSimpleScriptEditor1.Modified=false;
// reset the modified flag
modified=false;
}
}
catch(Exception)
{}
}
private void Exit()
{
try
{
// if modified save changes
DialogResult Result=DialogResult.None;
if(modified)
{
Result=MessageBox.Show(this,
"Do you wish to save changes first ?","CSDemo",
MessageBoxButtons.YesNoCancel,MessageBoxIcon.Question);
if(Result==DialogResult.Yes) // save the form
{
Save();
}
if(Result==DialogResult.Cancel) // cancel
{
throw new Exception();
}
}
// close the form if save succeeded or the user chose not to save changes
if(modified==false || Result==DialogResult.No)
{
Close();
}
}
catch(Exception)
{}
}
private void Undo()
{
try
{
// undo the last operation
axFormEditor1.Undo();
}
catch(Exception)
{}
}
private void Redo()
{
try
{
// redo the last undo
axFormEditor1.Redo();
}
catch(Exception)
{}
}
private void Cut()
{
try
{
// cut selected items to the clipboard
axFormEditor1.Cut();
}
catch(Exception)
{}
}
private void Copy()
{
try
{
// copy selected items to the clipboard
axFormEditor1.Copy();
}
catch(Exception)
{}
}
private void Paste()
{
try
{
// paste items from the clipboard into the form
axFormEditor1.Paste();
}
catch(Exception)
{}
}
private void Delete()
{
try
{
// delete selected items
axFormEditor1.Delete();
}
catch(Exception)
{}
}
private void SelectAll()
{
try
{
// select all items
axFormEditor1.SelectAll();
}
catch(Exception)
{}
}
private void UnselectAll()
{
try
{
// unselect all items
axFormEditor1.SelectNone();
}
catch(Exception)
{}
}
private void Properties()
{
try
{
// show property pages for the current selection
axFormEditor1.Properties();
}
catch(Exception)
{}
}
private void InsertFrame()
{
try
{
// insert a frame
object obj=axFormEditor1.Insert("DDControlPack.DDLabel");
// manipulate the new item
// TODO : simplify this by using type information
// border style
int borderStyle=3;
obj.GetType().InvokeMember("BorderStyle",BindingFlags.SetProperty,
null,obj,new object[] {borderStyle});
// fore color
int foreColor=ColorTranslator.ToOle(axFormEditor1.FormForeColor);
obj.GetType().InvokeMember("ForeColor",BindingFlags.SetProperty,
null,obj,new object[] {foreColor});
// back color
int backColor=ColorTranslator.ToOle(axFormEditor1.FormBackColor);
obj.GetType().InvokeMember("BackColor",BindingFlags.SetProperty,
null,obj,new object[] {backColor});
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="DDControlPack.DDLabel";
form.ShowDialog(this);
}
}
private void InsertRectangle()
{
try
{
// insert a rectangle
object obj=axFormEditor1.Insert("DDControlPack.DDLabel");
// manipulate the new item
// TODO : simplify this by using type information
// border style
int borderStyle=0;
obj.GetType().InvokeMember("BorderStyle",BindingFlags.SetProperty,
null,obj,new object[] {borderStyle});
// fore color
int foreColor=ColorTranslator.ToOle(axFormEditor1.FormForeColor);
obj.GetType().InvokeMember("ForeColor",BindingFlags.SetProperty,
null,obj,new object[] {foreColor});
// back color
int backColor=ColorTranslator.ToOle(axFormEditor1.FormForeColor);
obj.GetType().InvokeMember("BackColor",BindingFlags.SetProperty,
null,obj,new object[] {backColor});
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="DDControlPack.DDLabel";
form.ShowDialog(this);
}
}
private void InsertPicture()
{
try
{
// insert a picture
object obj=axFormEditor1.Insert("DDControlPack.DDPicture");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="DDControlPack.DDPicture";
form.ShowDialog(this);
}
}
private void InsertLabel()
{
try
{
// insert a label
object obj=axFormEditor1.Insert("DDControlPack.DDLabel");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="DDControlPack.DDLabel";
form.ShowDialog(this);
}
}
private void InsertButton()
{
try
{
// insert a command button
object obj=axFormEditor1.Insert("DDControlPack.DDButton");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="DDControlPack.DDButton";
form.ShowDialog(this);
}
}
private void InsertCheck()
{
try
{
// insert a check box
object obj=axFormEditor1.Insert("DDControlPack.DDCheckBox");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="DDControlPack.DDCheckBox";
form.ShowDialog(this);
}
}
private void InsertRadio()
{
try
{
// insert a radio button
object obj=axFormEditor1.Insert("DDControlPack.DDRadioButton");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="DDControlPack.DDRadioButton";
form.ShowDialog(this);
}
}
private void InsertText()
{
try
{
// insert a text box
object obj=axFormEditor1.Insert("DDControlPack.DDTextBox");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="DDControlPack.DDTextBox";
form.ShowDialog(this);
}
}
private void InsertCombo()
{
try
{
// insert a combo box
object obj=axFormEditor1.Insert("DDControlPack.DDComboBox");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="DDControlPack.DDComboBox";
form.ShowDialog(this);
}
}
private void InsertList()
{
try
{
// insert a list box
object obj=axFormEditor1.Insert("DDControlPack.DDListBox");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="DDControlPack.DDListBox";
form.ShowDialog(this);
}
}
private void InsertHorzScroll()
{
try
{
// insert a horizontal scrollbar
object obj=axFormEditor1.Insert("DDControlPack.DDHorzScrollBar");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="DDControlPack.DDHorzScrollBar";
form.ShowDialog(this);
}
}
private void InsertVertScroll()
{
try
{
// insert a vertical scrollbar
object obj=axFormEditor1.Insert("DDControlPack.DDVertScrollBar");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="DDControlPack.DDVertScrollBar";
form.ShowDialog(this);
}
}
private void InsertSpin()
{
try
{
// insert a spin control
object obj=axFormEditor1.Insert("MSComCtl2.UpDown");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="MSComCtl2.UpDown";
form.ShowDialog(this);
}
}
private void InsertSlider()
{
try
{
// insert a slider
object obj=axFormEditor1.Insert("MsComCtlLib.Slider");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="MsComCtlLib.Slider";
form.ShowDialog(this);
}
}
private void InsertProgress()
{
try
{
// insert a progress bar
object obj=axFormEditor1.Insert("MsComCtlLib.ProgCtrl");
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID="MsComCtlLib.ProgCtrl";
form.ShowDialog(this);
}
}
private void InsertActiveX()
{
// programmatic identifier of the control to insert
string ProgId="";
try
{
// insert an activex control from a list of
// controls installed on the system
ProgId=axFormEditor1.ShowInsertDialog();
if(ProgId!=null && ProgId.Length!=0)
{
axFormEditor1.Insert(ProgId);
}
}
catch(Exception)
{
// show help
// TODO : catch any exceptions thrown from this
Form7 form=new Form7();
form.ProgID=ProgId;
form.ShowDialog(this);
}
}
private void MoveLeft()
{
try
{
// move selected items left by a single pixel
axFormEditor1.MoveLeft();
}
catch(Exception)
{}
}
private void MoveRight()
{
try
{
// move selected items right by a single pixel
axFormEditor1.MoveRight();
}
catch(Exception)
{}
}
private void MoveUp()
{
try
{
// move selected items up by a single pixel
axFormEditor1.MoveUp();
}
catch(Exception)
{}
}
private void MoveDown()
{
try
{
// move selected items down by a single pixel
axFormEditor1.MoveDown();
}
catch(Exception)
{}
}
private void SendBack()
{
try
{
// send selected items to the back of other items
axFormEditor1.CtlSendToBack();
}
catch(Exception)
{}
}
private void BringFront()
{
try
{
// bring selected items to the front of other items
axFormEditor1.CtlBringToFront();
}
catch(Exception)
{}
}
private void AlignLeft()
{
try
{
// align selected items to the left most
axFormEditor1.AlignLeft();
}
catch(Exception)
{}
}
private void AlignRight()
{
try
{
// align selected items to the right most
axFormEditor1.AlignRight();
}
catch(Exception)
{}
}
private void AlignTop()
{
try
{
// align selected items to the top most
axFormEditor1.AlignTop();
}
catch(Exception)
{}
}
private void AlignBottom()
{
try
{
// align selected items to the bottom most
axFormEditor1.AlignBottom();
}
catch(Exception)
{}
}
private void SpaceHorz()
{
try
{
// space selected items horizontally
axFormEditor1.SpaceHorizontally();
}
catch(Exception)
{}
}
private void SpaceVert()
{
try
{
// space selected items vertically
axFormEditor1.SpaceVertically();
}
catch(Exception)
{}
}
private void SizeLargestWidth()
{
try
{
// size the width of selected items to match the largest
axFormEditor1.SizeWidthToLargest();
}
catch(Exception)
{}
}
private void SizeLargestHeight()
{
try
{
// size the height of selected items to match the largest
axFormEditor1.SizeHeightToLargest();
}
catch(Exception)
{}
}
private void SizeLargestWidthAndHeight()
{
try
{
// size the width and height of selected items to match the largest
axFormEditor1.SizeToLargest();
}
catch(Exception)
{}
}
private void SizeSmallestWidth()
{
try
{
// size the width of selected items to match the smallest
axFormEditor1.SizeWidthToSmallest();
}
catch(Exception)
{}
}
private void SizeSmallestHeight()
{
try
{
// size the height of selected items to match the smallest
axFormEditor1.SizeHeightToSmallest();
}
catch(Exception)
{}
}
private void SizeSmallestWidthAndHeight()
{
try
{
// size the width and height of selected items to match the smallest
axFormEditor1.SizeToSmallest();
}
catch(Exception)
{}
}
private void CenterHorz()
{
try
{
// align selected items to the form horizontal center
axFormEditor1.FormAlignHCenter();
}
catch(Exception)
{}
}
private void CenterVert()
{
try
{
// align selected items to the form vertical center
axFormEditor1.FormAlignVCenter();
}
catch(Exception)
{}
}
private void CenterHorzAndVert()
{
try
{
// align selected items to the form horizontal and vertical center
axFormEditor1.FormAlignBoth();
}
catch(Exception)
{}
}
private void ToggleGrid()
{
try
{
// toggle the grid
axFormEditor1.GridVisible=!axFormEditor1.GridVisible;
}
catch(Exception)
{}
}
private void GridSettings()
{
try
{
// change the grid settings
Form3 form=new Form3();
form.GridWidth=(uint)axFormEditor1.GridWidth;
form.GridHeight=(uint)axFormEditor1.GridHeight;
if(form.ShowDialog()==DialogResult.OK)
{
axFormEditor1.GridWidth=(int)form.GridWidth;
axFormEditor1.GridHeight=(int)form.GridHeight;
}
}
catch(Exception)
{}
}
private void SetTabOrder()
{
try
{
// switch the form editor into tab ordering mode
axFormEditor1.SetTabOrder();
}
catch(Exception)
{}
}
private void ValidateScript()
{
try
{
// check the script for errors
if(axFormEditor1.ValidateScript())
{
MessageBox.Show(this,"The script does not contain any errors.","CSDemo",
MessageBoxButtons.OK,MessageBoxIcon.Information);
}
}
catch(Exception)
{}
}
private void PreviewAutoSizing()
{
try
{
// create the preview form
Form4 form=new Form4();
// validate the script
if(axFormEditor1.ValidateScript()==false)
{
throw new Exception();
}
// expose objects - see Form1_Load() for more details
form.axFormViewer1.Expose("Message",class1);
form.axFormViewer1.Expose("YetAnotherObject",class2);
// save the form
string FileName=Application.StartupPath+"\\Demo.tmp";
axFormEditor1.SaveToFile(FileName);
// load the form into the viewer
form.axFormViewer1.LoadFromFile(FileName);
// set the viewer background color (optional but looks better)
form.axFormViewer1.BackColor=
ColorTranslator.FromOle((int)form.axFormViewer1.Form.BackColor);
// calculate the preview width
int width=form.Size.Width-form.ClientSize.Width;
width+=form.axFormViewer1.Form.Width;
if(width > Screen.PrimaryScreen.Bounds.Width)
{
width=Screen.PrimaryScreen.Bounds.Width;
}
// calculate the preview height
int height=form.Size.Height-form.ClientSize.Height;
height+=form.axFormViewer1.Form.Height;
if(height > Screen.PrimaryScreen.Bounds.Height)
{
height=Screen.PrimaryScreen.Bounds.Height;
}
// size the preview form
form.Size=new Size(width,height);
// set the preview caption
form.Text=form.Text+" (Auto Sizing)";
// show the preview
form.ShowDialog(this);
}
catch(Exception)
{}
}
private void PreviewNoneAutoSizing()
{
try
{
// create the preview form
Form4 form=new Form4();
// validate the script
if(axFormEditor1.ValidateScript()==false)
{
throw new Exception();
}
// expose objects - see Form1_Load() for more details
form.axFormViewer1.Expose("Message",class1);
form.axFormViewer1.Expose("YetAnotherObject",class2);
// save the form
string FileName=Application.StartupPath+"\\Demo.tmp";
axFormEditor1.SaveToFile(FileName);
// load the form into the viewer
form.axFormViewer1.LoadFromFile(FileName);
// set the viewer background color (optional but looks better)
form.axFormViewer1.BackColor=
ColorTranslator.FromOle((int)form.axFormViewer1.Form.BackColor);
// set the preview caption
form.Text=form.Text+" (None Auto Sizing)";
// show the preview
form.ShowDialog(this);
}
catch(Exception)
{}
}
private void About()
{
try
{
// show the about box
Form2 form=new Form2();
form.ShowDialog();
}
catch(Exception)
{}
}
#region Menu handlers
private void menuItemNew_Click(object sender, System.EventArgs e)
{
New();
}
private void menuItemOpen_Click(object sender, System.EventArgs e)
{
Open();
}
private void menuItemSave_Click(object sender, System.EventArgs e)
{
Save();
}
private void menuItemSaveAs_Click(object sender, System.EventArgs e)
{
SaveAs();
}
private void menuItemExit_Click(object sender, System.EventArgs e)
{
Exit();
}
private void menuItemUndo_Click(object sender, System.EventArgs e)
{
Undo();
}
private void menuItemRedo_Click(object sender, System.EventArgs e)
{
Redo();
}
private void menuItemCut_Click(object sender, System.EventArgs e)
{
Cut();
}
private void menuItemCopy_Click(object sender, System.EventArgs e)
{
Copy();
}
private void menuItemPaste_Click(object sender, System.EventArgs e)
{
Paste();
}
private void menuItemDelete_Click(object sender, System.EventArgs e)
{
Delete();
}
private void menuItemSelectAll_Click(object sender, System.EventArgs e)
{
SelectAll();
}
private void menuItemUnselectAll_Click(object sender, System.EventArgs e)
{
UnselectAll();
}
private void menuItemProperties_Click(object sender, System.EventArgs e)
{
Properties();
}
private void menuItemInsertFrame_Click(object sender, System.EventArgs e)
{
InsertFrame();
}
private void menuItemInsertRectangle_Click(object sender, System.EventArgs e)
{
InsertRectangle();
}
private void menuItemInsertPicture_Click(object sender, System.EventArgs e)
{
InsertPicture();
}
private void menuItemInsertLabel_Click(object sender, System.EventArgs e)
{
InsertLabel();
}
private void menuItemInsertButton_Click(object sender, System.EventArgs e)
{
InsertButton();
}
private void menuItemInsertCheck_Click(object sender, System.EventArgs e)
{
InsertCheck();
}
private void menuItemInsertRadio_Click(object sender, System.EventArgs e)
{
InsertRadio();
}
private void menuItemInsertText_Click(object sender, System.EventArgs e)
{
InsertText();
}
private void menuItemInsertCombo_Click(object sender, System.EventArgs e)
{
InsertCombo();
}
private void menuItemInsertList_Click(object sender, System.EventArgs e)
{
InsertList();
}
private void menuItemInsertHorzScroll_Click(object sender, System.EventArgs e)
{
InsertHorzScroll();
}
private void menuItemInsertVertScroll_Click(object sender, System.EventArgs e)
{
InsertVertScroll();
}
private void menuItemInsertSpin_Click(object sender, System.EventArgs e)
{
InsertSpin();
}
private void menuItemInsertSlider_Click(object sender, System.EventArgs e)
{
InsertSlider();
}
private void menuItemInsertProgress_Click(object sender, System.EventArgs e)
{
InsertProgress();
}
private void menuItemInsertActiveX_Click(object sender, System.EventArgs e)
{
InsertActiveX();
}
private void menuItemMoveLeft_Click(object sender, System.EventArgs e)
{
MoveLeft();
}
private void menuItemMoveRight_Click(object sender, System.EventArgs e)
{
MoveRight();
}
private void menuItemMoveUp_Click(object sender, System.EventArgs e)
{
MoveUp();
}
private void menuItemMoveDown_Click(object sender, System.EventArgs e)
{
MoveDown();
}
private void menuItemSendBack_Click(object sender, System.EventArgs e)
{
SendBack();
}
private void menuItemBringFront_Click(object sender, System.EventArgs e)
{
BringFront();
}
private void menuItemAlignLeft_Click(object sender, System.EventArgs e)
{
AlignLeft();
}
private void menuItemAlignRight_Click(object sender, System.EventArgs e)
{
AlignRight();
}
private void menuItemAlignTop_Click(object sender, System.EventArgs e)
{
AlignTop();
}
private void menuItemAlignBottom_Click(object sender, System.EventArgs e)
{
AlignBottom();
}
private void menuItemSpaceHorz_Click(object sender, System.EventArgs e)
{
SpaceHorz();
}
private void menuItemSpaceVert_Click(object sender, System.EventArgs e)
{
SpaceVert();
}
private void menuItemSizeLargestWidth_Click(object sender, System.EventArgs e)
{
SizeLargestWidth();
}
private void menuItemSizeLargestHeight_Click(object sender, System.EventArgs e)
{
SizeLargestHeight();
}
private void menuItemSizeLargestWidthAndHeight_Click(object sender, System.EventArgs e)
{
SizeLargestWidthAndHeight();
}
private void menuItemSizeSmallestWidth_Click(object sender, System.EventArgs e)
{
SizeSmallestWidth();
}
private void menuItemSizeSmallestHeight_Click(object sender, System.EventArgs e)
{
SizeSmallestHeight();
}
private void menuItemSizeSmallestWidthAndHeight_Click(object sender, System.EventArgs e)
{
SizeSmallestWidthAndHeight();
}
private void menuItemCenterHorz_Click(object sender, System.EventArgs e)
{
CenterHorz();
}
private void menuItemCenterVert_Click(object sender, System.EventArgs e)
{
CenterVert();
}
private void menuItemCenterHorzAndVert_Click(object sender, System.EventArgs e)
{
CenterHorzAndVert();
}
private void menuItemToggleGrid_Click(object sender, System.EventArgs e)
{
ToggleGrid();
}
private void menuItemGridSettings_Click(object sender, System.EventArgs e)
{
GridSettings();
}
private void menuItemSetTabOrder_Click(object sender, System.EventArgs e)
{
SetTabOrder();
}
private void menuItemValidateScript_Click(object sender, System.EventArgs e)
{
ValidateScript();
}
private void menuItemPreviewAutoSizing_Click(object sender, System.EventArgs e)
{
PreviewAutoSizing();
}
private void menuItemPreviewNoneAutoSizing_Click(object sender, System.EventArgs e)
{
PreviewNoneAutoSizing();
}
private void menuItemAbout_Click(object sender, System.EventArgs e)
{
About();
}
#endregion
#region Toolbar handlers
private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
try
{
// process the button press
if(e.Button==toolBarButtonNew)
{
New();
}
else if(e.Button==toolBarButtonOpen)
{
Open();
}
else if(e.Button==toolBarButtonSave)
{
Save();
}
else if(e.Button==toolBarButtonCut)
{
Cut();
}
else if(e.Button==toolBarButtonCopy)
{
Copy();
}
else if(e.Button==toolBarButtonPaste)
{
Paste();
}
else if(e.Button==toolBarButtonUndo)
{
Undo();
}
else if(e.Button==toolBarButtonRedo)
{
Redo();
}
else if(e.Button==toolBarButtonAbout)
{
About();
}
}
catch(Exception)
{}
}
private void toolBar2_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
try
{
// process the button press
if(e.Button==toolBarButtonInsertFrame)
{
InsertFrame();
}
else if(e.Button==toolBarButtonInsertRectangle)
{
InsertRectangle();
}
else if(e.Button==toolBarButtonInsertPicture)
{
InsertPicture();
}
else if(e.Button==toolBarButtonInsertLabel)
{
InsertLabel();
}
else if(e.Button==toolBarButtonInsertButton)
{
InsertButton();
}
else if(e.Button==toolBarButtonInsertCheck)
{
InsertCheck();
}
else if(e.Button==toolBarButtonInsertRadio)
{
InsertRadio();
}
else if(e.Button==toolBarButtonInsertText)
{
InsertText();
}
else if(e.Button==toolBarButtonInsertCombo)
{
InsertCombo();
}
else if(e.Button==toolBarButtonInsertList)
{
InsertList();
}
else if(e.Button==toolBarButtonInsertHorzScroll)
{
InsertHorzScroll();
}
else if(e.Button==toolBarButtonInsertVertScroll)
{
InsertVertScroll();
}
else if(e.Button==toolBarButtonInsertSpin)
{
InsertSpin();
}
else if(e.Button==toolBarButtonInsertSlider)
{
InsertSlider();
}
else if(e.Button==toolBarButtonInsertProgress)
{
InsertProgress();
}
else if(e.Button==toolBarButtonInsertActiveX)
{
InsertActiveX();
}
else if(e.Button==toolBarButtonDelete)
{
Delete();
}
else if(e.Button==toolBarButtonToggleGrid)
{
ToggleGrid();
}
else if(e.Button==toolBarButtonGridSettings)
{
GridSettings();
}
else if(e.Button==toolBarButtonSetTabOrder)
{
SetTabOrder();
}
else if(e.Button==toolBarButtonSelectAll)
{
SelectAll();
}
else if(e.Button==toolBarButtonUnselectAll)
{
UnselectAll();
}
else if(e.Button==toolBarButtonProperties)
{
Properties();
}
}
catch(Exception)
{}
}
private void toolBar3_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
try
{
// process the button press
if(e.Button==toolBarButtonMoveLeft)
{
MoveLeft();
}
else if(e.Button==toolBarButtonMoveRight)
{
MoveRight();
}
else if(e.Button==toolBarButtonMoveUp)
{
MoveUp();
}
else if(e.Button==toolBarButtonMoveDown)
{
MoveDown();
}
else if(e.Button==toolBarButtonSendBack)
{
SendBack();
}
else if(e.Button==toolBarButtonBringFront)
{
BringFront();
}
else if(e.Button==toolBarButtonAlignLeft)
{
AlignLeft();
}
else if(e.Button==toolBarButtonAlignRight)
{
AlignRight();
}
else if(e.Button==toolBarButtonAlignTop)
{
AlignTop();
}
else if(e.Button==toolBarButtonAlignBottom)
{
AlignBottom();
}
else if(e.Button==toolBarButtonSpaceHorz)
{
SpaceHorz();
}
else if(e.Button==toolBarButtonSpaceVert)
{
SpaceVert();
}
else if(e.Button==toolBarButtonSizeLargestWidth)
{
SizeLargestWidth();
}
else if(e.Button==toolBarButtonSizeLargestHeight)
{
SizeLargestHeight();
}
else if(e.Button==toolBarButtonSizeLargestWidthAndHeight)
{
SizeLargestWidthAndHeight();
}
else if(e.Button==toolBarButtonSizeSmallestWidth)
{
SizeSmallestWidth();
}
else if(e.Button==toolBarButtonSizeSmallestHeight)
{
SizeSmallestHeight();
}
else if(e.Button==toolBarButtonSizeSmallestWidthAndHeight)
{
SizeSmallestWidthAndHeight();
}
else if(e.Button==toolBarButtonCenterHorz)
{
CenterHorz();
}
else if(e.Button==toolBarButtonCenterVert)
{
CenterVert();
}
else if(e.Button==toolBarButtonCenterHorzAndVert)
{
CenterHorzAndVert();
}
else if(e.Button==toolBarButtonValidateScript)
{
ValidateScript();
}
else if(e.Button==toolBarButtonPreviewAutoSizing)
{
PreviewAutoSizing();
}
else if(e.Button==toolBarButtonPreviewNoneAutoSizing)
{
PreviewNoneAutoSizing();
}
}
catch(Exception)
{}
}
#endregion
}
}