home *** CD-ROM | disk | FTP | other *** search
Text File | 2004-04-03 | 70.9 KB | 1,559 lines |
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- using NETXP.Controls.Bars;
- using NETXP.Library;
-
- namespace Bars
- {
- /// <summary>
- /// Summary description for Form1.
- /// </summary>
- public class Form1 : System.Windows.Forms.Form
- {
- private NETXP.Controls.Bars.CommandBar commandBar1;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem1;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem2;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem3;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem9;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem10;
- private NETXP.Controls.Bars.CommandBar commandBar2;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem11;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem12;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem13;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem14;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem15;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem16;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem17;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem18;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem19;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem20;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem23;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem22;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem24;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem25;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem26;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem27;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem28;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem29;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem30;
- private NETXP.Controls.Bars.CommandContextMenu contextMenu2;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem31;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem32;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem33;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem34;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem35;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem37;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem38;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem39;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem40;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem41;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem21;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem42;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem43;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem44;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem45;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem46;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem47;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem48;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem49;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem50;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem51;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem52;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem53;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem54;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem55;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem56;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem57;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem4;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem5;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem6;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem7;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem8;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem58;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem59;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem60;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem61;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem62;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem63;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem64;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem65;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem66;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem67;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem68;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem69;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem70;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem71;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem72;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem73;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem74;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem75;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem76;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem77;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem78;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem79;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarItem80;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem81;
- private NETXP.Controls.Bars.CommandBarManager commandBarManager1;
- private NETXP.Controls.Bars.CommandBarDock commandBarDockLeft;
- private NETXP.Controls.Bars.CommandBarDock commandBarDockRight;
- private NETXP.Controls.Bars.CommandBarDock commandBarDockTop;
- private NETXP.Controls.Bars.CommandBarLabelItem commandBarLabelItem1;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarSeparatorItem1;
- private NETXP.Controls.Bars.CommandBarComboItem commandBarComboItem1;
- private NETXP.Controls.Bars.CommandBar commandBar3;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarButtonItem1;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarButtonItem2;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarButtonItem3;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarButtonItem4;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarButtonItem5;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarButtonItem6;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarSeparatorItem2;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarSeparatorItem3;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarSeparatorItem4;
- private NETXP.Controls.Bars.CommandBarSeparatorItem commandBarSeparatorItem5;
- private NETXP.Controls.Bars.CommandBarComboItem commandBarComboItem2;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarButtonItem7;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarButtonItem8;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarButtonItem9;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarButtonItem10;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarButtonItem11;
- private NETXP.Controls.Bars.CommandBar commandBar4;
- private NETXP.Controls.Bars.CommandBarComboItem commandBarComboItem3;
- private NETXP.Controls.Bars.CommandBarLabelItem commandBarLabelItem2;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarButtonItem12;
- private NETXP.Controls.Bars.StatusBar statusBar1;
- private System.Windows.Forms.StatusBarPanel statusBarPanel1;
- private System.Windows.Forms.StatusBarPanel statusBarPanel2;
- private NETXP.Controls.Bars.ProgressPanel progressPanel1;
- private NETXP.Controls.Bars.ListBar listBar1;
- private NETXP.Controls.Bars.ListBarGroup listBarGroup1;
- private NETXP.Controls.Bars.ListBarGroup listBarGroup2;
- private NETXP.Controls.Bars.ListBarGroup listBarGroup3;
- private NETXP.Controls.Bars.ListBarGroup listBarGroup4;
- private NETXP.Controls.Bars.ListBarGroup listBarGroup5;
- private NETXP.Controls.Bars.ListBarItem listBarItem1;
- private NETXP.Controls.Bars.ListBarItem listBarItem2;
- private NETXP.Controls.Bars.ListBarItem listBarItem3;
- private NETXP.Controls.Bars.ListBarItem listBarItem4;
- private NETXP.Components.Extenders.StatusMessages statusMessages1;
- private System.ComponentModel.IContainer components;
- private NETXP.Controls.Bars.CommandBarButtonItem commandBarItem69B;
- private NETXP.Controls.Bars.CommandBarDock commandBarDockBottom;
-
- public Form1()
- {
- InitializeComponent();
- }
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- base.Dispose( disposing );
- }
-
- #region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
- this.commandBar1 = new NETXP.Controls.Bars.CommandBar();
- this.commandBarItem1 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem3 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem20 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem37 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarItem38 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem39 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem40 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem41 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem21 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem42 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem43 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem44 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem45 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarItem46 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem47 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem48 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem49 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarItem50 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem51 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem52 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem53 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem54 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem55 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarItem56 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem57 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem9 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem33 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem4 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem5 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem6 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem7 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarItem8 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem58 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarItem59 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem34 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem60 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem68 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem69 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem69B = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem70 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem71 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarItem72 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem61 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem62 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem63 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarItem64 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem73 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem74 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem75 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem65 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarItem66 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem67 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem35 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem76 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem77 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem78 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarItem79 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem2 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem81 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem80 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarItem10 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBar2 = new NETXP.Controls.Bars.CommandBar();
- this.commandBarItem12 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem22 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem13 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem29 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem14 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem15 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarItem16 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem17 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem18 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarLabelItem1 = new NETXP.Controls.Bars.CommandBarLabelItem();
- this.commandBarItem19 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem24 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem25 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem26 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem27 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem28 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarSeparatorItem1 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarComboItem1 = new NETXP.Controls.Bars.CommandBarComboItem();
- this.commandBarItem23 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem11 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem30 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem31 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarItem32 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.contextMenu2 = new NETXP.Controls.Bars.CommandContextMenu();
- this.commandBarManager1 = new NETXP.Controls.Bars.CommandBarManager();
- this.commandBarDockBottom = new NETXP.Controls.Bars.CommandBarDock();
- this.commandBarDockLeft = new NETXP.Controls.Bars.CommandBarDock();
- this.commandBarDockRight = new NETXP.Controls.Bars.CommandBarDock();
- this.commandBarDockTop = new NETXP.Controls.Bars.CommandBarDock();
- this.commandBar3 = new NETXP.Controls.Bars.CommandBar();
- this.commandBarButtonItem1 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarButtonItem2 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarButtonItem3 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarSeparatorItem4 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarButtonItem4 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarButtonItem7 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarButtonItem8 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarButtonItem9 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarSeparatorItem3 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarButtonItem5 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarSeparatorItem2 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarButtonItem6 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarButtonItem10 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBarSeparatorItem5 = new NETXP.Controls.Bars.CommandBarSeparatorItem();
- this.commandBarComboItem2 = new NETXP.Controls.Bars.CommandBarComboItem();
- this.commandBarButtonItem11 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.commandBar4 = new NETXP.Controls.Bars.CommandBar();
- this.commandBarLabelItem2 = new NETXP.Controls.Bars.CommandBarLabelItem();
- this.commandBarComboItem3 = new NETXP.Controls.Bars.CommandBarComboItem();
- this.commandBarButtonItem12 = new NETXP.Controls.Bars.CommandBarButtonItem();
- this.statusBar1 = new NETXP.Controls.Bars.StatusBar();
- this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
- this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
- this.progressPanel1 = new NETXP.Controls.Bars.ProgressPanel();
- this.listBar1 = new NETXP.Controls.Bars.ListBar();
- this.listBarGroup1 = new NETXP.Controls.Bars.ListBarGroup();
- this.listBarItem2 = new NETXP.Controls.Bars.ListBarItem();
- this.listBarItem3 = new NETXP.Controls.Bars.ListBarItem();
- this.listBarItem1 = new NETXP.Controls.Bars.ListBarItem();
- this.listBarItem4 = new NETXP.Controls.Bars.ListBarItem();
- this.listBarGroup2 = new NETXP.Controls.Bars.ListBarGroup();
- this.listBarGroup3 = new NETXP.Controls.Bars.ListBarGroup();
- this.listBarGroup4 = new NETXP.Controls.Bars.ListBarGroup();
- this.listBarGroup5 = new NETXP.Controls.Bars.ListBarGroup();
- this.statusMessages1 = new NETXP.Components.Extenders.StatusMessages(this.components);
- ((System.ComponentModel.ISupportInitialize)(this.commandBar1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.commandBar2)).BeginInit();
- this.commandBarDockTop.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.commandBar3)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.commandBar4)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.progressPanel1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.listBar1)).BeginInit();
- this.SuspendLayout();
- //
- // commandBar1
- //
- this.commandBar1.AllowClose = false;
- this.commandBar1.BackColor = System.Drawing.Color.Transparent;
- this.commandBar1.Cursor = System.Windows.Forms.Cursors.Default;
- this.commandBar1.CustomizeText = "&Customize Toolbar...";
- this.commandBar1.FullRow = true;
- this.commandBar1.ID = 2976;
- this.commandBar1.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem1,
- this.commandBarItem33,
- this.commandBarItem34,
- this.commandBarItem35,
- this.commandBarItem2});
- this.commandBar1.Location = new System.Drawing.Point(0, 0);
- this.commandBar1.Margins.Bottom = 1;
- this.commandBar1.Margins.Left = 1;
- this.commandBar1.Margins.Right = 1;
- this.commandBar1.Margins.Top = 1;
- this.commandBar1.MdiContainer = this;
- this.commandBar1.Name = "commandBar1";
- this.commandBar1.Size = new System.Drawing.Size(752, 24);
- this.commandBar1.Style = NETXP.Controls.Bars.CommandBarStyle.Menu;
- this.commandBar1.TabIndex = 3;
- this.commandBar1.TabStop = false;
- this.commandBar1.Text = "Menu Bar";
- this.commandBar1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.bar_MouseUp);
- //
- // commandBarItem1
- //
- this.commandBarItem1.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem3,
- this.commandBarItem21,
- this.commandBarItem42,
- this.commandBarItem43,
- this.commandBarItem44,
- this.commandBarItem45,
- this.commandBarItem46,
- this.commandBarItem47,
- this.commandBarItem48,
- this.commandBarItem49,
- this.commandBarItem50,
- this.commandBarItem54,
- this.commandBarItem55,
- this.commandBarItem56,
- this.commandBarItem57,
- this.commandBarItem9});
- this.statusMessages1.SetStatusMessage(this.commandBarItem1, "Contains commands for working with the selected items.");
- this.commandBarItem1.Text = "&File";
- //
- // commandBarItem3
- //
- this.commandBarItem3.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem3.Image")));
- this.commandBarItem3.Infrequent = true;
- this.commandBarItem3.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem20,
- this.commandBarItem37,
- this.commandBarItem38,
- this.commandBarItem39,
- this.commandBarItem40,
- this.commandBarItem41});
- this.statusMessages1.SetStatusMessage(this.commandBarItem3, "Opens a new document.");
- this.commandBarItem3.Text = "&New";
- //
- // commandBarItem20
- //
- this.commandBarItem20.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem20.Image")));
- this.commandBarItem20.Shortcut = System.Windows.Forms.Shortcut.CtrlN;
- this.statusMessages1.SetStatusMessage(this.commandBarItem20, "Opens a new window.");
- this.commandBarItem20.Text = "&Window";
- this.commandBarItem20.Click += new System.EventHandler(this.commandBarItem20_Click);
- //
- // commandBarItem38
- //
- this.commandBarItem38.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem38.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem38, "Creates a new mail message.");
- this.commandBarItem38.Text = "&Message";
- this.commandBarItem38.Click += new System.EventHandler(this.commandBarItem38_Click);
- //
- // commandBarItem39
- //
- this.commandBarItem39.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem39.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem39, "Post a new article.");
- this.commandBarItem39.Text = "&Post";
- //
- // commandBarItem40
- //
- this.commandBarItem40.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem40.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem40, "Create a new contact.");
- this.commandBarItem40.Text = "&Contact";
- //
- // commandBarItem41
- //
- this.commandBarItem41.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem41.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem41, "Make a new call.");
- this.commandBarItem41.Text = "&Internet Call";
- //
- // commandBarItem21
- //
- this.commandBarItem21.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem21.Image")));
- this.commandBarItem21.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
- this.statusMessages1.SetStatusMessage(this.commandBarItem21, null);
- this.commandBarItem21.Text = "&Open...";
- //
- // commandBarItem42
- //
- this.commandBarItem42.Enabled = false;
- this.commandBarItem42.Infrequent = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem42, null);
- this.commandBarItem42.Text = "&Edit";
- //
- // commandBarItem43
- //
- this.commandBarItem43.Enabled = false;
- this.commandBarItem43.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem43.Image")));
- this.commandBarItem43.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
- this.statusMessages1.SetStatusMessage(this.commandBarItem43, null);
- this.commandBarItem43.Text = "&Save";
- //
- // commandBarItem44
- //
- this.commandBarItem44.Infrequent = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem44, null);
- this.commandBarItem44.Text = "Save &As...";
- //
- // commandBarItem45
- //
- this.commandBarItem45.Infrequent = true;
- //
- // commandBarItem46
- //
- this.commandBarItem46.Infrequent = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem46, null);
- this.commandBarItem46.Text = "Page Set&up...";
- //
- // commandBarItem47
- //
- this.commandBarItem47.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem47.Image")));
- this.commandBarItem47.Shortcut = System.Windows.Forms.Shortcut.CtrlP;
- this.statusMessages1.SetStatusMessage(this.commandBarItem47, null);
- this.commandBarItem47.Text = "&Print...";
- //
- // commandBarItem48
- //
- this.commandBarItem48.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem48.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem48, null);
- this.commandBarItem48.Text = "Print Pre&view...";
- //
- // commandBarItem50
- //
- this.commandBarItem50.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem50.Image")));
- this.commandBarItem50.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem51,
- this.commandBarItem52,
- this.commandBarItem53});
- this.statusMessages1.SetStatusMessage(this.commandBarItem50, null);
- this.commandBarItem50.Text = "S&end";
- //
- // commandBarItem51
- //
- this.commandBarItem51.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem51.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem51, null);
- this.commandBarItem51.Text = "&Page by E-mail...";
- //
- // commandBarItem52
- //
- this.statusMessages1.SetStatusMessage(this.commandBarItem52, null);
- this.commandBarItem52.Text = "&Link by E-mail...";
- //
- // commandBarItem53
- //
- this.statusMessages1.SetStatusMessage(this.commandBarItem53, null);
- this.commandBarItem53.Text = "&Shortcut to Desktop";
- //
- // commandBarItem54
- //
- this.commandBarItem54.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem54.Image")));
- this.commandBarItem54.Infrequent = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem54, null);
- this.commandBarItem54.Text = "&Import and Export...";
- //
- // commandBarItem56
- //
- this.commandBarItem56.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem56.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem56, null);
- this.commandBarItem56.Text = "P&roperties";
- //
- // commandBarItem57
- //
- this.commandBarItem57.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem57.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem57, null);
- this.commandBarItem57.Text = "&Work Offline";
- //
- // commandBarItem9
- //
- this.commandBarItem9.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem9.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem9, null);
- this.commandBarItem9.Text = "E&xit";
- this.commandBarItem9.Click += new System.EventHandler(this.commandBarItem9_Click);
- //
- // commandBarItem33
- //
- this.commandBarItem33.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem4,
- this.commandBarItem5,
- this.commandBarItem6,
- this.commandBarItem7,
- this.commandBarItem8,
- this.commandBarItem58,
- this.commandBarItem59});
- this.statusMessages1.SetStatusMessage(this.commandBarItem33, null);
- this.commandBarItem33.Text = "&Edit";
- //
- // commandBarItem4
- //
- this.commandBarItem4.Enabled = false;
- this.commandBarItem4.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem4.Image")));
- this.commandBarItem4.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
- this.statusMessages1.SetStatusMessage(this.commandBarItem4, null);
- this.commandBarItem4.Text = "Cu&t";
- //
- // commandBarItem5
- //
- this.commandBarItem5.Enabled = false;
- this.commandBarItem5.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem5.Image")));
- this.commandBarItem5.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
- this.statusMessages1.SetStatusMessage(this.commandBarItem5, null);
- this.commandBarItem5.Text = "&Copy";
- //
- // commandBarItem6
- //
- this.commandBarItem6.Enabled = false;
- this.commandBarItem6.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem6.Image")));
- this.commandBarItem6.Shortcut = System.Windows.Forms.Shortcut.CtrlV;
- this.statusMessages1.SetStatusMessage(this.commandBarItem6, null);
- this.commandBarItem6.Text = "&Paste";
- //
- // commandBarItem8
- //
- this.commandBarItem8.Shortcut = System.Windows.Forms.Shortcut.CtrlA;
- this.statusMessages1.SetStatusMessage(this.commandBarItem8, null);
- this.commandBarItem8.Text = "Select &All";
- //
- // commandBarItem59
- //
- this.commandBarItem59.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem59.Image")));
- this.commandBarItem59.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
- this.statusMessages1.SetStatusMessage(this.commandBarItem59, null);
- this.commandBarItem59.Text = "&Find (on This Page)...";
- //
- // commandBarItem34
- //
- this.commandBarItem34.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem60,
- this.commandBarItem61,
- this.commandBarItem62,
- this.commandBarItem63,
- this.commandBarItem64,
- this.commandBarItem65,
- this.commandBarItem66,
- this.commandBarItem67});
- this.statusMessages1.SetStatusMessage(this.commandBarItem34, null);
- this.commandBarItem34.Text = "&View";
- //
- // commandBarItem60
- //
- this.commandBarItem60.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem68,
- this.commandBarItem69,
- this.commandBarItem69B,
- this.commandBarItem70,
- this.commandBarItem71,
- this.commandBarItem72});
- this.statusMessages1.SetStatusMessage(this.commandBarItem60, null);
- this.commandBarItem60.Text = "&Toolbars";
- //
- // commandBarItem68
- //
- this.commandBarItem68.Checked = true;
- this.commandBarItem68.Enabled = false;
- this.statusMessages1.SetStatusMessage(this.commandBarItem68, null);
- this.commandBarItem68.Text = "&Menu";
- //
- // commandBarItem69
- //
- this.commandBarItem69.Checked = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem69, null);
- this.commandBarItem69.Text = "&Toolbar";
- this.commandBarItem69.Click += new System.EventHandler(this.commandBarItem69_Click);
- //
- // commandBarItem69B
- //
- this.commandBarItem69B.Checked = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem69B, null);
- this.commandBarItem69B.Text = "&Formatting";
- this.commandBarItem69B.Click += new System.EventHandler(this.commandBarItem69B_Click);
- //
- // commandBarItem70
- //
- this.commandBarItem70.Checked = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem70, null);
- this.commandBarItem70.Text = "&Address Bar";
- this.commandBarItem70.Click += new System.EventHandler(this.commandBarItem70_Click);
- //
- // commandBarItem72
- //
- this.statusMessages1.SetStatusMessage(this.commandBarItem72, null);
- this.commandBarItem72.Text = "&Lock the Toolbars";
- this.commandBarItem72.Click += new System.EventHandler(this.commandBarItem72_Click);
- //
- // commandBarItem61
- //
- this.commandBarItem61.Checked = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem61, null);
- this.commandBarItem61.Text = "&Status Bar";
- this.commandBarItem61.Click += new System.EventHandler(this.commandBarItem61_Click);
- //
- // commandBarItem62
- //
- this.commandBarItem62.Checked = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem62, null);
- this.commandBarItem62.Text = "Out&look Bar";
- this.commandBarItem62.Click += new System.EventHandler(this.commandBarItem62_Click);
- //
- // commandBarItem64
- //
- this.commandBarItem64.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem73,
- this.commandBarItem74,
- this.commandBarItem75});
- this.statusMessages1.SetStatusMessage(this.commandBarItem64, null);
- this.commandBarItem64.Text = "Display S&tyle";
- //
- // commandBarItem73
- //
- this.commandBarItem73.Checked = true;
- this.commandBarItem73.CheckType = NETXP.Controls.Bars.ButtonItemCheckType.Radio;
- this.statusMessages1.SetStatusMessage(this.commandBarItem73, null);
- this.commandBarItem73.Text = "Office 200&3";
- this.commandBarItem73.Click += new System.EventHandler(this.commandBarItem73_Click);
- //
- // commandBarItem74
- //
- this.commandBarItem74.CheckType = NETXP.Controls.Bars.ButtonItemCheckType.Radio;
- this.statusMessages1.SetStatusMessage(this.commandBarItem74, null);
- this.commandBarItem74.Text = "Office &XP";
- this.commandBarItem74.Click += new System.EventHandler(this.commandBarItem74_Click);
- //
- // commandBarItem75
- //
- this.commandBarItem75.CheckType = NETXP.Controls.Bars.ButtonItemCheckType.Radio;
- this.statusMessages1.SetStatusMessage(this.commandBarItem75, null);
- this.commandBarItem75.Text = "&Windows Default";
- this.commandBarItem75.Click += new System.EventHandler(this.commandBarItem75_Click);
- //
- // commandBarItem66
- //
- this.statusMessages1.SetStatusMessage(this.commandBarItem66, null);
- this.commandBarItem66.Text = "St&op";
- //
- // commandBarItem67
- //
- this.commandBarItem67.Shortcut = System.Windows.Forms.Shortcut.F5;
- this.statusMessages1.SetStatusMessage(this.commandBarItem67, null);
- this.commandBarItem67.Text = "&Refresh";
- //
- // commandBarItem35
- //
- this.commandBarItem35.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem76,
- this.commandBarItem77,
- this.commandBarItem78,
- this.commandBarItem79});
- this.statusMessages1.SetStatusMessage(this.commandBarItem35, null);
- this.commandBarItem35.Text = "F&avorites";
- //
- // commandBarItem76
- //
- this.commandBarItem76.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem76.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem76, null);
- this.commandBarItem76.Text = "&Add to Favorites...";
- //
- // commandBarItem77
- //
- this.commandBarItem77.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem77.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem77, null);
- this.commandBarItem77.Text = "&Organize Favorites...";
- //
- // commandBarItem79
- //
- this.statusMessages1.SetStatusMessage(this.commandBarItem79, null);
- this.commandBarItem79.Text = "Dacris Software Homepage";
- //
- // commandBarItem2
- //
- this.commandBarItem2.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem81,
- this.commandBarItem80,
- this.commandBarItem10});
- this.statusMessages1.SetStatusMessage(this.commandBarItem2, null);
- this.commandBarItem2.Text = "&Help";
- //
- // commandBarItem81
- //
- this.commandBarItem81.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem81.Image")));
- this.commandBarItem81.Shortcut = System.Windows.Forms.Shortcut.F1;
- this.statusMessages1.SetStatusMessage(this.commandBarItem81, null);
- this.commandBarItem81.Text = "&Contents";
- this.commandBarItem81.Click += new System.EventHandler(this.commandBarItem81_Click);
- //
- // commandBarItem10
- //
- this.commandBarItem10.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem10.Image")));
- this.commandBarItem10.Shortcut = System.Windows.Forms.Shortcut.CtrlF1;
- this.statusMessages1.SetStatusMessage(this.commandBarItem10, null);
- this.commandBarItem10.Text = "&About";
- //
- // commandBar2
- //
- this.commandBar2.BackColor = System.Drawing.Color.Transparent;
- this.commandBar2.Cursor = System.Windows.Forms.Cursors.Default;
- this.commandBar2.CustomizeText = "&Customize Toolbar...";
- this.commandBar2.ID = 2784;
- this.commandBar2.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem12,
- this.commandBarItem13,
- this.commandBarItem14,
- this.commandBarItem15,
- this.commandBarItem16,
- this.commandBarItem17,
- this.commandBarItem18,
- this.commandBarLabelItem1,
- this.commandBarItem19,
- this.commandBarSeparatorItem1,
- this.commandBarComboItem1});
- this.commandBar2.Location = new System.Drawing.Point(0, 24);
- this.commandBar2.Margins.Bottom = 1;
- this.commandBar2.Margins.Left = 1;
- this.commandBar2.Margins.Right = 1;
- this.commandBar2.Margins.Top = 1;
- this.commandBar2.Name = "commandBar2";
- this.commandBar2.RowNumber = 1;
- this.commandBar2.Size = new System.Drawing.Size(439, 25);
- this.commandBar2.TabIndex = 3;
- this.commandBar2.TabStop = false;
- this.commandBar2.Text = "Standard Toolbar";
- this.commandBar2.VisibleChanged += new System.EventHandler(this.commandBar2_VisibleChanged);
- this.commandBar2.MouseUp += new System.Windows.Forms.MouseEventHandler(this.bar_MouseUp);
- //
- // commandBarItem12
- //
- this.commandBarItem12.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarItem12.HotImage")));
- this.commandBarItem12.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem12.Image")));
- this.commandBarItem12.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem22});
- this.commandBarItem12.ShowText = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem12, null);
- this.commandBarItem12.Text = "Back";
- //
- // commandBarItem22
- //
- this.commandBarItem22.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem22.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem22, null);
- this.commandBarItem22.Text = "Desktop";
- //
- // commandBarItem13
- //
- this.commandBarItem13.Enabled = false;
- this.commandBarItem13.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarItem13.HotImage")));
- this.commandBarItem13.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem13.Image")));
- this.commandBarItem13.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem29});
- this.statusMessages1.SetStatusMessage(this.commandBarItem13, null);
- this.commandBarItem13.Text = "Forward";
- //
- // commandBarItem29
- //
- this.commandBarItem29.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarItem29.HotImage")));
- this.commandBarItem29.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem29.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem29, null);
- this.commandBarItem29.Text = "Windows &Update";
- //
- // commandBarItem14
- //
- this.commandBarItem14.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarItem14.HotImage")));
- this.commandBarItem14.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem14.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem14, null);
- this.commandBarItem14.Text = "Up One Level";
- //
- // commandBarItem16
- //
- this.commandBarItem16.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarItem16.HotImage")));
- this.commandBarItem16.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem16.Image")));
- this.commandBarItem16.ShowText = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem16, null);
- this.commandBarItem16.Text = "Search";
- this.commandBarItem16.Click += new System.EventHandler(this.commandBarItem16_Click);
- //
- // commandBarItem17
- //
- this.commandBarItem17.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarItem17.HotImage")));
- this.commandBarItem17.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem17.Image")));
- this.commandBarItem17.ShowText = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem17, null);
- this.commandBarItem17.Text = "Folders";
- this.commandBarItem17.Click += new System.EventHandler(this.commandBarItem17_Click);
- //
- // commandBarLabelItem1
- //
- this.commandBarLabelItem1.Text = "Test";
- //
- // commandBarItem19
- //
- this.commandBarItem19.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarItem19.HotImage")));
- this.commandBarItem19.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem19.Image")));
- this.commandBarItem19.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem24,
- this.commandBarItem25,
- this.commandBarItem26,
- this.commandBarItem27,
- this.commandBarItem28});
- this.statusMessages1.SetStatusMessage(this.commandBarItem19, null);
- this.commandBarItem19.Style = NETXP.Controls.Bars.ButtonItemStyle.DropDown;
- this.commandBarItem19.Text = "Views";
- //
- // commandBarItem24
- //
- this.commandBarItem24.CheckType = NETXP.Controls.Bars.ButtonItemCheckType.Radio;
- this.statusMessages1.SetStatusMessage(this.commandBarItem24, null);
- this.commandBarItem24.Text = "Thumbnails";
- //
- // commandBarItem25
- //
- this.commandBarItem25.CheckType = NETXP.Controls.Bars.ButtonItemCheckType.Radio;
- this.statusMessages1.SetStatusMessage(this.commandBarItem25, null);
- this.commandBarItem25.Text = "Tiles";
- //
- // commandBarItem26
- //
- this.commandBarItem26.Checked = true;
- this.commandBarItem26.CheckType = NETXP.Controls.Bars.ButtonItemCheckType.Radio;
- this.statusMessages1.SetStatusMessage(this.commandBarItem26, null);
- this.commandBarItem26.Text = "Icons";
- //
- // commandBarItem27
- //
- this.commandBarItem27.CheckType = NETXP.Controls.Bars.ButtonItemCheckType.Radio;
- this.statusMessages1.SetStatusMessage(this.commandBarItem27, null);
- this.commandBarItem27.Text = "List";
- //
- // commandBarItem28
- //
- this.commandBarItem28.CheckType = NETXP.Controls.Bars.ButtonItemCheckType.Radio;
- this.statusMessages1.SetStatusMessage(this.commandBarItem28, null);
- this.commandBarItem28.Text = "Details";
- //
- // commandBarComboItem1
- //
- this.commandBarComboItem1.ComboText = "test";
- this.commandBarComboItem1.Items.AddRange(new object[] {
- "def",
- "ghi",
- "aaaaa"});
- this.commandBarComboItem1.Text = "Combo Box";
- this.commandBarComboItem1.Width = 80;
- //
- // commandBarItem23
- //
- this.commandBarItem23.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem23.Image")));
- this.commandBarItem23.ShowText = true;
- this.statusMessages1.SetStatusMessage(this.commandBarItem23, null);
- this.commandBarItem23.Text = "Go";
- //
- // commandBarItem11
- //
- this.statusMessages1.SetStatusMessage(this.commandBarItem11, null);
- this.commandBarItem11.Text = null;
- //
- // commandBarItem30
- //
- this.statusMessages1.SetStatusMessage(this.commandBarItem30, null);
- this.commandBarItem30.Text = null;
- //
- // commandBarItem31
- //
- this.commandBarItem31.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem31.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem31, null);
- this.commandBarItem31.Text = "Dock Form &1";
- //
- // commandBarItem32
- //
- this.commandBarItem32.Image = ((System.Drawing.Image)(resources.GetObject("commandBarItem32.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarItem32, null);
- this.commandBarItem32.Text = "Dock Form &2";
- //
- // contextMenu2
- //
- this.contextMenu2.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarItem31,
- this.commandBarItem32});
- //
- // commandBarManager1
- //
- this.commandBarManager1.BottomDock = this.commandBarDockBottom;
- this.commandBarManager1.Form = this;
- this.commandBarManager1.LeftDock = this.commandBarDockLeft;
- this.commandBarManager1.RightDock = this.commandBarDockRight;
- this.commandBarManager1.TopDock = this.commandBarDockTop;
- //
- // commandBarDockBottom
- //
- this.commandBarDockBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.commandBarDockBottom.Location = new System.Drawing.Point(0, 578);
- this.commandBarDockBottom.Manager = this.commandBarManager1;
- this.commandBarDockBottom.Name = "commandBarDockBottom";
- this.commandBarDockBottom.Size = new System.Drawing.Size(752, 0);
- this.commandBarDockBottom.TabIndex = 3;
- this.commandBarDockBottom.Text = "CommandBarDock";
- //
- // commandBarDockLeft
- //
- this.commandBarDockLeft.Dock = System.Windows.Forms.DockStyle.Left;
- this.commandBarDockLeft.Location = new System.Drawing.Point(0, 74);
- this.commandBarDockLeft.Manager = this.commandBarManager1;
- this.commandBarDockLeft.Name = "commandBarDockLeft";
- this.commandBarDockLeft.Size = new System.Drawing.Size(0, 504);
- this.commandBarDockLeft.TabIndex = 0;
- this.commandBarDockLeft.Text = "CommandBarDock";
- //
- // commandBarDockRight
- //
- this.commandBarDockRight.Dock = System.Windows.Forms.DockStyle.Right;
- this.commandBarDockRight.Location = new System.Drawing.Point(752, 74);
- this.commandBarDockRight.Manager = this.commandBarManager1;
- this.commandBarDockRight.Name = "commandBarDockRight";
- this.commandBarDockRight.Size = new System.Drawing.Size(0, 504);
- this.commandBarDockRight.TabIndex = 1;
- this.commandBarDockRight.Text = "CommandBarDock";
- //
- // commandBarDockTop
- //
- this.commandBarDockTop.Controls.Add(this.commandBar3);
- this.commandBarDockTop.Controls.Add(this.commandBar4);
- this.commandBarDockTop.Controls.Add(this.commandBar2);
- this.commandBarDockTop.Controls.Add(this.commandBar1);
- this.commandBarDockTop.Location = new System.Drawing.Point(0, 0);
- this.commandBarDockTop.Manager = this.commandBarManager1;
- this.commandBarDockTop.Name = "commandBarDockTop";
- this.commandBarDockTop.Size = new System.Drawing.Size(752, 74);
- this.commandBarDockTop.TabIndex = 2;
- this.commandBarDockTop.Text = "CommandBarDock";
- //
- // commandBar3
- //
- this.commandBar3.BackColor = System.Drawing.Color.Transparent;
- this.commandBar3.Cursor = System.Windows.Forms.Cursors.Default;
- this.commandBar3.CustomizeText = "&Customize Toolbar...";
- this.commandBar3.ID = 10279;
- this.commandBar3.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarButtonItem1,
- this.commandBarButtonItem2,
- this.commandBarButtonItem3,
- this.commandBarSeparatorItem4,
- this.commandBarButtonItem4,
- this.commandBarSeparatorItem3,
- this.commandBarButtonItem5,
- this.commandBarSeparatorItem2,
- this.commandBarButtonItem6,
- this.commandBarSeparatorItem5,
- this.commandBarComboItem2,
- this.commandBarButtonItem11});
- this.commandBar3.Location = new System.Drawing.Point(0, 49);
- this.commandBar3.Margins.Bottom = 1;
- this.commandBar3.Margins.Left = 1;
- this.commandBar3.Margins.Right = 1;
- this.commandBar3.Margins.Top = 1;
- this.commandBar3.Name = "commandBar3";
- this.commandBar3.RowNumber = 2;
- this.commandBar3.Size = new System.Drawing.Size(403, 25);
- this.commandBar3.TabIndex = 4;
- this.commandBar3.TabStop = false;
- this.commandBar3.Text = "Formatting Toolbar";
- this.commandBar3.VisibleChanged += new System.EventHandler(this.commandBar3_VisibleChanged);
- this.commandBar3.MouseUp += new System.Windows.Forms.MouseEventHandler(this.bar_MouseUp);
- //
- // commandBarButtonItem1
- //
- this.commandBarButtonItem1.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem1.HotImage")));
- this.commandBarButtonItem1.Image = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem1.Image")));
- this.commandBarButtonItem1.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
- this.statusMessages1.SetStatusMessage(this.commandBarButtonItem1, null);
- this.commandBarButtonItem1.Text = "Cut";
- //
- // commandBarButtonItem2
- //
- this.commandBarButtonItem2.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem2.HotImage")));
- this.commandBarButtonItem2.Image = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem2.Image")));
- this.commandBarButtonItem2.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
- this.statusMessages1.SetStatusMessage(this.commandBarButtonItem2, null);
- this.commandBarButtonItem2.Text = "Copy";
- //
- // commandBarButtonItem3
- //
- this.commandBarButtonItem3.Enabled = false;
- this.commandBarButtonItem3.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem3.HotImage")));
- this.commandBarButtonItem3.Image = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem3.Image")));
- this.commandBarButtonItem3.Shortcut = System.Windows.Forms.Shortcut.CtrlV;
- this.statusMessages1.SetStatusMessage(this.commandBarButtonItem3, null);
- this.commandBarButtonItem3.Text = "Paste";
- //
- // commandBarButtonItem4
- //
- this.commandBarButtonItem4.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem4.HotImage")));
- this.commandBarButtonItem4.Image = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem4.Image")));
- this.commandBarButtonItem4.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarButtonItem7,
- this.commandBarButtonItem8,
- this.commandBarButtonItem9});
- this.commandBarButtonItem4.ShowText = true;
- this.statusMessages1.SetStatusMessage(this.commandBarButtonItem4, null);
- this.commandBarButtonItem4.Style = NETXP.Controls.Bars.ButtonItemStyle.DropDown;
- this.commandBarButtonItem4.Text = "Encoding";
- //
- // commandBarButtonItem7
- //
- this.commandBarButtonItem7.Checked = true;
- this.commandBarButtonItem7.CheckType = NETXP.Controls.Bars.ButtonItemCheckType.Radio;
- this.statusMessages1.SetStatusMessage(this.commandBarButtonItem7, null);
- this.commandBarButtonItem7.Text = "UTF-8";
- //
- // commandBarButtonItem8
- //
- this.commandBarButtonItem8.CheckType = NETXP.Controls.Bars.ButtonItemCheckType.Radio;
- this.statusMessages1.SetStatusMessage(this.commandBarButtonItem8, null);
- this.commandBarButtonItem8.Text = "Unicode";
- //
- // commandBarButtonItem9
- //
- this.commandBarButtonItem9.CheckType = NETXP.Controls.Bars.ButtonItemCheckType.Radio;
- this.statusMessages1.SetStatusMessage(this.commandBarButtonItem9, null);
- this.commandBarButtonItem9.Text = "ANSI";
- //
- // commandBarButtonItem5
- //
- this.commandBarButtonItem5.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem5.HotImage")));
- this.commandBarButtonItem5.Image = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem5.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarButtonItem5, null);
- this.commandBarButtonItem5.Text = "Print Preview";
- //
- // commandBarButtonItem6
- //
- this.commandBarButtonItem6.HotImage = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem6.HotImage")));
- this.commandBarButtonItem6.Image = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem6.Image")));
- this.commandBarButtonItem6.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarButtonItem10});
- this.statusMessages1.SetStatusMessage(this.commandBarButtonItem6, null);
- this.commandBarButtonItem6.Style = NETXP.Controls.Bars.ButtonItemStyle.DropDown;
- this.commandBarButtonItem6.Text = "Related";
- //
- // commandBarButtonItem10
- //
- this.commandBarButtonItem10.Enabled = false;
- this.statusMessages1.SetStatusMessage(this.commandBarButtonItem10, null);
- this.commandBarButtonItem10.Text = "(Empty)";
- //
- // commandBarComboItem2
- //
- this.commandBarComboItem2.ComboText = "";
- this.commandBarComboItem2.Items.AddRange(new object[] {
- "topic1",
- "topic2",
- "topic3"});
- this.commandBarComboItem2.Style = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.commandBarComboItem2.Text = "Help Topics";
- this.commandBarComboItem2.Width = 128;
- //
- // commandBarButtonItem11
- //
- this.commandBarButtonItem11.Image = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem11.Image")));
- this.statusMessages1.SetStatusMessage(this.commandBarButtonItem11, null);
- this.commandBarButtonItem11.Text = "Test";
- //
- // commandBar4
- //
- this.commandBar4.BackColor = System.Drawing.Color.Transparent;
- this.commandBar4.Cursor = System.Windows.Forms.Cursors.Default;
- this.commandBar4.CustomizeText = "&Customize Toolbar...";
- this.commandBar4.ID = 11625;
- this.commandBar4.Items.AddRange(new NETXP.Controls.Bars.CommandBarItem[] {
- this.commandBarLabelItem2,
- this.commandBarComboItem3,
- this.commandBarButtonItem12});
- this.commandBar4.Location = new System.Drawing.Point(403, 49);
- this.commandBar4.Margins.Bottom = 1;
- this.commandBar4.Margins.Left = 1;
- this.commandBar4.Margins.Right = 1;
- this.commandBar4.Margins.Top = 1;
- this.commandBar4.Name = "commandBar4";
- this.commandBar4.Position = 100;
- this.commandBar4.RowNumber = 2;
- this.commandBar4.Size = new System.Drawing.Size(277, 25);
- this.commandBar4.TabIndex = 5;
- this.commandBar4.TabStop = false;
- this.commandBar4.Text = "Address Bar";
- this.commandBar4.VisibleChanged += new System.EventHandler(this.commandBar4_VisibleChanged);
- this.commandBar4.MouseUp += new System.Windows.Forms.MouseEventHandler(this.bar_MouseUp);
- //
- // commandBarLabelItem2
- //
- this.commandBarLabelItem2.Text = "Address:";
- //
- // commandBarComboItem3
- //
- this.commandBarComboItem3.ComboText = "http://www.dacris.com";
- this.commandBarComboItem3.Text = "Enter URL";
- this.commandBarComboItem3.Width = 160;
- //
- // commandBarButtonItem12
- //
- this.commandBarButtonItem12.Image = ((System.Drawing.Image)(resources.GetObject("commandBarButtonItem12.Image")));
- this.commandBarButtonItem12.ShowText = true;
- this.statusMessages1.SetStatusMessage(this.commandBarButtonItem12, null);
- this.commandBarButtonItem12.Text = "Go";
- //
- // statusBar1
- //
- this.statusBar1.Location = new System.Drawing.Point(0, 578);
- this.statusBar1.Name = "statusBar1";
- this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
- this.statusBarPanel1,
- this.statusBarPanel2,
- this.progressPanel1});
- this.statusBar1.ShowPanels = true;
- this.statusBar1.Size = new System.Drawing.Size(752, 20);
- this.statusBar1.TabIndex = 5;
- this.statusBar1.VisibleChanged += new System.EventHandler(this.statusBar1_VisibleChanged);
- //
- // statusBarPanel1
- //
- this.statusBarPanel1.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
- this.statusBarPanel1.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw;
- this.statusBarPanel1.Text = "Ready.";
- this.statusBarPanel1.Width = 534;
- //
- // statusBarPanel2
- //
- this.statusBarPanel2.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
- this.statusBarPanel2.Icon = ((System.Drawing.Icon)(resources.GetObject("statusBarPanel2.Icon")));
- this.statusBarPanel2.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw;
- this.statusBarPanel2.Text = "Internet Zone";
- this.statusBarPanel2.Width = 102;
- //
- // progressPanel1
- //
- this.progressPanel1.Maximum = 100;
- this.progressPanel1.Minimum = 1;
- this.progressPanel1.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw;
- this.progressPanel1.Value = 50;
- //
- // listBar1
- //
- this.listBar1.AllowDrop = true;
- this.listBar1.Cursor = System.Windows.Forms.Cursors.Default;
- this.listBar1.Dock = System.Windows.Forms.DockStyle.Left;
- this.listBar1.Groups.AddRange(new NETXP.Controls.Bars.ListBarGroup[] {
- this.listBarGroup1,
- this.listBarGroup2,
- this.listBarGroup3,
- this.listBarGroup4,
- this.listBarGroup5});
- this.listBar1.Location = new System.Drawing.Point(0, 74);
- this.listBar1.Name = "listBar1";
- this.listBar1.Size = new System.Drawing.Size(176, 504);
- this.listBar1.TabIndex = 7;
- this.listBar1.ToolTip = null;
- this.listBar1.VisibleChanged += new System.EventHandler(this.listBar1_VisibleChanged);
- //
- // listBarGroup1
- //
- this.listBarGroup1.Caption = "Test1";
- this.listBarGroup1.Items.AddRange(new NETXP.Controls.Bars.ListBarItem[] {
- this.listBarItem2,
- this.listBarItem3,
- this.listBarItem1,
- this.listBarItem4});
- this.listBarGroup1.Key = "";
- this.listBarGroup1.ToolTipText = "";
- this.listBarGroup1.View = NETXP.Controls.Bars.ListBarGroupView.TextRight;
- //
- // listBarItem2
- //
- this.listBarItem2.Caption = "3D Bar Chart";
- this.listBarItem2.Image = ((System.Drawing.Image)(resources.GetObject("listBarItem2.Image")));
- this.listBarItem2.Key = "";
- this.listBarItem2.Tag = "";
- this.listBarItem2.ToolTipText = "";
- //
- // listBarItem3
- //
- this.listBarItem3.Caption = "3D Clustered Column Chart";
- this.listBarItem3.Enabled = false;
- this.listBarItem3.Image = ((System.Drawing.Image)(resources.GetObject("listBarItem3.Image")));
- this.listBarItem3.Key = "";
- this.listBarItem3.Tag = "";
- this.listBarItem3.ToolTipText = "";
- //
- // listBarItem1
- //
- this.listBarItem1.Caption = "3D Area Chart";
- this.listBarItem1.Image = ((System.Drawing.Image)(resources.GetObject("listBarItem1.Image")));
- this.listBarItem1.Key = "";
- this.listBarItem1.Tag = "";
- this.listBarItem1.ToolTipText = "";
- //
- // listBarItem4
- //
- this.listBarItem4.Caption = "3D Column Chart";
- this.listBarItem4.Image = ((System.Drawing.Image)(resources.GetObject("listBarItem4.Image")));
- this.listBarItem4.Key = "";
- this.listBarItem4.Tag = "";
- this.listBarItem4.ToolTipText = "";
- //
- // listBarGroup2
- //
- this.listBarGroup2.Caption = "Test2";
- this.listBarGroup2.Key = "";
- this.listBarGroup2.ToolTipText = "";
- this.listBarGroup2.View = NETXP.Controls.Bars.ListBarGroupView.TextUnderneath;
- //
- // listBarGroup3
- //
- this.listBarGroup3.Caption = "Test3";
- this.listBarGroup3.Key = "";
- this.listBarGroup3.ToolTipText = "";
- this.listBarGroup3.View = NETXP.Controls.Bars.ListBarGroupView.NoText;
- //
- // listBarGroup4
- //
- this.listBarGroup4.Caption = "Test4";
- this.listBarGroup4.Key = "";
- this.listBarGroup4.ToolTipText = "";
- this.listBarGroup4.View = NETXP.Controls.Bars.ListBarGroupView.NoText;
- //
- // listBarGroup5
- //
- this.listBarGroup5.Caption = "Test5";
- this.listBarGroup5.Key = "";
- this.listBarGroup5.ToolTipText = "";
- this.listBarGroup5.View = NETXP.Controls.Bars.ListBarGroupView.TextUnderneath;
- //
- // statusMessages1
- //
- this.statusMessages1.StatusBar = this.statusBar1;
- //
- // Form1
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(752, 598);
- this.Controls.Add(this.listBar1);
- this.Controls.Add(this.commandBarDockLeft);
- this.Controls.Add(this.commandBarDockRight);
- this.Controls.Add(this.commandBarDockTop);
- this.Controls.Add(this.commandBarDockBottom);
- this.Controls.Add(this.statusBar1);
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.IsMdiContainer = true;
- this.Name = "Form1";
- this.Text = "Test Application";
- this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
- this.Load += new System.EventHandler(this.Form1_Load);
- ((System.ComponentModel.ISupportInitialize)(this.commandBar1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.commandBar2)).EndInit();
- this.commandBarDockTop.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.commandBar3)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.commandBar4)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.progressPanel1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.listBar1)).EndInit();
- this.ResumeLayout(false);
-
- }
- #endregion
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main()
- {
- Application.Run(new Form1());
- }
-
- private void Form1_Load(object sender, System.EventArgs e)
- {
- //control items can only be added at runtime
- CommandBarControlItem ctlItem = new CommandBarControlItem();
- this.commandBar2.Items.Add(ctlItem);
- ctlItem.Control = new Button();
- ctlItem.Control.Text = "Button Item";
- ctlItem.Width = 70;
- ctlItem.Height = 20;
- (ctlItem.Control as Button).FlatStyle = FlatStyle.System;
-
- foreach(CommandBar bar in this.commandBarManager1.GetCommandBars())
- {
- bar.ShowGripperChanged += new EventHandler(bar_ShowGripperChanged);
- }
-
- Microsoft.Win32.RegistryKey key = null;
- try
- {
- key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Software\\RebarTestApp");
- this.commandBarManager1.LoadLayout(key);
- }
- catch(Exception x)
- {
- System.Diagnostics.Debug.WriteLine(x.ToString());
- }
- finally
- {
- if(key != null)
- {
- key.Close();
- }
- }
- }
-
- private void commandBarItem9_Click(object sender, System.EventArgs e)
- {
- this.Close();
- }
-
-
- private void bar_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
- {
- if(e.Button == MouseButtons.Right)
- {
- CommandContextMenu contextMenu1;
- contextMenu1 = new CommandContextMenu();
- contextMenu1.Items = commandBarItem60.Items;
- contextMenu1.Renderer = commandBarManager1.Renderer;
- contextMenu1.Show(sender as Control, new Point(e.X, e.Y));
- }
- }
-
- private void commandBarItem20_Click(object sender, System.EventArgs e)
- {
- MdiChild child = new MdiChild();
- child.MdiParent = this;
- child.SetManager(this.commandBarManager1);
- child.Show();
- }
-
- private void commandBarItem17_Click(object sender, System.EventArgs e)
- {
- commandBarItem17.Checked = !commandBarItem17.Checked;
- }
-
- private void commandBarItem74_Click(object sender, System.EventArgs e)
- {
- //office xp
- if(!commandBarItem74.Checked)
- {
- this.commandBarManager1.Renderer = new NETXP.Controls.Bars.CommandBarRenderers.OfficeXP();
- this.listBar1.Renderer = new NETXP.Controls.Bars.ListBarRenderers.OfficeXP();
- this.statusBar1.Renderer = new NETXP.Controls.Bars.StatusBarRenderers.OfficeXP();
- commandBarItem73.Checked = false;
- commandBarItem74.Checked = true;
- commandBarItem75.Checked = false;
- Refresh();
- }
- }
-
- private void commandBarItem73_Click(object sender, System.EventArgs e)
- {
- //office 2003
- if(!commandBarItem73.Checked)
- {
- this.commandBarManager1.Renderer = new NETXP.Controls.Bars.CommandBarRenderers.Office2003();
- this.listBar1.Renderer = new NETXP.Controls.Bars.ListBarRenderers.Office2003();
- this.statusBar1.Renderer = new NETXP.Controls.Bars.StatusBarRenderers.Office2003();
- commandBarItem73.Checked = true;
- commandBarItem74.Checked = false;
- commandBarItem75.Checked = false;
- Refresh();
- }
- }
-
- private void commandBarItem75_Click(object sender, System.EventArgs e)
- {
- //windows xp
- if(!commandBarItem75.Checked)
- {
- this.commandBarManager1.Renderer = new NETXP.Controls.Bars.CommandBarRenderers.WindowsDefault();
- this.listBar1.Renderer = new NETXP.Controls.Bars.ListBarRenderers.WindowsDefault();
- this.statusBar1.Renderer = new NETXP.Controls.Bars.StatusBarRenderers.WindowsDefault();
- commandBarItem73.Checked = false;
- commandBarItem74.Checked = false;
- commandBarItem75.Checked = true;
- Refresh();
- }
- }
-
- private void commandBarItem38_Click(object sender, System.EventArgs e)
- {
- commandBarItem1.Items.Add(new CommandBarButtonItem("Test Item"));
- }
-
- private void commandBarItem69_Click(object sender, System.EventArgs e)
- {
- if(this.commandBarItem69.Checked)
- {
- this.commandBar2.HideBar();
- this.commandBarItem69.Checked = false;
- }
- else
- {
- this.commandBar2.ShowBar();
- this.commandBarItem69.Checked = true;
- }
- }
-
- private void commandBarItem70_Click(object sender, System.EventArgs e)
- {
- if(this.commandBarItem70.Checked)
- {
- this.commandBar4.HideBar();
- this.commandBarItem70.Checked = false;
- }
- else
- {
- this.commandBar4.ShowBar();
- this.commandBarItem70.Checked = true;
- }
- }
-
- private void commandBarItem72_Click(object sender, System.EventArgs e)
- {
- if(this.commandBarItem72.Checked == false)
- {
- foreach(CommandBar bar in this.commandBarManager1.GetCommandBars())
- {
- bar.ShowGripper = false;
- }
- this.commandBarItem72.Checked = true;
- }
- else
- {
- foreach(CommandBar bar in this.commandBarManager1.GetCommandBars())
- {
- bar.ShowGripper = true;
- }
- this.commandBarItem72.Checked = false;
- }
- }
-
- private void commandBarItem61_Click(object sender, System.EventArgs e)
- {
- commandBarItem61.Checked = !commandBarItem61.Checked;
- this.statusBar1.Visible = !this.statusBar1.Visible;
- }
-
- private void commandBarItem62_Click(object sender, System.EventArgs e)
- {
- commandBarItem62.Checked = !commandBarItem62.Checked;
- this.listBar1.Visible = !this.listBar1.Visible;
- }
-
- private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
- {
- Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Software\\RebarTestApp");
- this.commandBarManager1.SaveLayout(key);
- key.Close();
- }
-
- private void commandBarItem81_Click(object sender, System.EventArgs e)
- {
- Form frm = new Form();
- frm.Show();
- }
-
- private void commandBarItem16_Click(object sender, System.EventArgs e)
- {
- //run benchmark test
- CommandContextMenu menu;
- int start = System.Environment.TickCount;
- for(int i = 0; i < 100; i++)
- {
- menu = new CommandContextMenu();
- menu.Animate = false;
- menu.Items = (this.commandBar1.Items[0] as CommandBarButtonItem).Items;
- menu.Shown += new EventHandler(menu_Shown);
- menu.Show(this.commandBar1, new Point(0, 0));
- menu.Dispose();
- menu = null;
- }
- int time = System.Environment.TickCount - start;
- MessageBox.Show(time.ToString());
- }
-
- private void menu_Shown(object sender, EventArgs e)
- {
- CommandContextMenu menu = (CommandContextMenu)sender;
- menu.Dismiss();
- }
-
- private void bar_ShowGripperChanged(object sender, EventArgs e)
- {
- this.commandBarItem72.Checked = !(sender as CommandBar).ShowGripper;
- }
-
- private void commandBar4_VisibleChanged(object sender, System.EventArgs e)
- {
- this.commandBarItem70.Checked = (sender as Control).Visible;
- }
-
- private void commandBar2_VisibleChanged(object sender, System.EventArgs e)
- {
- this.commandBarItem69.Checked = (sender as Control).Visible;
- }
-
- private void commandBarItem69B_Click(object sender, System.EventArgs e)
- {
- if(this.commandBarItem69B.Checked)
- {
- this.commandBar3.HideBar();
- this.commandBarItem69B.Checked = false;
- }
- else
- {
- this.commandBar3.ShowBar();
- this.commandBarItem69B.Checked = true;
- }
- }
-
- private void commandBar3_VisibleChanged(object sender, System.EventArgs e)
- {
- this.commandBarItem69B.Checked = (sender as Control).Visible;
- }
-
- private void statusBar1_VisibleChanged(object sender, System.EventArgs e)
- {
- this.commandBarItem61.Checked = this.statusBar1.Visible;
- }
-
- private void listBar1_VisibleChanged(object sender, System.EventArgs e)
- {
- this.commandBarItem62.Checked = this.listBar1.Visible;
- }
- }
- }
-