コード例 #1
0
        public PrintPreviewDialog()
        {
            base.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.previewControl    = new System.Windows.Forms.PrintPreviewControl();
            this.imageList         = new ImageList();
            Bitmap bitmap = new Bitmap(typeof(PrintPreviewDialog), "PrintPreviewStrip.bmp");

            bitmap.MakeTransparent();
            this.imageList.Images.AddStrip(bitmap);
            this.InitForm();
        }
コード例 #2
0
                private void InitializeComponent()
                {
                        this.PrintPreview = new System.Windows.Forms.PrintPreviewControl();
                        this.CancelCommandButton = new Lui.Forms.Button();
                        this.SaveButton = new Lui.Forms.Button();
                        this.LowerPanel = new Lui.Forms.ButtonPanel();
                        this.BotonZoom = new Lui.Forms.Button();
                        this.LowerPanel.SuspendLayout();
                        this.SuspendLayout();
                        // 
                        // PrintPreview
                        // 
                        this.PrintPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
                        this.PrintPreview.AutoZoom = false;
                        this.PrintPreview.Location = new System.Drawing.Point(0, 0);
                        this.PrintPreview.Name = "PrintPreview";
                        this.PrintPreview.Size = new System.Drawing.Size(616, 344);
                        this.PrintPreview.TabIndex = 500;
                        this.PrintPreview.UseAntiAlias = true;
                        this.PrintPreview.Zoom = 1D;
                        this.PrintPreview.KeyDown += new System.Windows.Forms.KeyEventHandler(this.PrintPreview_KeyDown);
                        // 
                        // CancelCommandButton
                        // 
                        this.CancelCommandButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
                        this.CancelCommandButton.DialogResult = System.Windows.Forms.DialogResult.None;
                        this.CancelCommandButton.ForeColor = System.Drawing.SystemColors.ControlText;
                        this.CancelCommandButton.Image = null;
                        this.CancelCommandButton.ImagePos = Lui.Forms.ImagePositions.Top;
                        this.CancelCommandButton.Location = new System.Drawing.Point(328, 0);
                        this.CancelCommandButton.Margin = new System.Windows.Forms.Padding(0);
                        this.CancelCommandButton.MaximumSize = new System.Drawing.Size(108, 40);
                        this.CancelCommandButton.MinimumSize = new System.Drawing.Size(96, 32);
                        this.CancelCommandButton.Name = "CancelCommandButton";
                        this.CancelCommandButton.Padding = new System.Windows.Forms.Padding(2);
                        this.CancelCommandButton.Size = new System.Drawing.Size(96, 40);
                        this.CancelCommandButton.SubLabelPos = Lui.Forms.SubLabelPositions.Bottom;
                        this.CancelCommandButton.Subtext = "Esc";
                        this.CancelCommandButton.TabIndex = 111;
                        this.CancelCommandButton.Text = "Cancelar";
                        this.CancelCommandButton.Click += new System.EventHandler(this.BotonCancelar_Click);
                        // 
                        // SaveButton
                        // 
                        this.SaveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
                        this.SaveButton.DialogResult = System.Windows.Forms.DialogResult.None;
                        this.SaveButton.ForeColor = System.Drawing.SystemColors.ControlText;
                        this.SaveButton.Image = null;
                        this.SaveButton.ImagePos = Lui.Forms.ImagePositions.Top;
                        this.SaveButton.Location = new System.Drawing.Point(424, 0);
                        this.SaveButton.Margin = new System.Windows.Forms.Padding(0);
                        this.SaveButton.MaximumSize = new System.Drawing.Size(108, 40);
                        this.SaveButton.MinimumSize = new System.Drawing.Size(96, 32);
                        this.SaveButton.Name = "SaveButton";
                        this.SaveButton.Padding = new System.Windows.Forms.Padding(2);
                        this.SaveButton.Size = new System.Drawing.Size(96, 40);
                        this.SaveButton.SubLabelPos = Lui.Forms.SubLabelPositions.Bottom;
                        this.SaveButton.Subtext = "F8";
                        this.SaveButton.TabIndex = 110;
                        this.SaveButton.Text = "Imprimir";
                        // 
                        // LowerPanel
                        // 
                        this.LowerPanel.Controls.Add(this.BotonZoom);
                        this.LowerPanel.Controls.Add(this.SaveButton);
                        this.LowerPanel.Controls.Add(this.CancelCommandButton);
                        this.LowerPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
                        this.LowerPanel.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft;
                        this.LowerPanel.Location = new System.Drawing.Point(0, 353);
                        this.LowerPanel.Name = "LowerPanel";
                        this.LowerPanel.Size = new System.Drawing.Size(616, 52);
                        this.LowerPanel.TabIndex = 106;
                        // 
                        // BotonZoom
                        // 
                        this.BotonZoom.DialogResult = System.Windows.Forms.DialogResult.None;
                        this.BotonZoom.ForeColor = System.Drawing.SystemColors.ControlText;
                        this.BotonZoom.Image = null;
                        this.BotonZoom.ImagePos = Lui.Forms.ImagePositions.Top;
                        this.BotonZoom.Location = new System.Drawing.Point(520, 0);
                        this.BotonZoom.Margin = new System.Windows.Forms.Padding(0);
                        this.BotonZoom.MaximumSize = new System.Drawing.Size(108, 40);
                        this.BotonZoom.MinimumSize = new System.Drawing.Size(96, 32);
                        this.BotonZoom.Name = "BotonZoom";
                        this.BotonZoom.Padding = new System.Windows.Forms.Padding(2);
                        this.BotonZoom.Size = new System.Drawing.Size(96, 40);
                        this.BotonZoom.SubLabelPos = Lui.Forms.SubLabelPositions.Bottom;
                        this.BotonZoom.Subtext = "F2";
                        this.BotonZoom.TabIndex = 101;
                        this.BotonZoom.Text = "Zoom";
                        this.BotonZoom.Click += new System.EventHandler(this.BotonZoom_Click);
                        // 
                        // PrintPreviewForm
                        // 
                        this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
                        this.ClientSize = new System.Drawing.Size(616, 405);
                        this.Controls.Add(this.LowerPanel);
                        this.Controls.Add(this.PrintPreview);
                        this.ForeColor = System.Drawing.SystemColors.ControlText;
                        this.Name = "PrintPreviewForm";
                        this.Text = "Vista Previa";
                        this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FormVistaPrevia_KeyDown);
                        this.LowerPanel.ResumeLayout(false);
                        this.ResumeLayout(false);

                }
コード例 #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PrintPreview));
     printPreviewControl      = new System.Windows.Forms.PrintPreviewControl();
     toolStrip                = new System.Windows.Forms.ToolStrip();
     printToolStripButton     = new System.Windows.Forms.ToolStripButton();
     toolStripButtonPageSetup = new System.Windows.Forms.ToolStripButton();
     toolStripSeparator       = new System.Windows.Forms.ToolStripSeparator();
     toolStripButton1Page     = new System.Windows.Forms.ToolStripButton();
     toolStripButton2Pages    = new System.Windows.Forms.ToolStripButton();
     toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton();
     toolStripMenuItemAuto    = new System.Windows.Forms.ToolStripMenuItem();
     toolStripMenuItem2       = new System.Windows.Forms.ToolStripMenuItem();
     toolStripMenuItem3       = new System.Windows.Forms.ToolStripMenuItem();
     toolStripMenuItem4       = new System.Windows.Forms.ToolStripMenuItem();
     toolStripMenuItem5       = new System.Windows.Forms.ToolStripMenuItem();
     toolStripMenuItem6       = new System.Windows.Forms.ToolStripMenuItem();
     toolStripSeparator1      = new System.Windows.Forms.ToolStripSeparator();
     toolStripButtonPrev      = new System.Windows.Forms.ToolStripButton();
     toolStripTextBoxPage     = new System.Windows.Forms.ToolStripTextBox();
     toolStripButtonNext      = new System.Windows.Forms.ToolStripButton();
     toolStrip.SuspendLayout();
     SuspendLayout();
     //
     // printPreviewControl
     //
     printPreviewControl.Dock         = System.Windows.Forms.DockStyle.Fill;
     printPreviewControl.Location     = new System.Drawing.Point(0, 25);
     printPreviewControl.Name         = "printPreviewControl";
     printPreviewControl.Size         = new System.Drawing.Size(557, 246);
     printPreviewControl.TabIndex     = 0;
     printPreviewControl.UseAntiAlias = true;
     //
     // toolStrip
     //
     toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         printToolStripButton,
         toolStripButtonPageSetup,
         toolStripSeparator,
         toolStripButton1Page,
         toolStripButton2Pages,
         toolStripDropDownButton1,
         toolStripSeparator1,
         toolStripButtonPrev,
         toolStripTextBoxPage,
         toolStripButtonNext
     });
     toolStrip.Location = new System.Drawing.Point(0, 0);
     toolStrip.Name     = "toolStrip";
     toolStrip.Size     = new System.Drawing.Size(557, 25);
     toolStrip.TabIndex = 1;
     toolStrip.Text     = "toolStrip1";
     //
     // printToolStripButton
     //
     printToolStripButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     printToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("printToolStripButton.Image")));
     printToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     printToolStripButton.Name   = "printToolStripButton";
     printToolStripButton.Size   = new System.Drawing.Size(23, 22);
     printToolStripButton.Text   = "&Print";
     printToolStripButton.Click += new System.EventHandler(this.printToolStripButton_Click);
     //
     // toolStripButtonPageSetup
     //
     toolStripButtonPageSetup.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     toolStripButtonPageSetup.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButtonPageSetup.Image")));
     toolStripButtonPageSetup.ImageTransparentColor = System.Drawing.Color.Magenta;
     toolStripButtonPageSetup.Name   = "toolStripButtonPageSetup";
     toolStripButtonPageSetup.Size   = new System.Drawing.Size(23, 22);
     toolStripButtonPageSetup.Text   = "Page setup";
     toolStripButtonPageSetup.Click += new System.EventHandler(this.toolStripButtonPageSetup_Click);
     //
     // toolStripSeparator
     //
     toolStripSeparator.Name = "toolStripSeparator";
     toolStripSeparator.Size = new System.Drawing.Size(6, 25);
     //
     // toolStripButton1Page
     //
     toolStripButton1Page.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     toolStripButton1Page.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButton1Page.Image")));
     toolStripButton1Page.ImageTransparentColor = System.Drawing.Color.Magenta;
     toolStripButton1Page.Name   = "toolStripButton1Page";
     toolStripButton1Page.Size   = new System.Drawing.Size(58, 22);
     toolStripButton1Page.Text   = "One page";
     toolStripButton1Page.Click += new System.EventHandler(this.toolStripButton1Page_Click);
     //
     // toolStripButton2Pages
     //
     toolStripButton2Pages.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     toolStripButton2Pages.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButton2Pages.Image")));
     toolStripButton2Pages.ImageTransparentColor = System.Drawing.Color.Magenta;
     toolStripButton2Pages.Name   = "toolStripButton2Pages";
     toolStripButton2Pages.Size   = new System.Drawing.Size(63, 22);
     toolStripButton2Pages.Text   = "Two pages";
     toolStripButton2Pages.Click += new System.EventHandler(this.toolStripButton2Pages_Click);
     //
     // toolStripDropDownButton1
     //
     toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         toolStripMenuItemAuto,
         toolStripMenuItem2,
         toolStripMenuItem3,
         toolStripMenuItem4,
         toolStripMenuItem5,
         toolStripMenuItem6
     });
     toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image")));
     toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
     toolStripDropDownButton1.Name = "toolStripDropDownButton1";
     toolStripDropDownButton1.Size = new System.Drawing.Size(29, 22);
     toolStripDropDownButton1.Text = "Zoom";
     //
     // toolStripMenuItemAuto
     //
     toolStripMenuItemAuto.Name   = "toolStripMenuItemAuto";
     toolStripMenuItemAuto.Size   = new System.Drawing.Size(117, 22);
     toolStripMenuItemAuto.Tag    = "-1";
     toolStripMenuItemAuto.Text   = "Auto";
     toolStripMenuItemAuto.Click += new System.EventHandler(this.toolStripMenuItemZoom_Click);
     //
     // toolStripMenuItem2
     //
     toolStripMenuItem2.Name   = "toolStripMenuItem2";
     toolStripMenuItem2.Size   = new System.Drawing.Size(117, 22);
     toolStripMenuItem2.Tag    = "200";
     toolStripMenuItem2.Text   = "200 %";
     toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItemZoom_Click);
     //
     // toolStripMenuItem3
     //
     toolStripMenuItem3.Name   = "toolStripMenuItem3";
     toolStripMenuItem3.Size   = new System.Drawing.Size(117, 22);
     toolStripMenuItem3.Tag    = "100";
     toolStripMenuItem3.Text   = "100 %";
     toolStripMenuItem3.Click += new System.EventHandler(this.toolStripMenuItemZoom_Click);
     //
     // toolStripMenuItem4
     //
     toolStripMenuItem4.Name   = "toolStripMenuItem4";
     toolStripMenuItem4.Size   = new System.Drawing.Size(117, 22);
     toolStripMenuItem4.Tag    = "75";
     toolStripMenuItem4.Text   = "75 %";
     toolStripMenuItem4.Click += new System.EventHandler(this.toolStripMenuItemZoom_Click);
     //
     // toolStripMenuItem5
     //
     toolStripMenuItem5.Name   = "toolStripMenuItem5";
     toolStripMenuItem5.Size   = new System.Drawing.Size(117, 22);
     toolStripMenuItem5.Tag    = "50";
     toolStripMenuItem5.Text   = "50 %";
     toolStripMenuItem5.Click += new System.EventHandler(this.toolStripMenuItemZoom_Click);
     //
     // toolStripMenuItem6
     //
     toolStripMenuItem6.Name   = "toolStripMenuItem6";
     toolStripMenuItem6.Size   = new System.Drawing.Size(117, 22);
     toolStripMenuItem6.Tag    = "25";
     toolStripMenuItem6.Text   = "25 %";
     toolStripMenuItem6.Click += new System.EventHandler(this.toolStripMenuItemZoom_Click);
     //
     // toolStripSeparator1
     //
     toolStripSeparator1.Name = "toolStripSeparator1";
     toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
     //
     // toolStripButtonPrev
     //
     toolStripButtonPrev.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     toolStripButtonPrev.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButtonPrev.Image")));
     toolStripButtonPrev.ImageTransparentColor = System.Drawing.Color.Magenta;
     toolStripButtonPrev.Name   = "toolStripButtonPrev";
     toolStripButtonPrev.Size   = new System.Drawing.Size(23, 22);
     toolStripButtonPrev.Text   = "Previous page";
     toolStripButtonPrev.Click += new System.EventHandler(this.toolStripButtonPrev_Click);
     //
     // toolStripTextBoxPage
     //
     toolStripTextBoxPage.Name = "toolStripTextBoxPage";
     toolStripTextBoxPage.Size = new System.Drawing.Size(30, 25);
     //
     // toolStripButtonNext
     //
     toolStripButtonNext.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     toolStripButtonNext.Image                 = ((System.Drawing.Image)(resources.GetObject("toolStripButtonNext.Image")));
     toolStripButtonNext.ImageTransparentColor = System.Drawing.Color.Magenta;
     toolStripButtonNext.Name   = "toolStripButtonNext";
     toolStripButtonNext.Size   = new System.Drawing.Size(23, 22);
     toolStripButtonNext.Text   = "Next page";
     toolStripButtonNext.Click += new System.EventHandler(this.toolStripButtonNext_Click);
     //
     // PrintPreview
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     ClientSize          = new System.Drawing.Size(557, 271);
     Controls.Add(this.printPreviewControl);
     Controls.Add(this.toolStrip);
     Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     Name          = "PrintPreview";
     ShowInTaskbar = false;
     Text          = "Preview";
     FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.PrintPreview_FormClosing);
     Load         += new System.EventHandler(this.PrintPreview_Load);
     toolStrip.ResumeLayout(false);
     toolStrip.PerformLayout();
     ResumeLayout(false);
     PerformLayout();
 }
コード例 #4
0
 private void InitializeComponent()
 {
     this.PrintPreview        = new System.Windows.Forms.PrintPreviewControl();
     this.CancelCommandButton = new Lui.Forms.Button();
     this.SaveButton          = new Lui.Forms.Button();
     this.LowerPanel          = new Lui.Forms.ButtonPanel();
     this.BotonZoom           = new Lui.Forms.Button();
     this.LowerPanel.SuspendLayout();
     this.SuspendLayout();
     //
     // PrintPreview
     //
     this.PrintPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.PrintPreview.AutoZoom     = false;
     this.PrintPreview.Location     = new System.Drawing.Point(0, 0);
     this.PrintPreview.Name         = "PrintPreview";
     this.PrintPreview.Size         = new System.Drawing.Size(616, 344);
     this.PrintPreview.TabIndex     = 500;
     this.PrintPreview.UseAntiAlias = true;
     this.PrintPreview.Zoom         = 1D;
     this.PrintPreview.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.PrintPreview_KeyDown);
     //
     // CancelCommandButton
     //
     this.CancelCommandButton.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.CancelCommandButton.DialogResult = System.Windows.Forms.DialogResult.None;
     this.CancelCommandButton.ForeColor    = System.Drawing.SystemColors.ControlText;
     this.CancelCommandButton.Image        = null;
     this.CancelCommandButton.ImagePos     = Lui.Forms.ImagePositions.Top;
     this.CancelCommandButton.Location     = new System.Drawing.Point(328, 0);
     this.CancelCommandButton.Margin       = new System.Windows.Forms.Padding(0);
     this.CancelCommandButton.MaximumSize  = new System.Drawing.Size(108, 40);
     this.CancelCommandButton.MinimumSize  = new System.Drawing.Size(96, 32);
     this.CancelCommandButton.Name         = "CancelCommandButton";
     this.CancelCommandButton.Padding      = new System.Windows.Forms.Padding(2);
     this.CancelCommandButton.Size         = new System.Drawing.Size(96, 40);
     this.CancelCommandButton.SubLabelPos  = Lui.Forms.SubLabelPositions.Bottom;
     this.CancelCommandButton.Subtext      = "Esc";
     this.CancelCommandButton.TabIndex     = 111;
     this.CancelCommandButton.Text         = "Cancelar";
     this.CancelCommandButton.Click       += new System.EventHandler(this.BotonCancelar_Click);
     //
     // SaveButton
     //
     this.SaveButton.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.SaveButton.DialogResult = System.Windows.Forms.DialogResult.None;
     this.SaveButton.ForeColor    = System.Drawing.SystemColors.ControlText;
     this.SaveButton.Image        = null;
     this.SaveButton.ImagePos     = Lui.Forms.ImagePositions.Top;
     this.SaveButton.Location     = new System.Drawing.Point(424, 0);
     this.SaveButton.Margin       = new System.Windows.Forms.Padding(0);
     this.SaveButton.MaximumSize  = new System.Drawing.Size(108, 40);
     this.SaveButton.MinimumSize  = new System.Drawing.Size(96, 32);
     this.SaveButton.Name         = "SaveButton";
     this.SaveButton.Padding      = new System.Windows.Forms.Padding(2);
     this.SaveButton.Size         = new System.Drawing.Size(96, 40);
     this.SaveButton.SubLabelPos  = Lui.Forms.SubLabelPositions.Bottom;
     this.SaveButton.Subtext      = "F8";
     this.SaveButton.TabIndex     = 110;
     this.SaveButton.Text         = "Imprimir";
     //
     // LowerPanel
     //
     this.LowerPanel.Controls.Add(this.BotonZoom);
     this.LowerPanel.Controls.Add(this.SaveButton);
     this.LowerPanel.Controls.Add(this.CancelCommandButton);
     this.LowerPanel.Dock          = System.Windows.Forms.DockStyle.Bottom;
     this.LowerPanel.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft;
     this.LowerPanel.Location      = new System.Drawing.Point(0, 353);
     this.LowerPanel.Name          = "LowerPanel";
     this.LowerPanel.Size          = new System.Drawing.Size(616, 52);
     this.LowerPanel.TabIndex      = 106;
     //
     // BotonZoom
     //
     this.BotonZoom.DialogResult = System.Windows.Forms.DialogResult.None;
     this.BotonZoom.ForeColor    = System.Drawing.SystemColors.ControlText;
     this.BotonZoom.Image        = null;
     this.BotonZoom.ImagePos     = Lui.Forms.ImagePositions.Top;
     this.BotonZoom.Location     = new System.Drawing.Point(520, 0);
     this.BotonZoom.Margin       = new System.Windows.Forms.Padding(0);
     this.BotonZoom.MaximumSize  = new System.Drawing.Size(108, 40);
     this.BotonZoom.MinimumSize  = new System.Drawing.Size(96, 32);
     this.BotonZoom.Name         = "BotonZoom";
     this.BotonZoom.Padding      = new System.Windows.Forms.Padding(2);
     this.BotonZoom.Size         = new System.Drawing.Size(96, 40);
     this.BotonZoom.SubLabelPos  = Lui.Forms.SubLabelPositions.Bottom;
     this.BotonZoom.Subtext      = "F2";
     this.BotonZoom.TabIndex     = 101;
     this.BotonZoom.Text         = "Zoom";
     this.BotonZoom.Click       += new System.EventHandler(this.BotonZoom_Click);
     //
     // PrintPreviewForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
     this.ClientSize          = new System.Drawing.Size(616, 405);
     this.Controls.Add(this.LowerPanel);
     this.Controls.Add(this.PrintPreview);
     this.ForeColor = System.Drawing.SystemColors.ControlText;
     this.Name      = "PrintPreviewForm";
     this.Text      = "Vista Previa";
     this.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.FormVistaPrevia_KeyDown);
     this.LowerPanel.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 public PrintPreviewDialog()
 {
     base.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.previewControl = new System.Windows.Forms.PrintPreviewControl();
     this.imageList = new ImageList();
     Bitmap bitmap = new Bitmap(typeof(PrintPreviewDialog), "PrintPreviewStrip.bmp");
     bitmap.MakeTransparent();
     this.imageList.Images.AddStrip(bitmap);
     this.InitForm();
 }
コード例 #6
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPrinter));
     this.printDocument1 = new System.Drawing.Printing.PrintDocument();
     this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl();
     this.pageSetupDialog1 = new System.Windows.Forms.PageSetupDialog();
     this.barManager1 = new DevExpress.XtraBars.BarManager(this.components);
     this.bar2 = new DevExpress.XtraBars.Bar();
     this.barButtonItem1 = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItem2 = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItem3 = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItem4 = new DevExpress.XtraBars.BarButtonItem();
     this.barEditItem1 = new DevExpress.XtraBars.BarEditItem();
     this.repositoryItemCheckEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
     this.barEditItem2 = new DevExpress.XtraBars.BarEditItem();
     this.repositoryItemCheckEdit2 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
     this.barEditItem3 = new DevExpress.XtraBars.BarEditItem();
     this.repositoryItemCheckEdit3 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
     this.bar3 = new DevExpress.XtraBars.Bar();
     this.barDockControlTop = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlRight = new DevExpress.XtraBars.BarDockControl();
     this.imageList3 = new System.Windows.Forms.ImageList(this.components);
     this.repositoryItemTextEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit();
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit1)).BeginInit();
     this.SuspendLayout();
     //
     // printDocument1
     //
     this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage);
     //
     // printPreviewControl1
     //
     this.printPreviewControl1.AutoZoom = false;
     this.printPreviewControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.printPreviewControl1.Document = this.printDocument1;
     this.printPreviewControl1.Location = new System.Drawing.Point(0, 34);
     this.printPreviewControl1.Name = "printPreviewControl1";
     this.printPreviewControl1.Size = new System.Drawing.Size(644, 351);
     this.printPreviewControl1.TabIndex = 0;
     this.printPreviewControl1.Zoom = 0.5;
     this.printPreviewControl1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.printPreviewControl1_MouseClick);
     //
     // pageSetupDialog1
     //
     this.pageSetupDialog1.Document = this.printDocument1;
     this.pageSetupDialog1.EnableMetric = true;
     //
     // barManager1
     //
     this.barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] {
     this.bar2,
     this.bar3});
     this.barManager1.DockControls.Add(this.barDockControlTop);
     this.barManager1.DockControls.Add(this.barDockControlBottom);
     this.barManager1.DockControls.Add(this.barDockControlLeft);
     this.barManager1.DockControls.Add(this.barDockControlRight);
     this.barManager1.Form = this;
     this.barManager1.Images = this.imageList3;
     this.barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
     this.barButtonItem1,
     this.barButtonItem2,
     this.barButtonItem3,
     this.barButtonItem4,
     this.barEditItem1,
     this.barEditItem2,
     this.barEditItem3});
     this.barManager1.MaxItemId = 9;
     this.barManager1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
     this.repositoryItemTextEdit1,
     this.repositoryItemCheckEdit1,
     this.repositoryItemCheckEdit2,
     this.repositoryItemCheckEdit3});
     this.barManager1.StatusBar = this.bar3;
     //
     // bar2
     //
     this.bar2.BarName = "Main menu";
     this.bar2.DockCol = 0;
     this.bar2.DockRow = 0;
     this.bar2.DockStyle = DevExpress.XtraBars.BarDockStyle.Top;
     this.bar2.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
     new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.barButtonItem1, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
     new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.barButtonItem2, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
     new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.barButtonItem3, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
     new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.barButtonItem4, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
     new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.barEditItem1, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
     new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.barEditItem2, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph),
     new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.PaintStyle, this.barEditItem3, DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph)});
     this.bar2.OptionsBar.AllowQuickCustomization = false;
     this.bar2.OptionsBar.DrawDragBorder = false;
     this.bar2.OptionsBar.UseWholeRow = true;
     this.bar2.Text = "Main menu";
     //
     // barButtonItem1
     //
     this.barButtonItem1.Caption = "设置";
     this.barButtonItem1.Id = 0;
     this.barButtonItem1.ImageIndex = 19;
     this.barButtonItem1.Name = "barButtonItem1";
     this.barButtonItem1.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem1_ItemClick);
     //
     // barButtonItem2
     //
     this.barButtonItem2.Caption = "刷新";
     this.barButtonItem2.Id = 1;
     this.barButtonItem2.ImageIndex = 5;
     this.barButtonItem2.Name = "barButtonItem2";
     this.barButtonItem2.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem2_ItemClick);
     //
     // barButtonItem3
     //
     this.barButtonItem3.Caption = "打印";
     this.barButtonItem3.Id = 2;
     this.barButtonItem3.ImageIndex = 4;
     this.barButtonItem3.Name = "barButtonItem3";
     this.barButtonItem3.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem3_ItemClick);
     //
     // barButtonItem4
     //
     this.barButtonItem4.Caption = "关闭";
     this.barButtonItem4.Id = 3;
     this.barButtonItem4.ImageIndex = 6;
     this.barButtonItem4.Name = "barButtonItem4";
     this.barButtonItem4.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem4_ItemClick);
     //
     // barEditItem1
     //
     this.barEditItem1.Caption = "地图显示";
     this.barEditItem1.Edit = this.repositoryItemCheckEdit1;
     this.barEditItem1.EditValue = true;
     this.barEditItem1.Id = 6;
     this.barEditItem1.Name = "barEditItem1";
     this.barEditItem1.Width = 30;
     //
     // repositoryItemCheckEdit1
     //
     this.repositoryItemCheckEdit1.AutoHeight = false;
     this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1";
     this.repositoryItemCheckEdit1.CheckedChanged += new System.EventHandler(this.repositoryItemCheckEdit1_CheckedChanged);
     //
     // barEditItem2
     //
     this.barEditItem2.Caption = "居中显示";
     this.barEditItem2.Edit = this.repositoryItemCheckEdit2;
     this.barEditItem2.EditValue = true;
     this.barEditItem2.Id = 7;
     this.barEditItem2.Name = "barEditItem2";
     this.barEditItem2.Width = 30;
     //
     // repositoryItemCheckEdit2
     //
     this.repositoryItemCheckEdit2.AutoHeight = false;
     this.repositoryItemCheckEdit2.Name = "repositoryItemCheckEdit2";
     this.repositoryItemCheckEdit2.CheckedChanged += new System.EventHandler(this.repositoryItemCheckEdit2_CheckedChanged);
     //
     // barEditItem3
     //
     this.barEditItem3.Caption = "区域显示";
     this.barEditItem3.Edit = this.repositoryItemCheckEdit3;
     this.barEditItem3.EditValue = true;
     this.barEditItem3.Id = 8;
     this.barEditItem3.Name = "barEditItem3";
     //
     // repositoryItemCheckEdit3
     //
     this.repositoryItemCheckEdit3.AutoHeight = false;
     this.repositoryItemCheckEdit3.Name = "repositoryItemCheckEdit3";
     this.repositoryItemCheckEdit3.CheckedChanged += new System.EventHandler(this.repositoryItemCheckEdit3_CheckedChanged);
     //
     // bar3
     //
     this.bar3.BarName = "Status bar";
     this.bar3.CanDockStyle = DevExpress.XtraBars.BarCanDockStyle.Bottom;
     this.bar3.DockCol = 0;
     this.bar3.DockRow = 0;
     this.bar3.DockStyle = DevExpress.XtraBars.BarDockStyle.Bottom;
     this.bar3.OptionsBar.AllowQuickCustomization = false;
     this.bar3.OptionsBar.DrawDragBorder = false;
     this.bar3.OptionsBar.UseWholeRow = true;
     this.bar3.Text = "Status bar";
     //
     // barDockControlTop
     //
     this.barDockControlTop.Dock = System.Windows.Forms.DockStyle.Top;
     this.barDockControlTop.Location = new System.Drawing.Point(0, 0);
     this.barDockControlTop.Size = new System.Drawing.Size(644, 34);
     //
     // barDockControlBottom
     //
     this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.barDockControlBottom.Location = new System.Drawing.Point(0, 385);
     this.barDockControlBottom.Size = new System.Drawing.Size(644, 22);
     //
     // barDockControlLeft
     //
     this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left;
     this.barDockControlLeft.Location = new System.Drawing.Point(0, 34);
     this.barDockControlLeft.Size = new System.Drawing.Size(0, 351);
     //
     // barDockControlRight
     //
     this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right;
     this.barDockControlRight.Location = new System.Drawing.Point(644, 34);
     this.barDockControlRight.Size = new System.Drawing.Size(0, 351);
     //
     // imageList3
     //
     this.imageList3.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList3.ImageStream")));
     this.imageList3.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList3.Images.SetKeyName(0, "保存.ico");
     this.imageList3.Images.SetKeyName(1, "布局.ico");
     this.imageList3.Images.SetKeyName(2, "查询.ico");
     this.imageList3.Images.SetKeyName(3, "打回重新编.ico");
     this.imageList3.Images.SetKeyName(4, "打印.ico");
     this.imageList3.Images.SetKeyName(5, "发送.ico");
     this.imageList3.Images.SetKeyName(6, "关闭1.ico");
     this.imageList3.Images.SetKeyName(7, "关闭.ico");
     this.imageList3.Images.SetKeyName(8, "角色.ico");
     this.imageList3.Images.SetKeyName(9, "三等功发1.ico");
     this.imageList3.Images.SetKeyName(10, "删除.ico");
     this.imageList3.Images.SetKeyName(11, "审核.ico");
     this.imageList3.Images.SetKeyName(12, "审批.ico");
     this.imageList3.Images.SetKeyName(13, "授权.ico");
     this.imageList3.Images.SetKeyName(14, "刷新.ico");
     this.imageList3.Images.SetKeyName(15, "添加同级.ico");
     this.imageList3.Images.SetKeyName(16, "添加下级.ico");
     this.imageList3.Images.SetKeyName(17, "新建.ico");
     this.imageList3.Images.SetKeyName(18, "修改.ico");
     this.imageList3.Images.SetKeyName(19, "作废.ico");
     this.imageList3.Images.SetKeyName(20, "06 Picture.ico");
     this.imageList3.Images.SetKeyName(21, "Users.ico");
     //
     // repositoryItemTextEdit1
     //
     this.repositoryItemTextEdit1.AutoHeight = false;
     this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1";
     //
     // frmPrinter
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(644, 407);
     this.Controls.Add(this.printPreviewControl1);
     this.Controls.Add(this.barDockControlLeft);
     this.Controls.Add(this.barDockControlRight);
     this.Controls.Add(this.barDockControlBottom);
     this.Controls.Add(this.barDockControlTop);
     this.Name = "frmPrinter";
     this.Text = "打印预览";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit1)).EndInit();
     this.ResumeLayout(false);
 }