Example #1
0
 private void InitializeComponent()
 {
     this.leftScrollButton  = new ArrowButton();
     this.rightScrollButton = new ArrowButton();
     SuspendLayout();
     //
     // leftScrollButton
     //
     this.leftScrollButton.Name              = "leftScrollButton";
     this.leftScrollButton.ArrowDirection    = ArrowDirection.Left;
     this.leftScrollButton.ArrowOutlineWidth = 1.0f;
     this.leftScrollButton.Click            += new EventHandler(LeftScrollButton_Click);
     this.leftScrollButton.DrawWithGradient  = true;
     //
     // rightScrollButton
     //
     this.rightScrollButton.Name              = "rightScrollButton";
     this.rightScrollButton.ArrowDirection    = ArrowDirection.Right;
     this.rightScrollButton.ArrowOutlineWidth = 1.0f;
     this.rightScrollButton.Click            += new EventHandler(RightScrollButton_Click);
     this.rightScrollButton.DrawWithGradient  = true;
     //
     // ImageStrip
     //
     this.Name    = "ImageStrip";
     this.TabStop = false;
     this.Controls.Add(this.leftScrollButton);
     this.Controls.Add(this.rightScrollButton);
     ResumeLayout();
     PerformLayout();
 }
Example #2
0
 private void InitializeComponent()
 {
     this.leftScrollButton = new ArrowButton();
     this.rightScrollButton = new ArrowButton();
     SuspendLayout();
     //
     // leftScrollButton
     //
     this.leftScrollButton.Name = "leftScrollButton";
     this.leftScrollButton.ArrowDirection = ArrowDirection.Left;
     this.leftScrollButton.ArrowOutlineWidth = 1.0f;
     this.leftScrollButton.Click += new EventHandler(LeftScrollButton_Click);
     this.leftScrollButton.DrawWithGradient = true;
     //
     // rightScrollButton
     //
     this.rightScrollButton.Name = "rightScrollButton";
     this.rightScrollButton.ArrowDirection = ArrowDirection.Right;
     this.rightScrollButton.ArrowOutlineWidth = 1.0f;
     this.rightScrollButton.Click += new EventHandler(RightScrollButton_Click);
     this.rightScrollButton.DrawWithGradient = true;
     //
     // ImageStrip
     //
     this.Name = "ImageStrip";
     this.TabStop = false;
     this.Controls.Add(this.leftScrollButton);
     this.Controls.Add(this.rightScrollButton);
     ResumeLayout();
     PerformLayout();
 }
Example #3
0
 private void InitializeComponent()
 {
     this.SuspendLayout();
     this.mainMenu = new PdnMainMenu();
     this.toolStripPanel = new ToolStripPanel();
     this.commonActionsStrip = new CommonActionsStrip();
     this.viewConfigStrip = new ViewConfigStrip();
     this.toolChooserStrip = new ToolChooserStrip();
     this.toolConfigStrip = new ToolConfigStrip();
     this.documentStrip = new OurDocumentStrip();
     this.documentListButton = new ArrowButton();
     this.imageListMenu = new ImageListMenu();
     this.toolStripPanel.BeginInit();
     this.toolStripPanel.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.Name = "mainMenu";
     //
     // toolStripContainer
     //
     this.toolStripPanel.AutoSize = true;
     this.toolStripPanel.Name = "toolStripPanel";
     this.toolStripPanel.TabIndex = 0;
     this.toolStripPanel.TabStop = false;
     this.toolStripPanel.Join(this.viewConfigStrip);
     this.toolStripPanel.Join(this.commonActionsStrip);
     this.toolStripPanel.Join(this.toolConfigStrip);
     this.toolStripPanel.Join(this.toolChooserStrip);
     //
     // commonActionsStrip
     //
     this.commonActionsStrip.Name = "commonActionsStrip";
     this.commonActionsStrip.AutoSize = false;
     this.commonActionsStrip.TabIndex = 0;
     this.commonActionsStrip.Dock = DockStyle.None;
     this.commonActionsStrip.GripStyle = toolStripsGripStyle;
     //
     // viewConfigStrip
     //
     this.viewConfigStrip.Name = "viewConfigStrip";
     this.viewConfigStrip.AutoSize = false;
     this.viewConfigStrip.ZoomBasis = PaintDotNet.ZoomBasis.FitToWindow;
     this.viewConfigStrip.TabStop = false;
     this.viewConfigStrip.DrawGrid = false;
     this.viewConfigStrip.TabIndex = 1;
     this.viewConfigStrip.Dock = DockStyle.None;
     this.viewConfigStrip.GripStyle = toolStripsGripStyle;
     //
     // toolChooserStrip
     //
     this.toolChooserStrip.Name = "toolChooserStrip";
     this.toolChooserStrip.AutoSize = false;
     this.toolChooserStrip.TabIndex = 2;
     this.toolChooserStrip.Dock = DockStyle.None;
     this.toolChooserStrip.GripStyle = toolStripsGripStyle;
     this.toolChooserStrip.ChooseDefaultsClicked += new EventHandler(ToolChooserStrip_ChooseDefaultsClicked);
     //
     // toolConfigStrip
     //
     this.toolConfigStrip.Name = "drawConfigStrip";
     this.toolConfigStrip.AutoSize = false;
     this.toolConfigStrip.ShapeDrawType = PaintDotNet.ShapeDrawType.Outline;
     this.toolConfigStrip.TabIndex = 3;
     this.toolConfigStrip.Dock = DockStyle.None;
     this.toolConfigStrip.GripStyle = toolStripsGripStyle;
     this.toolConfigStrip.Layout +=
         delegate(object sender, LayoutEventArgs e)
         {
             PerformLayout();
         };
     //
     // documentStrip
     //
     this.documentStrip.AutoSize = false;
     this.documentStrip.Name = "documentStrip";
     this.documentStrip.TabIndex = 5;
     this.documentStrip.ShowScrollButtons = true;
     this.documentStrip.DocumentListChanged += new EventHandler(DocumentStrip_DocumentListChanged);
     this.documentStrip.DocumentClicked += new EventHandler<Pair<DocumentWorkspace, DocumentClickAction>>(DocumentStrip_DocumentClicked);
     this.documentStrip.ManagedFocus = true;
     //
     // documentListButton
     //
     this.documentListButton.Name = "documentListButton";
     this.documentListButton.ArrowDirection = ArrowDirection.Down;
     this.documentListButton.ReverseArrowColors = true;
     this.documentListButton.Click += new EventHandler(DocumentListButton_Click);
     //
     // imageListMenu
     //
     this.imageListMenu.Name = "imageListMenu";
     this.imageListMenu.Closed += new EventHandler(ImageListMenu_Closed);
     this.imageListMenu.ItemClicked += new EventHandler<ImageListMenu.Item>(ImageListMenu_ItemClicked);
     //
     // PdnToolBar
     //
     this.Controls.Add(this.documentListButton);
     this.Controls.Add(this.documentStrip);
     this.Controls.Add(this.toolStripPanel);
     this.Controls.Add(this.mainMenu);
     this.Controls.Add(this.imageListMenu);
     this.toolStripPanel.ResumeLayout(false);
     this.toolStripPanel.EndInit();
     this.ResumeLayout(false);
 }
Example #4
0
 private void InitializeComponent()
 {
     this.SuspendLayout();
     this.MainMenu           = new PdnMainMenu();
     this.ToolStripContainer = new ToolStripPanel();
     this.CommonActionsStrip = new CommonActionsStrip();
     this.ViewConfigStrip    = new ViewConfigStrip();
     this.ToolChooserStrip   = new ToolChooserStrip();
     this.ToolConfigStrip    = new ToolConfigStrip();
     this.documentStrip      = new OurDocumentStrip();
     this.documentListButton = new ArrowButton();
     this.imageListMenu      = new ImageListMenu();
     this.ToolStripContainer.BeginInit();
     this.ToolStripContainer.SuspendLayout();
     //
     // mainMenu
     //
     this.MainMenu.Name = "mainMenu";
     //
     // toolStripContainer
     //
     this.ToolStripContainer.AutoSize = true;
     this.ToolStripContainer.Name     = "toolStripPanel";
     this.ToolStripContainer.TabIndex = 0;
     this.ToolStripContainer.TabStop  = false;
     this.ToolStripContainer.Join(this.ViewConfigStrip);
     this.ToolStripContainer.Join(this.CommonActionsStrip);
     this.ToolStripContainer.Join(this.ToolConfigStrip);
     this.ToolStripContainer.Join(this.ToolChooserStrip);
     //
     // commonActionsStrip
     //
     this.CommonActionsStrip.Name      = "commonActionsStrip";
     this.CommonActionsStrip.AutoSize  = false;
     this.CommonActionsStrip.TabIndex  = 0;
     this.CommonActionsStrip.Dock      = DockStyle.None;
     this.CommonActionsStrip.GripStyle = toolStripsGripStyle;
     //
     // viewConfigStrip
     //
     this.ViewConfigStrip.Name      = "viewConfigStrip";
     this.ViewConfigStrip.AutoSize  = false;
     this.ViewConfigStrip.ZoomBasis = PaintDotNet.ZoomBasis.FitToWindow;
     this.ViewConfigStrip.TabStop   = false;
     this.ViewConfigStrip.DrawGrid  = false;
     this.ViewConfigStrip.TabIndex  = 1;
     this.ViewConfigStrip.Dock      = DockStyle.None;
     this.ViewConfigStrip.GripStyle = toolStripsGripStyle;
     //
     // toolChooserStrip
     //
     this.ToolChooserStrip.Name                   = "toolChooserStrip";
     this.ToolChooserStrip.AutoSize               = false;
     this.ToolChooserStrip.TabIndex               = 2;
     this.ToolChooserStrip.Dock                   = DockStyle.None;
     this.ToolChooserStrip.GripStyle              = toolStripsGripStyle;
     this.ToolChooserStrip.ChooseDefaultsClicked += new EventHandler(ToolChooserStrip_ChooseDefaultsClicked);
     //
     // toolConfigStrip
     //
     this.ToolConfigStrip.Name          = "drawConfigStrip";
     this.ToolConfigStrip.AutoSize      = false;
     this.ToolConfigStrip.ShapeDrawType = PaintDotNet.ShapeDrawType.Outline;
     this.ToolConfigStrip.TabIndex      = 3;
     this.ToolConfigStrip.Dock          = DockStyle.None;
     this.ToolConfigStrip.GripStyle     = toolStripsGripStyle;
     this.ToolConfigStrip.Layout       +=
         delegate(object sender, LayoutEventArgs e)
     {
         PerformLayout();
     };
     this.ToolConfigStrip.SelectionDrawModeInfoChanged +=
         delegate(object sender, EventArgs e)
     {
         BeginInvoke(new Procedure(PerformLayout));
     };
     //
     // documentStrip
     //
     this.documentStrip.AutoSize             = false;
     this.documentStrip.Name                 = "documentStrip";
     this.documentStrip.TabIndex             = 5;
     this.documentStrip.ShowScrollButtons    = true;
     this.documentStrip.DocumentListChanged += new EventHandler(DocumentStrip_DocumentListChanged);
     this.documentStrip.DocumentClicked     += DocumentStrip_DocumentClicked;
     this.documentStrip.ManagedFocus         = true;
     //
     // documentListButton
     //
     this.documentListButton.Name               = "documentListButton";
     this.documentListButton.ArrowDirection     = ArrowDirection.Down;
     this.documentListButton.ReverseArrowColors = true;
     this.documentListButton.Click             += new EventHandler(DocumentListButton_Click);
     //
     // imageListMenu
     //
     this.imageListMenu.Name         = "imageListMenu";
     this.imageListMenu.Closed      += new EventHandler(ImageListMenu_Closed);
     this.imageListMenu.ItemClicked += ImageListMenu_ItemClicked;
     //
     // PdnToolBar
     //
     this.Controls.Add(this.documentListButton);
     this.Controls.Add(this.documentStrip);
     this.Controls.Add(this.ToolStripContainer);
     this.Controls.Add(this.MainMenu);
     this.Controls.Add(this.imageListMenu);
     this.ToolStripContainer.ResumeLayout(false);
     this.ToolStripContainer.EndInit();
     this.ResumeLayout(false);
 }