コード例 #1
0
ファイル: PluginUI.cs プロジェクト: kisabon/flashdevelopjp
        /// <summary>
        /// Accessor to the RichTextBox
        /// </summary>
        ///

        #region Windows Forms Designer Generated Code

        /// <summary>
        /// This method is required for Windows Forms designer support.
        /// Do not change the method contents inside the source code editor. The Forms designer might
        /// not be able to load this method if it was changed manually.
        /// </summary>
        private void InitializeComponent()
        {
            this.toolStrip1    = new System.Windows.Forms.ToolStrip();
            this.reloadButton  = new System.Windows.Forms.ToolStripButton();
            this.loadButton    = new System.Windows.Forms.ToolStripButton();
            this.fileNameLabel = new System.Windows.Forms.ToolStripLabel();
            this.unloadButton  = new System.Windows.Forms.ToolStripButton();
            this.openButton    = new System.Windows.Forms.ToolStripButton();
            this.resizeButton  = new System.Windows.Forms.ToolStripButton();
            //this.savesizeButton = new System.Windows.Forms.ToolStripButton();
            this.settingButton = new System.Windows.Forms.ToolStripButton();
            this.widthTextBox  = new ToolStripNumericUpDown();
            this.heightTextBox = new ToolStripNumericUpDown();

            ToolStripLabel w = new ToolStripLabel();
            ToolStripLabel h = new ToolStripLabel();

            panel = new Panel();

            this.toolStrip1.SuspendLayout();

            this.SuspendLayout();

            panel.AutoScroll = true;
            panel.Location   = new System.Drawing.Point(1, 25);

            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.reloadButton,
                this.loadButton,
                this.unloadButton,
                this.openButton,
                new ToolStripSeparator(),
                this.fileNameLabel,
                this.heightTextBox,
                h,
                this.widthTextBox,
                w,
                this.resizeButton,
                this.settingButton
            });

            this.toolStrip1.Location  = new System.Drawing.Point(0, 0);
            this.toolStrip1.Size      = new System.Drawing.Size(571, 25);
            this.toolStrip1.GripStyle = ToolStripGripStyle.Hidden;
            this.toolStrip1.Padding   = new System.Windows.Forms.Padding(1, 1, 2, 1);

            this.reloadButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.reloadButton.Image        = IGet("66").Img;
            this.reloadButton.ToolTipText  = LocaleHelper.GetString("Label.Reload");
            this.reloadButton.Size         = new System.Drawing.Size(23, 22);
            this.reloadButton.Click       += new System.EventHandler(this.reloadButtonClick);

            this.loadButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.loadButton.Image        = IGet("300").Img;
            this.loadButton.ToolTipText  = LocaleHelper.GetString("Label.Load");
            this.loadButton.Size         = new System.Drawing.Size(23, 22);
            this.loadButton.Click       += new System.EventHandler(this.loadButtonClick);

            this.unloadButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.unloadButton.Image        = IGet("153").Img;
            this.unloadButton.Size         = new System.Drawing.Size(23, 22);
            this.unloadButton.ToolTipText  = LocaleHelper.GetString("Label.Unload");
            this.unloadButton.Click       += new System.EventHandler(this.uploadButtonClick);

            this.openButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.openButton.Image        = IGet("214").Img;
            this.openButton.Size         = new System.Drawing.Size(23, 22);
            this.openButton.ToolTipText  = LocaleHelper.GetString("Label.Open");
            this.openButton.Click       += new System.EventHandler(this.openButtonClick);

            this.fileNameLabel.Size = new System.Drawing.Size(81, 22);
            this.fileNameLabel.Text = "";

            this.resizeButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.resizeButton.Image        = IGet("489").Img;
            this.resizeButton.Size         = new System.Drawing.Size(23, 22);
            this.resizeButton.ToolTipText  = LocaleHelper.GetString("Label.Resize");
            this.resizeButton.Alignment    = ToolStripItemAlignment.Right;
            this.resizeButton.Click       += new System.EventHandler(this.changeDisplayState);

            this.settingButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.settingButton.Image        = IGet("54").Img;
            this.settingButton.Size         = new System.Drawing.Size(23, 22);
            this.settingButton.ToolTipText  = LocaleHelper.GetString("Label.Setting");
            this.settingButton.Alignment    = ToolStripItemAlignment.Right;
            this.settingButton.Click       += new System.EventHandler(openSetting);

            this.widthTextBox.Control.Width = 55;
            this.widthTextBox.TextAlign     = HorizontalAlignment.Right;
            this.widthTextBox.Alignment     = ToolStripItemAlignment.Right;
            this.widthTextBox.Maximum       = 99999;
            this.widthTextBox.KeyUp        += new KeyEventHandler(textBoxEnter);

            this.heightTextBox.Control.Width = 55;
            this.heightTextBox.TextAlign     = HorizontalAlignment.Right;
            this.heightTextBox.Alignment     = ToolStripItemAlignment.Right;
            this.heightTextBox.Maximum       = 99999;
            this.heightTextBox.KeyUp        += new KeyEventHandler(textBoxEnter);

            w.Text      = " W:";
            w.Alignment = ToolStripItemAlignment.Right;
            h.Text      = " H:";
            h.Alignment = ToolStripItemAlignment.Right;

            //
            // PluginUI
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;

            this.Controls.Add(this.toolStrip1);
            this.Controls.Add(this.panel);

            this.Name    = "PluginUI";
            this.Size    = new System.Drawing.Size(571, 339);
            this.Resize += new System.EventHandler(this.ResizeHandler);

            this.toolStrip1.ResumeLayout();
            this.ResumeLayout(false);

            this.AllowDrop  = true;
            this.DragEnter += new DragEventHandler(PluginUI_DragEnter);
            this.DragDrop  += new DragEventHandler(PluginUI_DragDrop);
        }
コード例 #2
0
ファイル: PluginUI.cs プロジェクト: Dsnoi/flashdevelopjp
        /// <summary>
        /// This method is required for Windows Forms designer support.
        /// Do not change the method contents inside the source code editor. The Forms designer might
        /// not be able to load this method if it was changed manually.
        /// </summary>
        private void InitializeComponent()
        {
            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
            this.reloadButton = new System.Windows.Forms.ToolStripButton();
            this.loadButton = new System.Windows.Forms.ToolStripButton();
            this.fileNameLabel = new System.Windows.Forms.ToolStripLabel();
            this.unloadButton = new System.Windows.Forms.ToolStripButton();
            this.openButton = new System.Windows.Forms.ToolStripButton();
            this.resizeButton = new System.Windows.Forms.ToolStripButton();
            //this.savesizeButton = new System.Windows.Forms.ToolStripButton();
            this.settingButton = new System.Windows.Forms.ToolStripButton();
            this.widthTextBox = new ToolStripNumericUpDown();
            this.heightTextBox = new ToolStripNumericUpDown();

            ToolStripLabel w = new ToolStripLabel();
            ToolStripLabel h = new ToolStripLabel();

            panel = new Panel();

            this.toolStrip1.SuspendLayout();

            this.SuspendLayout();

            panel.AutoScroll = true;
            panel.Location = new System.Drawing.Point(1, 25);

            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.reloadButton,
                this.loadButton,
                this.unloadButton,
                this.openButton,
                new ToolStripSeparator(),
                this.fileNameLabel,
                this.heightTextBox,
                h,
                this.widthTextBox,
                w,
                this.resizeButton,
                this.settingButton
            });

            this.toolStrip1.Location = new System.Drawing.Point(0, 0);
            this.toolStrip1.Size = new System.Drawing.Size(571, 25);
            this.toolStrip1.GripStyle = ToolStripGripStyle.Hidden;
            this.toolStrip1.Padding = new System.Windows.Forms.Padding(1, 1, 2, 1);

            this.reloadButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.reloadButton.Image = IGet("66").Img;
            this.reloadButton.ToolTipText = LocaleHelper.GetString("Label.Reload");
            this.reloadButton.Size = new System.Drawing.Size(23, 22);
            this.reloadButton.Click += new System.EventHandler(this.reloadButtonClick);

            this.loadButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.loadButton.Image = IGet("300").Img;
            this.loadButton.ToolTipText = LocaleHelper.GetString("Label.Load");
            this.loadButton.Size = new System.Drawing.Size(23, 22);
            this.loadButton.Click += new System.EventHandler(this.loadButtonClick);

            this.unloadButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.unloadButton.Image = IGet("153").Img;
            this.unloadButton.Size = new System.Drawing.Size(23, 22);
            this.unloadButton.ToolTipText = LocaleHelper.GetString("Label.Unload");
            this.unloadButton.Click += new System.EventHandler(this.uploadButtonClick);

            this.openButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.openButton.Image = IGet("214").Img;
            this.openButton.Size = new System.Drawing.Size(23, 22);
            this.openButton.ToolTipText = LocaleHelper.GetString("Label.Open");
            this.openButton.Click += new System.EventHandler(this.openButtonClick);

            this.fileNameLabel.Size = new System.Drawing.Size(81, 22);
            this.fileNameLabel.Text = "";

            this.resizeButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.resizeButton.Image = IGet("489").Img;
            this.resizeButton.Size = new System.Drawing.Size(23, 22);
            this.resizeButton.ToolTipText = LocaleHelper.GetString("Label.Resize");
            this.resizeButton.Alignment = ToolStripItemAlignment.Right;
            this.resizeButton.Click += new System.EventHandler(this.changeDisplayState);

            this.settingButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.settingButton.Image = IGet("54").Img;
            this.settingButton.Size = new System.Drawing.Size(23, 22);
            this.settingButton.ToolTipText = LocaleHelper.GetString("Label.Setting");
            this.settingButton.Alignment = ToolStripItemAlignment.Right;
            this.settingButton.Click += new System.EventHandler(openSetting);

            this.widthTextBox.Control.Width = 55;
            this.widthTextBox.TextAlign = HorizontalAlignment.Right;
            this.widthTextBox.Alignment = ToolStripItemAlignment.Right;
            this.widthTextBox.Maximum = 99999;
            this.widthTextBox.KeyUp += new KeyEventHandler(textBoxEnter);

            this.heightTextBox.Control.Width = 55;
            this.heightTextBox.TextAlign = HorizontalAlignment.Right;
            this.heightTextBox.Alignment = ToolStripItemAlignment.Right;
            this.heightTextBox.Maximum = 99999;
            this.heightTextBox.KeyUp += new KeyEventHandler(textBoxEnter);

            w.Text = " W:";
            w.Alignment = ToolStripItemAlignment.Right;
            h.Text = " H:";
            h.Alignment = ToolStripItemAlignment.Right;

            //
            // PluginUI
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

            this.Controls.Add(this.toolStrip1);
            this.Controls.Add(this.panel);

            this.Name = "PluginUI";
            this.Size = new System.Drawing.Size(571, 339);
            this.Resize += new System.EventHandler(this.ResizeHandler);

            this.toolStrip1.ResumeLayout();
            this.ResumeLayout(false);

            this.AllowDrop = true;
            this.DragEnter += new DragEventHandler(PluginUI_DragEnter);
            this.DragDrop += new DragEventHandler(PluginUI_DragDrop);
        }