/// <summary>
        /// Edits the value
        /// </summary>
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            editedValue = value;
            using (var fontDialog = new FontDialog())
            {
                fontDialog.ShowApply = false;
                fontDialog.ShowColor = false;
                fontDialog.AllowVerticalFonts = false;
                fontDialog.AllowScriptChange = false;
                fontDialog.FixedPitchOnly = true;
                fontDialog.ShowEffects = false;
                fontDialog.ShowHelp = false;

                Font font = value as Font;
                if (font != null) fontDialog.Font = font;

                if (fontDialog.ShowDialog() == DialogResult.OK)
                    editedValue = fontDialog.Font;
            }

            value = editedValue;
            editedValue = null;

            return value;
        }
        public static DialogResult ShowFontDialog(WatermarkConfig Config)
        {
            DialogResult result = DialogResult.Cancel;
            try
            {
                var fDialog = new FontDialog
                {
                    ShowColor = true
                };
                try
                {
                    fDialog.Color = Config.WatermarkFontArgb;
                    fDialog.Font = Config.WatermarkFont;
                }
                catch (Exception err)
                {
                    DebugHelper.WriteException(err, "Error while initializing Font and Color");
                }

                result = fDialog.ShowDialog();
                if (result == DialogResult.OK)
                {
                    Config.WatermarkFont = fDialog.Font;
                    Config.WatermarkFontArgb = fDialog.Color;
                }
            }
            catch (Exception ex)
            {
                DebugHelper.WriteException(ex, "Error while setting Watermark Font");
            }
            return result;
        }
Пример #3
0
 /// <summary>
 /// 选择(修改)字体
 /// </summary>
 /// <params name="sender"></params>
 /// <params name="e"></params>
 private void btnFont_Click(object sender, EventArgs e)
 {
     FontDialog pFontDialog = new FontDialog();
     pFontDialog.ShowDialog();
     if (pFontDialog.Font != null)
         m_pFont = pFontDialog.Font;
 }
Пример #4
0
        private void btnWatermarkFont_Click(object sender, EventArgs e)
        {
            try
            {
                using (FontDialog fontDialog = new FontDialog())
                {
                    fontDialog.ShowColor = true;

                    try
                    {
                        fontDialog.Color = Config.WatermarkFontArgb;
                        fontDialog.Font = Config.WatermarkFont;
                    }
                    catch (Exception ex)
                    {
                        DebugHelper.WriteException(ex, "Error while initializing font.");
                    }

                    if (fontDialog.ShowDialog() == DialogResult.OK)
                    {
                        Config.WatermarkFont = fontDialog.Font;
                        Config.WatermarkFontArgb = fontDialog.Color;

                        pbWatermarkFontColor.BackColor = Config.WatermarkFontArgb;
                        lblWatermarkFont.Text = Config.WatermarkFont.ToString();
                        UpdatePreview();
                    }
                }
            }
            catch (Exception ex)
            {
                DebugHelper.WriteException(ex, "Error while setting watermark font.");
            }
        }
Пример #5
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     FontDialog dlg = new FontDialog();
     dlg.Font = UserFont;
     if (dlg.ShowDialog() == DialogResult.OK)
         UserFont = dlg.Font;
 }
Пример #6
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            FontDialog fd = new FontDialog();

            System.Windows.Forms.DialogResult dr = fd.ShowDialog();
            if (dr != System.Windows.Forms.DialogResult.Cancel)
            {
                FontFamily fontFamily = new System.Windows.Media.FontFamily(fd.Font.Name);
                double fontSize = fd.Font.Size * 96.0 / 72.0; ;
                FontWeight fontWeight = fd.Font.Bold ? FontWeights.Bold : FontWeights.Regular;
                FontStyle fontStyle = fd.Font.Italic ? FontStyles.Italic : FontStyles.Normal;

                tbSourse.FontFamily = fontFamily;
                tbTranslated.FontFamily = fontFamily;
                tbSourse.FontSize = fontSize;
                tbTranslated.FontSize = fontSize;
                tbSourse.FontWeight = fontWeight;
                tbTranslated.FontWeight = fontWeight;
                tbSourse.FontStyle = fontStyle;
                tbTranslated.FontStyle = fontStyle;

                Properties.Settings.Default.FontFamily = fontFamily;
                Properties.Settings.Default.FontSize = fontSize;
                Properties.Settings.Default.FontWeight = fontWeight;
                Properties.Settings.Default.FontStyle = fontStyle;
                Properties.Settings.Default.Save();
            }
        }
Пример #7
0
 public TextSetUp()
 {
     InitializeComponent();
     m_fontDialog = new FontDialog();
     m_fontDialog.ShowColor = true;
     InitFontDialog();
 }
Пример #8
0
        private void EditFont_Click(object sender, EventArgs e)
        {
            font_tracker f = (font_tracker)this.FontList.SelectedItem;

            //pickedFont = null;
            System.Windows.Forms.FontDialog fd = new System.Windows.Forms.FontDialog();
            fd.Font = f.f;

            DialogResult result = fd.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                f.f      = fd.Font;
                f.family = fd.Font.FontFamily.Name;
                f.size   = fd.Font.Size;
                f.style  = fd.Font.Style;
                f.unit   = fd.Font.Unit;
                f.InvokeChanged();
                foreach (Control c in f.Controls)
                {
                    c.Font = f.f;
                }
            }
            fd.Dispose();
        }
        private void buttonChangeFont_Click( object sender, EventArgs e )
        {
            var dialog = new FontDialog()
                { AllowScriptChange  = true
                , AllowSimulations   = true
                , AllowVectorFonts   = true
                , AllowVerticalFonts = true
                , Font               = (LastGdiFont==null) ? Configuration.Main.GdiFont : LastGdiFont
                , FontMustExist      = true
                , ShowColor          = false
                };
            var result = dialog.ShowDialog(this);
            if ( result != DialogResult.OK ) return;
            var font = LastGdiFont = dialog.Font;

            Size touse = new Size(0,0);
            for ( char ch=(char)0 ; ch<(char)255 ; ++ch ) {
                if ( "\u0001 \t\n\r".Contains(ch) ) continue; // annoying outliers
                var m = TextRenderer.MeasureText( ch.ToString(), font, Size.Empty, TextFormatFlags.NoPadding );
                touse.Width  = Math.Max( touse.Width , m.Width  );
                touse.Height = Math.Max( touse.Height, m.Height );
            }

            var scf = ShinyConsole.Font.FromGdiFont( font, touse.Width, touse.Height );
            pictureBoxFontPreview.Image = scf.Bitmap;
        }
Пример #10
0
        /// <summary>
        /// Edits the value
        /// </summary>
        public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            this.value = value;
            if (provider != null)
            {
                IWindowsFormsEditorService service1 = (IWindowsFormsEditorService) provider.GetService(typeof(IWindowsFormsEditorService));
                if (service1 != null)
                {
                    FontDialog fontDialog = new FontDialog();
                    fontDialog.ShowApply = false;
                    fontDialog.ShowColor = false;
                    fontDialog.AllowVerticalFonts = false;
                    fontDialog.AllowScriptChange = false;
                    fontDialog.FixedPitchOnly = true;
                    fontDialog.ShowEffects = false;
                    fontDialog.ShowHelp = false;

                    Font font = value as Font;
                    if(font != null)
                    {
                        fontDialog.Font = font;
                    }
                    if (fontDialog.ShowDialog() == DialogResult.OK)
                    {
                        this.value = fontDialog.Font;
                    }

                    fontDialog.Dispose();
                }
            }

            value = this.value;
            this.value = null;
            return value;
        }
Пример #11
0
 public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
 {
     this.value = value;
     if ((provider != null) && (((IWindowsFormsEditorService) provider.GetService(typeof(IWindowsFormsEditorService))) != null))
     {
         FontDialog dialog = new FontDialog();
         dialog.ShowApply = false;
         dialog.ShowColor = false;
         dialog.AllowVerticalFonts = false;
         dialog.AllowScriptChange = false;
         dialog.FixedPitchOnly = true;
         dialog.ShowEffects = false;
         dialog.ShowHelp = false;
         Font font = value as Font;
         if (font != null)
         {
             dialog.Font = font;
         }
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             this.value = dialog.Font;
         }
         dialog.Dispose();
     }
     value = this.value;
     this.value = null;
     return value;
 }
Пример #12
0
 protected override void OnMouseUp(MouseEventArgs mevent)
 {
     IsDragMode = false;
     base.OnMouseUp(mevent);
     if (mevent.Button == MouseButtons.Right)
     {
         using (ColorDialog cd = new ColorDialog())
         {
             cd.FullOpen = true;
             if (cd.ShowDialog() == DialogResult.OK)
             {
                 this.ForeColor = cd.Color;
             }
         }
         using (FontDialog fd = new FontDialog())
         {
             try
             {
                 fd.AllowScriptChange = false;
                 fd.AllowSimulations = false;
                 if (fd.ShowDialog() == DialogResult.OK)
                 {
                     this.Font = fd.Font;
                 }
             }
             catch (Exception ex)
             {
                 //Not a truetype font
                 MessageBox.Show(this, ex.Message + Environment.NewLine + "Шрифт не изменен.", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
             }
         }
     }
 }
Пример #13
0
        private void btnWatermarkFont_Click(object sender, EventArgs e)
        {
            try
            {
                using (FontDialog fontDialog = new FontDialog())
                {
                    fontDialog.ShowColor = true;

                    try
                    {
                        fontDialog.Font = config.Text.TextFont;
                        fontDialog.Color = config.Text.TextColor;
                    }
                    catch (Exception ex)
                    {
                        DebugHelper.WriteException(ex, "Error while initializing font.");
                    }

                    if (fontDialog.ShowDialog() == DialogResult.OK)
                    {
                        config.Text.TextFont = fontDialog.Font;
                        config.Text.TextColor = fontDialog.Color;

                        btnTextColor.Color = config.Text.TextColor;
                        lblWatermarkFont.Text = new FontConverter().ConvertToInvariantString(config.Text.TextFont);
                        UpdatePreview();
                    }
                }
            }
            catch (Exception ex)
            {
                DebugHelper.WriteException(ex, "Error while setting watermark font.");
            }
        }
Пример #14
0
 private void ChangeFontButton_Click(object sender, EventArgs e)
 {
     var fd = new FontDialog { Font = LogMessageTextBox.Font };
     if (fd.ShowDialog() == DialogResult.OK)
     {
         LogMessageTextBox.Font = fd.Font;
     }
 }
Пример #15
0
 private void fontToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     FontDialog font = new FontDialog();
     font.Font = notepad_interface.SelectionFont;
     if (font.ShowDialog() == DialogResult.OK){
         notepad_interface.SelectionFont = font.Font;
     }
 }
Пример #16
0
 protected override void OnClick(EventArgs e)
 {
     var fod = new FontDialog();
     fod.Font = SelectedFont.CreateFont();
     if(fod.ShowDialog() == DialogResult.OK) {
         SelectedFont = FontDescription.FromFont(fod.Font);
     }
 }
Пример #17
0
        private void changeFontToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FontDialog fd = new FontDialog();
            fd.Font = this.clockLabel.Font;
            fd.ShowDialog();

            this.clockLabel.Font = fd.Font;
        }
Пример #18
0
 private void changeFontMenuItem_Click(object sender, System.EventArgs e)
 {
     FontDialog dialog = new FontDialog();
     if (dialog.ShowDialog() == DialogResult.OK)
     {
         this.Font = dialog.Font;
     }
 }
Пример #19
0
 private void button5_Click(object sender, EventArgs e)
 {
     FontDialog fd = new FontDialog();
     if (fd.ShowDialog() == DialogResult.OK)
     {
         this.Font = fd.Font;
     }
 }
Пример #20
0
        private void tsButSetFont_Click(object sender, EventArgs e)
        {
            FontDialog fd = new FontDialog();
            fd.Font = this.txtSend.Font;
            if (fd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                this.txtSend.Font = fd.Font;

        }
Пример #21
0
        private void fontBtn_Click(object sender, EventArgs e)
        {
            FontDialog fontDlg = new FontDialog();
            fontDlg.Font = textBox.Font;

            if (fontDlg.ShowDialog() == DialogResult.OK)
                textBox.Font = fontDlg.Font;
        }
Пример #22
0
 private void fontsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FontDialog FontSelect = new FontDialog(); //Font dialog
     if (FontSelect.ShowDialog() == DialogResult.OK)
     {
         rtfContent.Font = FontSelect.Font; //sets font
     }
 }
 private void m_btFonte_Click(object sender, System.EventArgs e)
 {
     System.Windows.Forms.FontDialog dlgFonte = new System.Windows.Forms.FontDialog();
     try
     {
         dlgFonte.Font = m_fntFonte;
     }catch {
         dlgFonte.Font = new System.Drawing.Font("Arial", 12);
     }
     dlgFonte.Color     = m_clrTexto;
     dlgFonte.ShowColor = true;
     if (dlgFonte.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         try
         {
             m_fntFonte = dlgFonte.Font;
         }catch {
             dlgFonte.Font = new System.Drawing.Font("Arial", 12);
         }
         if (m_fntFonte.Size != System.Math.Ceiling(m_fntFonte.Size))
         {
             FontStyle fs = new FontStyle();
             if (m_fntFonte.Bold)
             {
                 fs = fs | FontStyle.Bold;
             }
             if (m_fntFonte.Italic)
             {
                 fs = fs | FontStyle.Italic;
             }
             if (m_fntFonte.Strikeout)
             {
                 fs = fs | FontStyle.Strikeout;
             }
             if (m_fntFonte.Underline)
             {
                 fs = fs | FontStyle.Underline;
             }
             try
             {
                 m_fntFonte = new System.Drawing.Font(m_fntFonte.FontFamily, (int)m_fntFonte.Size, fs);
             }catch {
                 m_fntFonte = new System.Drawing.Font("Arial", 12);
             }
         }
         m_clrTexto = dlgFonte.Color;
         try
         {
             m_lbFonte.Font = m_fntFonte;
         }catch {
             m_lbFonte.Font = new System.Drawing.Font("Arial", 12);
         }
         m_lbFonte.ForeColor       = m_clrTexto;
         m_lbTextoEdicao.Font      = m_fntFonte;
         m_lbTextoEdicao.ForeColor = m_clrTexto;
     }
     dlgFonte = null;
 }
Пример #24
0
 public MyWinCtrl()
 {
     FontDialog dialog = new FontDialog();
       dialog.ShowDialog();
       Font = dialog.Font;
       ColorDialog colDialog = new ColorDialog();
       colDialog.ShowDialog();
       ForeColor = colDialog.Color;
 }
Пример #25
0
 private void DoChangeFont()
 {
     FontDialog fd = new FontDialog();
     fd.Font = LogMessageTextBox.Font;
     if (fd.ShowDialog() == DialogResult.OK)
     {
         LogMessageTextBox.Font = fd.Font;
     }
 }
Пример #26
0
 private void button1_Click(object sender, EventArgs e)
 {
     FontDialog s = new FontDialog();
     if(s.ShowDialog()==DialogResult.OK)
     {
         this.button1.Text = s.Font.Name;
         global::AutoRender.Properties.Settings.Default.UserFont = this.Font = s.Font;
     }
 }
Пример #27
0
        private void ButtonFontClick(object sender, EventArgs e)
        {
            FontDialog dlg = new FontDialog();
            dlg.Font = ColorSet.Font;
            if (dlg.ShowDialog(this) != DialogResult.OK)
                return;

            textBoxFont.Text = new FontConverter().ConvertToInvariantString(dlg.Font);
        }
Пример #28
0
 public static void SetFont()
 {
     FontDialog fd = new FontDialog();
     if(sysfont!=null)fd.Font = sysfont;
     if (fd.ShowDialog() == DialogResult.OK)
     {
         sysfont = fd.Font;
     }
 }
Пример #29
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.txtBox     = new System.Windows.Forms.TextBox();
     this.btnSubmit  = new System.Windows.Forms.Button();
     this.btnCancle  = new System.Windows.Forms.Button();
     this.fontDialog = new System.Windows.Forms.FontDialog();
     this.btnFont    = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // txtBox
     //
     this.txtBox.Location   = new System.Drawing.Point(32, 32);
     this.txtBox.Name       = "txtBox";
     this.txtBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtBox.Size       = new System.Drawing.Size(160, 21);
     this.txtBox.TabIndex   = 0;
     this.txtBox.Text       = "";
     //
     // btnSubmit
     //
     this.btnSubmit.Location = new System.Drawing.Point(208, 32);
     this.btnSubmit.Name     = "btnSubmit";
     this.btnSubmit.Size     = new System.Drawing.Size(56, 23);
     this.btnSubmit.TabIndex = 0;
     this.btnSubmit.Text     = "Submit";
     this.btnSubmit.Click   += new System.EventHandler(this.btnSubmit_Click);
     //
     // btnCancle
     //
     this.btnCancle.Location = new System.Drawing.Point(280, 32);
     this.btnCancle.Name     = "btnCancle";
     this.btnCancle.Size     = new System.Drawing.Size(56, 23);
     this.btnCancle.TabIndex = 1;
     this.btnCancle.Text     = "Cancle";
     this.btnCancle.Click   += new System.EventHandler(this.btnCancle_Click);
     //
     // btnFont
     //
     this.btnFont.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnFont.Location = new System.Drawing.Point(208, 64);
     this.btnFont.Name     = "btnFont";
     this.btnFont.TabIndex = 2;
     this.btnFont.Text     = "Font";
     this.btnFont.Click   += new System.EventHandler(this.btnFont_Click);
     //
     // NewForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(344, 102);
     this.Controls.Add(this.btnFont);
     this.Controls.Add(this.btnCancle);
     this.Controls.Add(this.btnSubmit);
     this.Controls.Add(this.txtBox);
     this.Name = "NewForm";
     this.Text = "InputText";
     this.ResumeLayout(false);
 }
 private void buttonFont_Click(object sender, EventArgs e)
 {
     System.Windows.Forms.FontDialog dialog = new System.Windows.Forms.FontDialog();
     dialog.Font = labelDemo.Font;
     if (dialog.ShowDialog() == DialogResult.OK)
     {
         labelDemo.Font = dialog.Font;
     }
 }
Пример #31
0
 private void menuItem14_Click(object sender, EventArgs e)
 {
     System.Windows.Forms.FontDialog f = new System.Windows.Forms.FontDialog();
     f.ShowEffects = true;
     f.ShowColor   = true;
     f.ShowDialog();
     txtmain.Font      = f.Font;
     txtmain.ForeColor = f.Color;
 }
Пример #32
0
 private void stmiFont_Click(object sender, EventArgs e)
 {
     FontDialog fDialog = new FontDialog();
     if (fDialog.ShowDialog()== DialogResult.OK)
     {
         Font font = fDialog.Font;
         DrawStr(font, "Строка выведена шрифтом " + font.Name);
     }
 }
Пример #33
0
 private void LabelGeneralFontVal_Click(object sender, EventArgs e)
 {
     FontDialog dialog = new FontDialog();
     dialog.Font = FrmSContainer.VirtualConfig.GenericFont;
     if (dialog.ShowDialog(this) == DialogResult.OK) {
         LabelGeneralFontVal.Font = FrmSContainer.VirtualConfig.GenericFont = dialog.Font;
         FrmSContainer.CompareConfig();
     }
 }
Пример #34
0
        private void button3_Click(object sender, EventArgs e)
        {
            FontDialog fd = new FontDialog();
            if (fd.ShowDialog() == DialogResult.OK)
            {
                richTextBox1.Font = fd.Font;

            }
        }
Пример #35
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(FormOptions));
     this.buttonOK      = new System.Windows.Forms.Button();
     this.buttonCancel  = new System.Windows.Forms.Button();
     this.fontDialog1   = new System.Windows.Forms.FontDialog();
     this.colorDialog1  = new System.Windows.Forms.ColorDialog();
     this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
     this.buttonReset   = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // buttonOK
     //
     resources.ApplyResources(this.buttonOK, "buttonOK");
     this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.buttonOK.Name         = "buttonOK";
     this.buttonOK.Click       += new System.EventHandler(this.buttonOK_Click);
     //
     // buttonCancel
     //
     resources.ApplyResources(this.buttonCancel, "buttonCancel");
     this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.buttonCancel.Name         = "buttonCancel";
     //
     // propertyGrid1
     //
     resources.ApplyResources(this.propertyGrid1, "propertyGrid1");
     this.propertyGrid1.Name = "propertyGrid1";
     //
     // buttonReset
     //
     resources.ApplyResources(this.buttonReset, "buttonReset");
     this.buttonReset.Name = "buttonReset";
     this.buttonReset.UseVisualStyleBackColor = true;
     this.buttonReset.Click += new System.EventHandler(this.buttonReset_Click);
     //
     // FormOptions
     //
     this.AcceptButton = this.buttonOK;
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     this.BackColor     = System.Drawing.Color.White;
     this.CancelButton  = this.buttonCancel;
     this.Controls.Add(this.buttonReset);
     this.Controls.Add(this.propertyGrid1);
     this.Controls.Add(this.buttonCancel);
     this.Controls.Add(this.buttonOK);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
     this.HelpButton      = true;
     this.Name            = "FormOptions";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.ResumeLayout(false);
 }
Пример #36
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new WF.FontDialog()
            {
                Font = SelectedFont
            };

            if (WF.DialogResult.OK == dialog.ShowDialog())
            {
                SelectedFont = dialog.Font;
            }
        }
Пример #37
0
 public Form1()
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     CenterToScreen();
     fontDlg          = new System.Windows.Forms.FontDialog();
     fontDlg.ShowHelp = true;
     Text             = "Click on me to change the font";
     currFont         = new Font("Times New Roman", 12);
 }
Пример #38
0
        private void FontClick(object sender, RoutedEventArgs e)
        {
            var fd = new Forms.FontDialog();
            var dr = fd.ShowDialog();

            if (dr != Forms.DialogResult.Cancel)
            {
                this.TextBox.FontFamily = new System.Windows.Media.FontFamily(fd.Font.Name);
                this.TextBox.FontSize   = fd.Font.Size * 96.0 / 72.0;
                this.TextBox.FontWeight = fd.Font.Bold ? FontWeights.Bold : FontWeights.Regular;
                this.TextBox.FontStyle  = fd.Font.Italic ? FontStyles.Italic : FontStyles.Normal;
            }
        }
Пример #39
0
 private void _TextBox_PreviewMouseDown(object sender, MouseButtonEventArgs e)
 {
     if (e.LeftButton == MouseButtonState.Pressed)
     {
         var dialog = new WF.FontDialog()
         {
             Font = SelectedFont
         };
         if (WF.DialogResult.OK == dialog.ShowDialog())
         {
             SelectedFont = dialog.Font;
         }
     }
 }
Пример #40
0
        public void ChangeFontSize(winForms.RichTextBox htmlTextBox, winForms.RichTextBox csstextBox, winForms.RichTextBox htmlTextBoxLine, winForms.RichTextBox csstextBoxLine)
        {
            System.Windows.Forms.FontDialog fDialog = new System.Windows.Forms.FontDialog();
            fDialog.MaxSize = 20;
            System.Windows.Forms.DialogResult res = fDialog.ShowDialog();
            if (res == System.Windows.Forms.DialogResult.OK)
            {
                htmlTextBox.Font     = fDialog.Font;
                htmlTextBoxLine.Font = fDialog.Font;

                csstextBox.Font     = fDialog.Font;
                csstextBoxLine.Font = fDialog.Font;
            }
        }
Пример #41
0
        private void btnWatermarkTextFontPicker_Click(object sender, RoutedEventArgs e)
        {
            FontDialog fd = new System.Windows.Forms.FontDialog();

            if (WatermarkTextFont != null)
            {
                fd.Font = WatermarkTextFont;
            }
            DialogResult dr = fd.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                //Apply your font name, size, styles, etc.
                WatermarkTextFont = fd.Font;
            }
        }
Пример #42
0
 /// <summary>
 /// 换字库
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnChgFont_Click(object sender, EventArgs e)
 {
     try
     {
         FontDialog fontDialog = new System.Windows.Forms.FontDialog();
         fontDialog.Font = this.txtCn.Font;
         if (fontDialog.ShowDialog() == DialogResult.OK)
         {
             this.txtCn.Font = fontDialog.Font;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #43
0
        /// <summary>
        /// Pour changer la couleur, et la police
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            var fontDialog1 = new System.Windows.Forms.FontDialog();

            fontDialog1.ShowColor = true;
            if (fontDialog1.ShowDialog() != System.Windows.Forms.DialogResult.Cancel)
            {
                param._fontName = fontDialog1.Font.Name;
                param._fontSize = fontDialog1.Font.Size;
                param.R         = fontDialog1.Color.R;
                param.G         = fontDialog1.Color.G;
                param.B         = fontDialog1.Color.B;
            }
            save();
            w1.update();
        }
Пример #44
0
        private void TextFontButton_Click(object sender, System.EventArgs e)
        {
            NLabel label = nChartControl1.Labels[0];

            TextDefaultFontDialog      = new FontDialog();
            TextDefaultFontDialog.Font = new Font(label.TextStyle.FontStyle.Name, label.TextStyle.FontStyle.EmSize.Value, label.TextStyle.FontStyle.Style);

            if (TextDefaultFontDialog.ShowDialog() == DialogResult.OK)
            {
                label.TextStyle.FontStyle.Name   = TextDefaultFontDialog.Font.Name;
                label.TextStyle.FontStyle.EmSize = new NLength(TextDefaultFontDialog.Font.SizeInPoints, NGraphicsUnit.Point);
                label.TextStyle.FontStyle.Style  = TextDefaultFontDialog.Font.Style;

                nChartControl1.Refresh();
            }
        }
Пример #45
0
        public Form1()
        {
            this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
            this.colorDialog    = new System.Windows.Forms.ColorDialog();
            this.fontDialog     = new System.Windows.Forms.FontDialog();

            InitializeComponent();

            openFileDialog.InitialDirectory = "c:\\";
            openFileDialog.Filter           = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
            openFileDialog.FilterIndex      = 2;
            openFileDialog.RestoreDirectory = true;

            colorDialog.FullOpen = true;
            colorDialog.Color    = this.BackColor;
        }
Пример #46
0
        /// <summary>
        /// フォントダイアログを開き、フォントの設定を行います。
        /// </summary>
        public static FontInfo ShowFontDialog(FontInfo defaultInfo)
        {
            var dialog = new System.Windows.Forms.FontDialog()
            {
                Font = ConvertFont(defaultInfo),
            };

            var result = dialog.ShowDialog();

            if (result != System.Windows.Forms.DialogResult.OK)
            {
                return(null);
            }

            return(ConvertFont(dialog.Font));
        }
Пример #47
0
        private void Button_Font(object sender, RoutedEventArgs e)
        {
            var dlg = new System.Windows.Forms.FontDialog();

/*
 *                      if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
 *                      {
 *                              editor.FontFamily = new FontFamily(dlg.Font.FontFamily.Name);
 *                              editor.FontSize = dlg.Font.SizeInPoints / 72.0 * 96.0;
 *                              editor.FontStyle = (dlg.Font.Style & System.Drawing.FontStyle.Italic) == 0
 *                                      ? FontStyles.Normal : FontStyles.Italic;
 *                              editor.FontWeight = (dlg.Font.Style & System.Drawing.FontStyle.Bold) == 0
 *                                      ? FontWeights.Normal : FontWeights.Bold;
 *                      }
 */
        }
Пример #48
0
        private Task <FontDialogResult> OnOkResult(System.Windows.Forms.FontDialog fontDialog)
        {
            _fontDialogSettingsService.SetFont(fontDialog.Font);
            _fontDialogSettingsService.SetColor(fontDialog.Color);

            return(Task.FromResult(new FontDialogResult
            {
                FontDialogResultType = FontDialogResultType.Ok,
                FontResult = new FontResult
                {
                    FontFamilyName = fontDialog.Font.Name,
                    DrawingFontSize = fontDialog.Font.Size,
                    DrawingFontStyle = fontDialog.Font.Style,
                    DrawingFontColor = fontDialog.Color
                }
            }));
        }
Пример #49
0
        public void SetFont(object sender, EventArgs e) //format-font
        //currently not cross platform!
        {
            System.Windows.Forms.FontDialog fd = new System.Windows.Forms.FontDialog();
            fd.AllowScriptChange = false; //.net strings are unicode, need to disable changing the cp of the textbox
            fd.ShowColor         = true;
            //fd.Font = txtBox.Font;
            //fd.Color = txtBox.ForeColor;

            fd.ShowDialog();

            //txtBox.Font = fd.Font;
            //txtBox.ForeColor = fd.Color;

            //undone: the default xwt is too simple
            //нужно найти способ изменения шрифта текстэнтри или внести правки в иксвэтэ :-)
        }
Пример #50
0
        private void SettingFont()
        {
            using (var fontDialog = new System.Windows.Forms.FontDialog())
            {
                fontDialog.Font      = new System.Drawing.Font(m_strFontName, m_fFontSize, m_fontStyle);
                fontDialog.ShowColor = true;

                fontDialog.Color = m_fontColor;

                if (fontDialog.ShowDialog() != System.Windows.Forms.DialogResult.Cancel)
                {
                    FontFamilyConverter ffc = new FontFamilyConverter();

                    this.messageEditBox.FontSize   = fontDialog.Font.Size / 72 * 96;
                    this.messageEditBox.FontFamily = (System.Windows.Media.FontFamily)ffc.ConvertFromString(fontDialog.Font.Name);

                    if (fontDialog.Font.Bold)
                    {
                        this.messageEditBox.FontWeight = FontWeights.Bold;
                    }
                    else
                    {
                        this.messageEditBox.FontWeight = FontWeights.Normal;
                    }

                    if (fontDialog.Font.Italic)
                    {
                        this.messageEditBox.FontStyle = FontStyles.Italic;
                    }
                    else
                    {
                        this.messageEditBox.FontStyle = FontStyles.Normal;
                    }

                    BrushConverter bc = new BrushConverter();
                    this.messageEditBox.Foreground = (System.Windows.Media.Brush)bc.ConvertFromString(fontDialog.Color.Name);

                    m_strFontName = fontDialog.Font.Name;
                    m_fFontSize   = fontDialog.Font.Size;
                    m_fontStyle   = fontDialog.Font.Style;
                    m_fontColor   = fontDialog.Color;
                }
            }
        }
Пример #51
0
        /// <summary>
        /// 改变pmx editor的多个窗口的字体
        /// <param name="defaultFont">对话框默认选择字体</param>
        /// </summary>
        private void selectChangeFont(Font defaultFont)
        {
            //主窗口
            Form mainForm = peArgs.Host.Connector.Form as System.Windows.Forms.Form;

            using (System.Windows.Forms.FontDialog dlg = new System.Windows.Forms.FontDialog())//新建字体对话框
            {
                dlg.Font = defaultFont;


                if (dlg.ShowDialog(mainForm) == System.Windows.Forms.DialogResult.OK)//确定按钮被点击
                {
                    //Console.WriteLine("asd");

                    //设置为选中的字体
                    changeAllFormsFont(dlg.Font);

                    //保存设置到文件
                    settings.font = dlg.Font;
                    Utils.saveSettings(fontxml, settings);
                    #region 反射的方法获取控件
                    //var ppts = pmxView.GetType().GetFields(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Public);
                    //foreach (var a in ppts)
                    //{
                    //    if (a.FieldType.IsSubclassOf(typeof(System.Windows.Forms.Form)))
                    //    {
                    //        System.Windows.Forms.Form f = (System.Windows.Forms.Form)a.GetValue(view);
                    //        if (f != null)
                    //        {
                    //            f.Font = dlg.Font;
                    //        }
                    //    }
                    //}
                    #endregion
                }
            }
        }
Пример #52
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.button1      = new System.Windows.Forms.Button();
     this.fontDialog1  = new System.Windows.Forms.FontDialog();
     this.richTextBox1 = new System.Windows.Forms.RichTextBox();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(32, 8);
     this.button1.Name     = "button1";
     this.button1.TabIndex = 0;
     this.button1.Text     = "button1";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // fontDialog1
     //
     this.fontDialog1.Apply += new System.EventHandler(this.fontDialog1_Apply);
     //
     // richTextBox1
     //
     this.richTextBox1.Location = new System.Drawing.Point(56, 72);
     this.richTextBox1.Name     = "richTextBox1";
     this.richTextBox1.TabIndex = 1;
     this.richTextBox1.Text     = "richTextBox1";
     //
     // Form1
     //
     this.ClientSize = new System.Drawing.Size(292, 273);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.richTextBox1,
         this.button1
     });
     this.Name = "Form1";
     this.Text = "Form1";
     this.ResumeLayout(false);
 }
Пример #53
0
 private void InitializeComponent()
 {
     this.FontDialog1 = new System.Windows.Forms.FontDialog();
     this.Button1     = new System.Windows.Forms.Button();
     this.TextBox1    = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     //FontDialog1
     //
     //
     //Button1
     //
     this.Button1.Location = new System.Drawing.Point(72, 136);
     this.Button1.Name     = "Button1";
     this.Button1.Size     = new System.Drawing.Size(144, 88);
     this.Button1.TabIndex = 0;
     this.Button1.Text     = "Click for Font Dialog";
     this.Button1.Click   += new System.EventHandler(Button1_Click);
     //
     //TextBox1
     //
     this.TextBox1.Location = new System.Drawing.Point(72, 48);
     this.TextBox1.Name     = "TextBox1";
     this.TextBox1.Size     = new System.Drawing.Size(152, 20);
     this.TextBox1.TabIndex = 1;
     this.TextBox1.Text     = "Here is some text.";
     //
     //Form1
     //
     this.ClientSize = new System.Drawing.Size(292, 266);
     this.Controls.Add(this.TextBox1);
     this.Controls.Add(this.Button1);
     this.Name = "Form1";
     this.Text = "Form1";
     this.ResumeLayout(false);
 }
Пример #54
0
 /// <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();
     this.fontDialog1     = new System.Windows.Forms.FontDialog();
     this.colorDialog1    = new System.Windows.Forms.ColorDialog();
     this.printDialog1    = new System.Windows.Forms.PrintDialog();
     this.Timer           = new System.Windows.Forms.Timer(this.components);
     this.lbSystemTime    = new System.Windows.Forms.Label();
     this.tbSystemTime    = new System.Windows.Forms.TextBox();
     this.tbExecutionTime = new System.Windows.Forms.TextBox();
     this.lbExecutionTime = new System.Windows.Forms.Label();
     this.btnClose        = new System.Windows.Forms.Button();
     this.panel1          = new System.Windows.Forms.Panel();
     this.tbStatus        = new System.Windows.Forms.TextBox();
     this.tbTotal         = new System.Windows.Forms.TextBox();
     this.tbLeft          = new System.Windows.Forms.TextBox();
     this.lbStatus        = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this.label3          = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // Timer
     //
     this.Timer.Enabled  = true;
     this.Timer.Interval = 1000;
     this.Timer.Tick    += new System.EventHandler(this.timer1_Tick);
     //
     // lbSystemTime
     //
     this.lbSystemTime.Location = new System.Drawing.Point(8, 8);
     this.lbSystemTime.Name     = "lbSystemTime";
     this.lbSystemTime.Size     = new System.Drawing.Size(100, 16);
     this.lbSystemTime.TabIndex = 0;
     this.lbSystemTime.Text     = "System time:";
     //
     // tbSystemTime
     //
     this.tbSystemTime.Font     = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
     this.tbSystemTime.Location = new System.Drawing.Point(8, 24);
     this.tbSystemTime.Name     = "tbSystemTime";
     this.tbSystemTime.Size     = new System.Drawing.Size(280, 29);
     this.tbSystemTime.TabIndex = 1;
     this.tbSystemTime.Text     = "";
     //
     // tbExecutionTime
     //
     this.tbExecutionTime.Font     = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
     this.tbExecutionTime.Location = new System.Drawing.Point(8, 80);
     this.tbExecutionTime.Name     = "tbExecutionTime";
     this.tbExecutionTime.Size     = new System.Drawing.Size(280, 29);
     this.tbExecutionTime.TabIndex = 3;
     this.tbExecutionTime.Text     = "";
     //
     // lbExecutionTime
     //
     this.lbExecutionTime.Location = new System.Drawing.Point(8, 64);
     this.lbExecutionTime.Name     = "lbExecutionTime";
     this.lbExecutionTime.Size     = new System.Drawing.Size(100, 16);
     this.lbExecutionTime.TabIndex = 2;
     this.lbExecutionTime.Text     = "Execution time:";
     //
     // btnClose
     //
     this.btnClose.Location = new System.Drawing.Point(112, 232);
     this.btnClose.Name     = "btnClose";
     this.btnClose.TabIndex = 4;
     this.btnClose.Text     = "Close";
     this.btnClose.Click   += new System.EventHandler(this.button1_Click);
     //
     // panel1
     //
     this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel1.Location    = new System.Drawing.Point(8, 120);
     this.panel1.Name        = "panel1";
     this.panel1.Size        = new System.Drawing.Size(280, 4);
     this.panel1.TabIndex    = 5;
     //
     // tbStatus
     //
     this.tbStatus.Location = new System.Drawing.Point(112, 136);
     this.tbStatus.Name     = "tbStatus";
     this.tbStatus.Size     = new System.Drawing.Size(176, 20);
     this.tbStatus.TabIndex = 6;
     this.tbStatus.Text     = "";
     //
     // tbTotal
     //
     this.tbTotal.Location = new System.Drawing.Point(112, 168);
     this.tbTotal.Name     = "tbTotal";
     this.tbTotal.Size     = new System.Drawing.Size(176, 20);
     this.tbTotal.TabIndex = 7;
     this.tbTotal.Text     = "";
     //
     // tbLeft
     //
     this.tbLeft.Location = new System.Drawing.Point(112, 200);
     this.tbLeft.Name     = "tbLeft";
     this.tbLeft.Size     = new System.Drawing.Size(176, 20);
     this.tbLeft.TabIndex = 8;
     this.tbLeft.Text     = "";
     //
     // lbStatus
     //
     this.lbStatus.Location = new System.Drawing.Point(8, 136);
     this.lbStatus.Name     = "lbStatus";
     this.lbStatus.Size     = new System.Drawing.Size(88, 23);
     this.lbStatus.TabIndex = 9;
     this.lbStatus.Text     = "Status";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 168);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(88, 23);
     this.label2.TabIndex = 10;
     this.label2.Text     = "Total Minutes";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(8, 200);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(88, 23);
     this.label3.TabIndex = 11;
     this.label3.Text     = "Left Minutes";
     //
     // frmMain
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(296, 262);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.lbStatus);
     this.Controls.Add(this.tbLeft);
     this.Controls.Add(this.tbTotal);
     this.Controls.Add(this.tbStatus);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.tbExecutionTime);
     this.Controls.Add(this.lbExecutionTime);
     this.Controls.Add(this.tbSystemTime);
     this.Controls.Add(this.lbSystemTime);
     this.Name  = "frmMain";
     this.Text  = "Test .NET Application";
     this.Load += new System.EventHandler(this.frmMain_Load);
     this.ResumeLayout(false);
 }
Пример #55
0
 /// <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.mainMenu1               = new System.Windows.Forms.MainMenu();
     this.menuItem1               = new System.Windows.Forms.MenuItem();
     this.menuItem2_New           = new System.Windows.Forms.MenuItem();
     this.menuItem3_Open          = new System.Windows.Forms.MenuItem();
     this.menuItem8_Save          = new System.Windows.Forms.MenuItem();
     this.menuItem9_SaveAs        = new System.Windows.Forms.MenuItem();
     this.menuItem4               = new System.Windows.Forms.MenuItem();
     this.menuItem11_PageSetup    = new System.Windows.Forms.MenuItem();
     this.menuItem12_PrintPreview = new System.Windows.Forms.MenuItem();
     this.menuItem10_Print        = new System.Windows.Forms.MenuItem();
     this.menuItem5_RecentFiles4  = new System.Windows.Forms.MenuItem();
     this.menuItem6               = new System.Windows.Forms.MenuItem();
     this.menuItem7_Exit          = new System.Windows.Forms.MenuItem();
     this.menuItem13              = new System.Windows.Forms.MenuItem();
     this.menuItem14_Undo         = new System.Windows.Forms.MenuItem();
     this.menuItem16              = new System.Windows.Forms.MenuItem();
     this.menuItem17_Cut          = new System.Windows.Forms.MenuItem();
     this.menuItem18_Copy         = new System.Windows.Forms.MenuItem();
     this.menuItem19_Paste        = new System.Windows.Forms.MenuItem();
     this.menuItem15              = new System.Windows.Forms.MenuItem();
     this.menuItem20_WordWrap     = new System.Windows.Forms.MenuItem();
     this.menuItem21              = new System.Windows.Forms.MenuItem();
     this.statusBar1              = new System.Windows.Forms.StatusBar();
     this.openFileDialog1         = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog1         = new System.Windows.Forms.SaveFileDialog();
     this.printDialog1            = new System.Windows.Forms.PrintDialog();
     this.printDocument1          = new System.Drawing.Printing.PrintDocument();
     this.printPreviewDialog1     = new System.Windows.Forms.PrintPreviewDialog();
     this.pageSetupDialog1        = new System.Windows.Forms.PageSetupDialog();
     this.fontDialog1             = new System.Windows.Forms.FontDialog();
     this.imageList1              = new System.Windows.Forms.ImageList(this.components);
     this.toolBar1             = new System.Windows.Forms.ToolBar();
     this.toolBarButton1_New   = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton2_Open  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton3_Save  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton4       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton5_Cut   = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton6_Copy  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton7_Paste = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton1       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton2       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton3       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton5       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton6       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton7       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton8       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton9       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton10      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton11      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton12      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton13      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton14      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton15      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton16      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton17      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton18      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton_Print  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton20      = new System.Windows.Forms.ToolBarButton();
     this.text_Box1            = new Salford.VisualClearWin.Text_Box();
     this.comboBox1            = new System.Windows.Forms.ComboBox();
     this.toolTip1             = new System.Windows.Forms.ToolTip(this.components);
     this.SuspendLayout();
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem13,
         this.menuItem15
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem2_New,
         this.menuItem3_Open,
         this.menuItem8_Save,
         this.menuItem9_SaveAs,
         this.menuItem4,
         this.menuItem11_PageSetup,
         this.menuItem12_PrintPreview,
         this.menuItem10_Print,
         this.menuItem5_RecentFiles4,
         this.menuItem6,
         this.menuItem7_Exit
     });
     this.menuItem1.MergeType = System.Windows.Forms.MenuMerge.MergeItems;
     this.menuItem1.Text      = "&File";
     //
     // menuItem2_New
     //
     this.menuItem2_New.Index = 0;
     this.menuItem2_New.Text  = "New|Creates a new document";
     //
     // menuItem3_Open
     //
     this.menuItem3_Open.Index = 1;
     this.menuItem3_Open.Text  = "&Open|Opens files";
     //
     // menuItem8_Save
     //
     this.menuItem8_Save.Enabled = false;
     this.menuItem8_Save.Index   = 2;
     this.menuItem8_Save.Text    = "Save|Saves the document";
     //
     // menuItem9_SaveAs
     //
     this.menuItem9_SaveAs.Index = 3;
     this.menuItem9_SaveAs.Text  = "Save As|Saves the document with a different name";
     //
     // menuItem4
     //
     this.menuItem4.Index = 4;
     this.menuItem4.Text  = "-";
     //
     // menuItem11_PageSetup
     //
     this.menuItem11_PageSetup.Index = 5;
     this.menuItem11_PageSetup.Text  = "Page Setup|Displays the Page Setup dialog";
     //
     // menuItem12_PrintPreview
     //
     this.menuItem12_PrintPreview.Index = 6;
     this.menuItem12_PrintPreview.Text  = "Print Preview|Displays the Print Preview dialog";
     //
     // menuItem10_Print
     //
     this.menuItem10_Print.Index = 7;
     this.menuItem10_Print.Text  = "Print...|Starts a printing process";
     //
     // menuItem5_RecentFiles4
     //
     this.menuItem5_RecentFiles4.Index = 8;
     this.menuItem5_RecentFiles4.Text  = "Recent files";
     //
     // menuItem6
     //
     this.menuItem6.Index = 9;
     this.menuItem6.Text  = "-";
     //
     // menuItem7_Exit
     //
     this.menuItem7_Exit.Index = 10;
     this.menuItem7_Exit.Text  = "Exit|Exits from the application";
     //
     // menuItem13
     //
     this.menuItem13.Index = 1;
     this.menuItem13.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem14_Undo,
         this.menuItem16,
         this.menuItem17_Cut,
         this.menuItem18_Copy,
         this.menuItem19_Paste
     });
     this.menuItem13.Text = "Edit";
     //
     // menuItem14_Undo
     //
     this.menuItem14_Undo.Index = 0;
     this.menuItem14_Undo.Text  = "Undo|Undoes the last edit";
     //
     // menuItem16
     //
     this.menuItem16.Index = 1;
     this.menuItem16.Text  = "-";
     //
     // menuItem17_Cut
     //
     this.menuItem17_Cut.Index = 2;
     this.menuItem17_Cut.Text  = "Cut|Cuts the selection to the clipboard";
     //
     // menuItem18_Copy
     //
     this.menuItem18_Copy.Index = 3;
     this.menuItem18_Copy.Text  = "Copy|Copies the selection to the clipboard";
     //
     // menuItem19_Paste
     //
     this.menuItem19_Paste.Index = 4;
     this.menuItem19_Paste.Text  = "Paste|Pastes the clipboard at the current position";
     //
     // menuItem15
     //
     this.menuItem15.Index = 2;
     this.menuItem15.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem20_WordWrap,
         this.menuItem21
     });
     this.menuItem15.Text = "Format";
     //
     // menuItem20_WordWrap
     //
     this.menuItem20_WordWrap.Index = 0;
     this.menuItem20_WordWrap.Text  = "Word Wrap|Toggles the Word Wrap property";
     //
     // menuItem21
     //
     this.menuItem21.Index = 1;
     this.menuItem21.Text  = "Font...|Displays the Font dialog";
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 401);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Size     = new System.Drawing.Size(696, 24);
     this.statusBar1.TabIndex = 1;
     this.statusBar1.Text     = "Ready";
     //
     // openFileDialog1
     //
     this.openFileDialog1.Filter = "Fotran files (*.f95)|*.f95|All files (*.*)|*.*";
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.Filter = "Fortran files (*.f95)|*.f95|All files (*.*)|*.*";
     //
     // printDialog1
     //
     this.printDialog1.AllowSomePages = true;
     this.printDialog1.Document       = this.printDocument1;
     //
     // printPreviewDialog1
     //
     this.printPreviewDialog1.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog1.Document          = this.printDocument1;
     this.printPreviewDialog1.Enabled           = true;
     this.printPreviewDialog1.Icon            = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
     this.printPreviewDialog1.Location        = new System.Drawing.Point(627, 17);
     this.printPreviewDialog1.MaximumSize     = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.Name            = "printPreviewDialog1";
     this.printPreviewDialog1.Opacity         = 1;
     this.printPreviewDialog1.TransparencyKey = System.Drawing.Color.Empty;
     this.printPreviewDialog1.Visible         = false;
     //
     // pageSetupDialog1
     //
     this.pageSetupDialog1.Document = this.printDocument1;
     //
     // fontDialog1
     //
     this.fontDialog1.ShowColor = true;
     //
     // imageList1
     //
     this.imageList1.ColorDepth       = System.Windows.Forms.ColorDepth.Depth24Bit;
     this.imageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // toolBar1
     //
     this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.toolBarButton1_New,
         this.toolBarButton2_Open,
         this.toolBarButton3_Save,
         this.toolBarButton4,
         this.toolBarButton5_Cut,
         this.toolBarButton6_Copy,
         this.toolBarButton7_Paste,
         this.toolBarButton1,
         this.toolBarButton2,
         this.toolBarButton3,
         this.toolBarButton5,
         this.toolBarButton6,
         this.toolBarButton7,
         this.toolBarButton8,
         this.toolBarButton9,
         this.toolBarButton10,
         this.toolBarButton11,
         this.toolBarButton12,
         this.toolBarButton13,
         this.toolBarButton14,
         this.toolBarButton15,
         this.toolBarButton16,
         this.toolBarButton17,
         this.toolBarButton18,
         this.toolBarButton_Print,
         this.toolBarButton20
     });
     this.toolBar1.ButtonSize     = new System.Drawing.Size(16, 16);
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.ImageList      = this.imageList1;
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(696, 25);
     this.toolBar1.TabIndex       = 4;
     //
     // toolBarButton1_New
     //
     this.toolBarButton1_New.ImageIndex  = 0;
     this.toolBarButton1_New.ToolTipText = "New";
     //
     // toolBarButton2_Open
     //
     this.toolBarButton2_Open.ImageIndex  = 1;
     this.toolBarButton2_Open.ToolTipText = "Open";
     //
     // toolBarButton3_Save
     //
     this.toolBarButton3_Save.ImageIndex  = 2;
     this.toolBarButton3_Save.ToolTipText = "Save";
     //
     // toolBarButton4
     //
     this.toolBarButton4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton5_Cut
     //
     this.toolBarButton5_Cut.ImageIndex  = 4;
     this.toolBarButton5_Cut.ToolTipText = "Cut";
     //
     // toolBarButton6_Copy
     //
     this.toolBarButton6_Copy.ImageIndex  = 5;
     this.toolBarButton6_Copy.ToolTipText = "Copy";
     //
     // toolBarButton7_Paste
     //
     this.toolBarButton7_Paste.ImageIndex  = 6;
     this.toolBarButton7_Paste.ToolTipText = "Paste";
     //
     // toolBarButton1
     //
     this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     this.toolBarButton1.Text  = "comboBox1";
     //
     // toolBarButton2
     //
     this.toolBarButton2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton3
     //
     this.toolBarButton3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton5
     //
     this.toolBarButton5.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton6
     //
     this.toolBarButton6.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton7
     //
     this.toolBarButton7.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton8
     //
     this.toolBarButton8.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton9
     //
     this.toolBarButton9.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton10
     //
     this.toolBarButton10.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton11
     //
     this.toolBarButton11.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton12
     //
     this.toolBarButton12.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton13
     //
     this.toolBarButton13.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton14
     //
     this.toolBarButton14.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton15
     //
     this.toolBarButton15.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton16
     //
     this.toolBarButton16.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton17
     //
     this.toolBarButton17.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton18
     //
     this.toolBarButton18.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     this.toolBarButton18.Text  = "comboBox1";
     //
     // toolBarButton_Print
     //
     this.toolBarButton_Print.ImageIndex  = 7;
     this.toolBarButton_Print.ToolTipText = "Print";
     //
     // toolBarButton20
     //
     this.toolBarButton20.ImageIndex  = 8;
     this.toolBarButton20.ToolTipText = "Find";
     //
     // text_Box1
     //
     this.text_Box1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.text_Box1.Font          = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.text_Box1.HideSelection = false;
     this.text_Box1.Location      = new System.Drawing.Point(0, 25);
     this.text_Box1.MaxLength     = 0;
     this.text_Box1.Multiline     = true;
     this.text_Box1.Name          = "text_Box1";
     this.text_Box1.ScrollBars    = System.Windows.Forms.ScrollBars.Both;
     this.text_Box1.Size          = new System.Drawing.Size(696, 376);
     this.text_Box1.TabIndex      = 0;
     this.text_Box1.Text          = "";
     //
     // comboBox1
     //
     this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox1.Font          = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.comboBox1.Items.AddRange(new object[] {
         "Courier New",
         "Microsoft Sans Serif"
     });
     this.comboBox1.Location         = new System.Drawing.Point(150, 4);
     this.comboBox1.MaxDropDownItems = 16;
     this.comboBox1.MaxLength        = 80;
     this.comboBox1.Name             = "comboBox1";
     this.comboBox1.Size             = new System.Drawing.Size(126, 21);
     this.comboBox1.TabIndex         = 6;
     this.toolTip1.SetToolTip(this.comboBox1, "Font name");
     //
     // Form1
     //
     this.AllowDrop         = true;
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
     this.ClientSize        = new System.Drawing.Size(696, 425);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.comboBox1,
         this.text_Box1,
         this.toolBar1,
         this.statusBar1
     });
     this.Font          = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Menu          = this.mainMenu1;
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "MyNotes";
     this.ResumeLayout(false);
 }
Пример #56
0
 private void InitializeComponent()
 {
     this.btnSend    = new System.Windows.Forms.Button();
     this.txtReceive = new System.Windows.Forms.RichTextBox();
     this.txtSend    = new System.Windows.Forms.RichTextBox();
     this.fontDlg    = new System.Windows.Forms.FontDialog();
     this.btnFont    = new System.Windows.Forms.Button();
     this.lblFont    = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // btnSend
     //
     this.btnSend.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSend.Enabled   = false;
     this.btnSend.Font      = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnSend.ForeColor = System.Drawing.SystemColors.ControlText;
     this.btnSend.Location  = new System.Drawing.Point(229, 274);
     this.btnSend.Name      = "btnSend";
     this.btnSend.Size      = new System.Drawing.Size(56, 36);
     this.btnSend.TabIndex  = 3;
     this.btnSend.Text      = "&Send";
     this.btnSend.Click    += new System.EventHandler(this.btnSend_Click);
     //
     // txtReceive
     //
     this.txtReceive.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.txtReceive.Location   = new System.Drawing.Point(0, 0);
     this.txtReceive.Name       = "txtReceive";
     this.txtReceive.ReadOnly   = true;
     this.txtReceive.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical;
     this.txtReceive.Size       = new System.Drawing.Size(288, 232);
     this.txtReceive.TabIndex   = 2;
     this.txtReceive.Text       = "";
     //
     // txtSend
     //
     this.txtSend.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.txtSend.ForeColor         = System.Drawing.SystemColors.WindowText;
     this.txtSend.Location          = new System.Drawing.Point(0, 274);
     this.txtSend.Name              = "txtSend";
     this.txtSend.ScrollBars        = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical;
     this.txtSend.Size              = new System.Drawing.Size(224, 36);
     this.txtSend.TabIndex          = 0;
     this.txtSend.Text              = "";
     this.txtSend.SelectionChanged += new System.EventHandler(this.txtSend_SelectionChanged);
     this.txtSend.TextChanged      += new System.EventHandler(this.txtSend_TextChanged);
     //
     // fontDlg
     //
     this.fontDlg.ShowColor = true;
     //
     // btnFont
     //
     this.btnFont.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnFont.Location  = new System.Drawing.Point(0, 240);
     this.btnFont.Name      = "btnFont";
     this.btnFont.Size      = new System.Drawing.Size(80, 24);
     this.btnFont.TabIndex  = 1;
     this.btnFont.Text      = "Change Font";
     this.btnFont.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     this.btnFont.Click    += new System.EventHandler(this.btnFont_Click);
     //
     // lblFont
     //
     this.lblFont.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.lblFont.Location = new System.Drawing.Point(88, 240);
     this.lblFont.Name     = "lblFont";
     this.lblFont.Size     = new System.Drawing.Size(192, 32);
     this.lblFont.TabIndex = 4;
     //
     // RichTextChatForm
     //
     this.AcceptButton      = this.btnSend;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(288, 312);
     this.Controls.Add(this.lblFont);
     this.Controls.Add(this.btnFont);
     this.Controls.Add(this.txtSend);
     this.Controls.Add(this.txtReceive);
     this.Controls.Add(this.btnSend);
     this.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.Name     = "RichTextChatForm";
     this.Text     = "Rich Text Chat";
     this.Closing += new System.ComponentModel.CancelEventHandler(this.RichTextChat_Closing);
     this.Load    += new System.EventHandler(this.RichTextChat_Load);
     this.ResumeLayout(false);
 }
Пример #57
0
 /// <summary>
 /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
 /// コード エディタで変更しないでください。
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem(new string[] {
         "Rail",
         "TODO"
     }, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))));
     this.label1         = new System.Windows.Forms.Label();
     this.contextMenu    = new System.Windows.Forms.ContextMenu();
     this.menuItem1      = new System.Windows.Forms.MenuItem();
     this.menuItem2      = new System.Windows.Forms.MenuItem();
     this.menuItem_Graph = new System.Windows.Forms.MenuItem();
     this.menuItem4      = new System.Windows.Forms.MenuItem();
     this.menuItem3      = new System.Windows.Forms.MenuItem();
     this.liquidAsset    = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.debts          = new System.Windows.Forms.Label();
     this.detailView     = new System.Windows.Forms.ListView();
     this.colCategory    = new System.Windows.Forms.ColumnHeader();
     this.colSales       = new System.Windows.Forms.ColumnHeader();
     this.colCost        = new System.Windows.Forms.ColumnHeader();
     this.colBalance     = new System.Windows.Forms.ColumnHeader();
     this.tabControl     = new System.Windows.Forms.TabControl();
     this.tabPage1       = new System.Windows.Forms.TabPage();
     this.tabPage2       = new System.Windows.Forms.TabPage();
     this.tabPage3       = new System.Windows.Forms.TabPage();
     this.fontDialog     = new System.Windows.Forms.FontDialog();
     this.tabControl.SuspendLayout();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.ContextMenu = this.contextMenu;
     this.label1.Location    = new System.Drawing.Point(0, 0);
     this.label1.Name        = "label1";
     this.label1.Size        = new System.Drawing.Size(56, 26);
     this.label1.TabIndex    = 0;
     this.label1.Text        = "Funds:";
     this.label1.TextAlign   = System.Drawing.ContentAlignment.MiddleRight;
     //
     // contextMenu
     //
     this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem2,
         this.menuItem_Graph,
         this.menuItem4,
         this.menuItem3
     });
     //
     // menuItem1
     //
     this.menuItem1.Index  = 0;
     this.menuItem1.Text   = "Change &Font...";
     this.menuItem1.Click += new System.EventHandler(this.onChangeFont);
     //
     // menuItem2
     //
     this.menuItem2.Index  = 1;
     this.menuItem2.Text   = "&Edit Displayed Items...";
     this.menuItem2.Click += new System.EventHandler(this.onCustomizeGenres);
     //
     // menuItem_Graph
     //
     this.menuItem_Graph.Index = 2;
     this.menuItem_Graph.Text  = "Display &Graph";
     //
     // menuItem4
     //
     this.menuItem4.Index = 3;
     this.menuItem4.Text  = "-";
     //
     // menuItem3
     //
     this.menuItem3.Index = 4;
     this.menuItem3.Text  = "&Close";
     //
     // liquidAsset
     //
     this.liquidAsset.ContextMenu = this.contextMenu;
     this.liquidAsset.Location    = new System.Drawing.Point(56, 0);
     this.liquidAsset.Name        = "liquidAsset";
     this.liquidAsset.Size        = new System.Drawing.Size(112, 26);
     this.liquidAsset.TabIndex    = 1;
     this.liquidAsset.Text        = "100,000,000";
     this.liquidAsset.TextAlign   = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     this.label2.ContextMenu = this.contextMenu;
     this.label2.Location    = new System.Drawing.Point(168, 0);
     this.label2.Name        = "label2";
     this.label2.Size        = new System.Drawing.Size(56, 26);
     this.label2.TabIndex    = 2;
     this.label2.Text        = "Loans:";
     this.label2.TextAlign   = System.Drawing.ContentAlignment.MiddleRight;
     //
     // debts
     //
     this.debts.ContextMenu = this.contextMenu;
     this.debts.Location    = new System.Drawing.Point(224, 0);
     this.debts.Name        = "debts";
     this.debts.Size        = new System.Drawing.Size(112, 26);
     this.debts.TabIndex    = 3;
     this.debts.Text        = "100,000,000";
     this.debts.TextAlign   = System.Drawing.ContentAlignment.MiddleRight;
     //
     // detailView
     //
     this.detailView.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.detailView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.colCategory,
         this.colSales,
         this.colCost,
         this.colBalance
     });
     this.detailView.ContextMenu   = this.contextMenu;
     this.detailView.FullRowSelect = true;
     this.detailView.GridLines     = true;
     this.detailView.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.detailView.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
         listViewItem1
     });
     this.detailView.Location    = new System.Drawing.Point(0, 23);
     this.detailView.MultiSelect = false;
     this.detailView.Name        = "detailView";
     this.detailView.Size        = new System.Drawing.Size(338, 79);
     this.detailView.TabIndex    = 4;
     this.detailView.UseCompatibleStateImageBehavior = false;
     this.detailView.View = System.Windows.Forms.View.Details;
     //
     // colCategory
     //
     this.colCategory.Text  = "Category";
     this.colCategory.Width = 80;
     //
     // colSales
     //
     this.colSales.Text      = "Sales";
     this.colSales.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.colSales.Width     = 84;
     //
     // colCost
     //
     this.colCost.Text      = "Cost";
     this.colCost.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.colCost.Width     = 84;
     //
     // colBalance
     //
     this.colBalance.Text      = "Balance";
     this.colBalance.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.colBalance.Width     = 84;
     //
     // tabControl
     //
     this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.tabControl.ContextMenu = this.contextMenu;
     this.tabControl.Controls.Add(this.tabPage1);
     this.tabControl.Controls.Add(this.tabPage2);
     this.tabControl.Controls.Add(this.tabPage3);
     this.tabControl.HotTrack              = true;
     this.tabControl.Location              = new System.Drawing.Point(0, 102);
     this.tabControl.Name                  = "tabControl";
     this.tabControl.SelectedIndex         = 0;
     this.tabControl.Size                  = new System.Drawing.Size(322, 26);
     this.tabControl.TabIndex              = 5;
     this.tabControl.SelectedIndexChanged += new System.EventHandler(this.onSelectorChanged);
     //
     // tabPage1
     //
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Size     = new System.Drawing.Size(314, 0);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text     = "Today";
     //
     // tabPage2
     //
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Size     = new System.Drawing.Size(314, 0);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "This month";
     //
     // tabPage3
     //
     this.tabPage3.Location = new System.Drawing.Point(4, 22);
     this.tabPage3.Name     = "tabPage3";
     this.tabPage3.Size     = new System.Drawing.Size(314, 0);
     this.tabPage3.TabIndex = 2;
     this.tabPage3.Text     = "This year";
     //
     // AccountSummaryWindow
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(340, 126);
     this.Controls.Add(this.tabControl);
     this.Controls.Add(this.detailView);
     this.Controls.Add(this.debts);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.liquidAsset);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
     this.MinimumSize     = new System.Drawing.Size(348, 52);
     this.Name            = "AccountSummaryWindow";
     this.ShowInTaskbar   = false;
     this.SizeGripStyle   = System.Windows.Forms.SizeGripStyle.Show;
     this.Text            = "Sales Report";
     this.tabControl.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #58
0
 /// <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(MemoControl));
     this.tlbMain        = new System.Windows.Forms.ToolBar();
     this.btnAdd         = new System.Windows.Forms.ToolBarButton();
     this.btnExport      = new System.Windows.Forms.ToolBarButton();
     this.Separator1     = new System.Windows.Forms.ToolBarButton();
     this.btnBold        = new System.Windows.Forms.ToolBarButton();
     this.btnItalics     = new System.Windows.Forms.ToolBarButton();
     this.btnUnderline   = new System.Windows.Forms.ToolBarButton();
     this.Separator2     = new System.Windows.Forms.ToolBarButton();
     this.btnColour      = new System.Windows.Forms.ToolBarButton();
     this.btnFont        = new System.Windows.Forms.ToolBarButton();
     this.ToolbarImages  = new System.Windows.Forms.ImageList(this.components);
     this.statusBar1     = new System.Windows.Forms.StatusBar();
     this.dlgExport      = new System.Windows.Forms.SaveFileDialog();
     this.dlgColour      = new System.Windows.Forms.ColorDialog();
     this.dlgFont        = new System.Windows.Forms.FontDialog();
     this.rtxtResolution = new System.Windows.Forms.RichTextBox();
     this.SuspendLayout();
     //
     // tlbMain
     //
     this.tlbMain.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.tlbMain.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.btnAdd,
         this.btnExport,
         this.Separator1,
         this.btnBold,
         this.btnItalics,
         this.btnUnderline,
         this.Separator2,
         this.btnColour,
         this.btnFont
     });
     this.tlbMain.ButtonSize     = new System.Drawing.Size(48, 48);
     this.tlbMain.DropDownArrows = true;
     this.tlbMain.ImageList      = this.ToolbarImages;
     this.tlbMain.Location       = new System.Drawing.Point(0, 0);
     this.tlbMain.Name           = "tlbMain";
     this.tlbMain.ShowToolTips   = true;
     this.tlbMain.Size           = new System.Drawing.Size(544, 50);
     this.tlbMain.TabIndex       = 0;
     this.tlbMain.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.tlbMain_ButtonClick);
     //
     // btnAdd
     //
     this.btnAdd.ImageIndex  = 0;
     this.btnAdd.Text        = "&Add";
     this.btnAdd.ToolTipText = "Add a date/time stamp";
     //
     // btnExport
     //
     this.btnExport.ImageIndex  = 1;
     this.btnExport.Text        = "&Export ...";
     this.btnExport.ToolTipText = "Export to an RTF file.";
     //
     // Separator1
     //
     this.Separator1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // btnBold
     //
     this.btnBold.ImageIndex = 2;
     this.btnBold.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     this.btnBold.Text       = "&Bold";
     //
     // btnItalics
     //
     this.btnItalics.ImageIndex = 3;
     this.btnItalics.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     this.btnItalics.Text       = "&Italics";
     //
     // btnUnderline
     //
     this.btnUnderline.ImageIndex = 4;
     this.btnUnderline.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     this.btnUnderline.Text       = "&Underline";
     //
     // Separator2
     //
     this.Separator2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // btnColour
     //
     this.btnColour.ImageIndex = 5;
     this.btnColour.Text       = "&Colour ...";
     //
     // btnFont
     //
     this.btnFont.ImageIndex = 6;
     this.btnFont.Text       = "Font ...";
     //
     // ToolbarImages
     //
     this.ToolbarImages.ColorDepth       = System.Windows.Forms.ColorDepth.Depth32Bit;
     this.ToolbarImages.ImageSize        = new System.Drawing.Size(24, 24);
     this.ToolbarImages.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ToolbarImages.ImageStream")));
     this.ToolbarImages.TransparentColor = System.Drawing.Color.Transparent;
     //
     // statusBar1
     //
     this.statusBar1.Location   = new System.Drawing.Point(0, 432);
     this.statusBar1.Name       = "statusBar1";
     this.statusBar1.Size       = new System.Drawing.Size(544, 24);
     this.statusBar1.SizingGrip = false;
     this.statusBar1.TabIndex   = 2;
     //
     // dlgExport
     //
     this.dlgExport.DefaultExt = "rtf";
     this.dlgExport.Filter     = "Rich text files (*.rtf)|*.rtf|All files (*.*)|*.*";
     //
     // rtxtResolution
     //
     this.rtxtResolution.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.rtxtResolution.Location = new System.Drawing.Point(0, 50);
     this.rtxtResolution.Name     = "rtxtResolution";
     this.rtxtResolution.Size     = new System.Drawing.Size(544, 382);
     this.rtxtResolution.TabIndex = 3;
     this.rtxtResolution.Text     = "";
     //
     // MemoControl
     //
     this.Controls.Add(this.rtxtResolution);
     this.Controls.Add(this.statusBar1);
     this.Controls.Add(this.tlbMain);
     this.Name = "MemoControl";
     this.Size = new System.Drawing.Size(544, 456);
     this.ResumeLayout(false);
 }
Пример #59
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(RichTextEditor));
     this.mainImageList              = new System.Windows.Forms.ImageList(this.components);
     this.toolbarPanel               = new System.Windows.Forms.Panel();
     this.editorToolbar              = new System.Windows.Forms.ToolBar();
     this.wordExportToolButton       = new System.Windows.Forms.ToolBarButton();
     this.printToolButton            = new System.Windows.Forms.ToolBarButton();
     this.printPreviewToolButton     = new System.Windows.Forms.ToolBarButton();
     this.saveAsToolButton           = new System.Windows.Forms.ToolBarButton();
     this.emailToolButton            = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton5             = new System.Windows.Forms.ToolBarButton();
     this.boldToolButton             = new System.Windows.Forms.ToolBarButton();
     this.underlineToolButton        = new System.Windows.Forms.ToolBarButton();
     this.italicToolButton           = new System.Windows.Forms.ToolBarButton();
     this.fontToolButton             = new System.Windows.Forms.ToolBarButton();
     this.formatingSeperator1        = new System.Windows.Forms.ToolBarButton();
     this.leftAlignToolButton        = new System.Windows.Forms.ToolBarButton();
     this.centerAlignToolButton      = new System.Windows.Forms.ToolBarButton();
     this.rightAlignToolButton       = new System.Windows.Forms.ToolBarButton();
     this.unnumberedBulletToolButton = new System.Windows.Forms.ToolBarButton();
     this.numberedBulletToolButton   = new System.Windows.Forms.ToolBarButton();
     this.bulletsSeperator           = new System.Windows.Forms.ToolBarButton();
     this.findToolButton             = new System.Windows.Forms.ToolBarButton();
     this.findNextToolButton         = new System.Windows.Forms.ToolBarButton();
     this.findSeperator              = new System.Windows.Forms.ToolBarButton();
     this.undoToolButton             = new System.Windows.Forms.ToolBarButton();
     this.redoToolButton             = new System.Windows.Forms.ToolBarButton();
     this.editingSeperator1          = new System.Windows.Forms.ToolBarButton();
     this.cutToolButton              = new System.Windows.Forms.ToolBarButton();
     this.copyToolButton             = new System.Windows.Forms.ToolBarButton();
     this.pasteToolButton            = new System.Windows.Forms.ToolBarButton();
     this.editingSeperator2          = new System.Windows.Forms.ToolBarButton();
     this.hyperLinkToolButton        = new System.Windows.Forms.ToolBarButton();
     this.spellCheckToolButton       = new System.Windows.Forms.ToolBarButton();
     this.clearToolButton            = new System.Windows.Forms.ToolBarButton();
     this.insertDateToolButton       = new System.Windows.Forms.ToolBarButton();
     this.wordwrapToolButton         = new System.Windows.Forms.ToolBarButton();
     this.panel2           = new System.Windows.Forms.Panel();
     this.innerRichTextBox = new System.Windows.Forms.RichTextBox();
     this.splitter1        = new System.Windows.Forms.Splitter();
     this.fontDialog1      = new System.Windows.Forms.FontDialog();
     this.colorDialog1     = new System.Windows.Forms.ColorDialog();
     this.saveFileDialog1  = new System.Windows.Forms.SaveFileDialog();
     this.contextMenu1     = new System.Windows.Forms.ContextMenu();
     this.toolbarPanel.SuspendLayout();
     this.panel2.SuspendLayout();
     this.SuspendLayout();
     //
     // mainImageList
     //
     this.mainImageList.ImageSize        = new System.Drawing.Size(16, 16);
     this.mainImageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("mainImageList.ImageStream")));
     this.mainImageList.TransparentColor = System.Drawing.Color.Transparent;
     //
     // toolbarPanel
     //
     this.toolbarPanel.Controls.Add(this.editorToolbar);
     this.toolbarPanel.Dock     = System.Windows.Forms.DockStyle.Top;
     this.toolbarPanel.Location = new System.Drawing.Point(0, 0);
     this.toolbarPanel.Name     = "toolbarPanel";
     this.toolbarPanel.Size     = new System.Drawing.Size(432, 56);
     this.toolbarPanel.TabIndex = 2;
     //
     // editorToolbar
     //
     this.editorToolbar.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.editorToolbar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.wordExportToolButton,
         this.printToolButton,
         this.printPreviewToolButton,
         this.saveAsToolButton,
         this.emailToolButton,
         this.toolBarButton5,
         this.boldToolButton,
         this.underlineToolButton,
         this.italicToolButton,
         this.fontToolButton,
         this.formatingSeperator1,
         this.leftAlignToolButton,
         this.centerAlignToolButton,
         this.rightAlignToolButton,
         this.unnumberedBulletToolButton,
         this.numberedBulletToolButton,
         this.bulletsSeperator,
         this.findToolButton,
         this.findNextToolButton,
         this.findSeperator,
         this.undoToolButton,
         this.redoToolButton,
         this.editingSeperator1,
         this.cutToolButton,
         this.copyToolButton,
         this.pasteToolButton,
         this.editingSeperator2,
         this.hyperLinkToolButton,
         this.spellCheckToolButton,
         this.clearToolButton,
         this.insertDateToolButton,
         this.wordwrapToolButton
     });
     this.editorToolbar.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.editorToolbar.DropDownArrows = true;
     this.editorToolbar.ImageList      = this.mainImageList;
     this.editorToolbar.Location       = new System.Drawing.Point(0, 0);
     this.editorToolbar.Name           = "editorToolbar";
     this.editorToolbar.ShowToolTips   = true;
     this.editorToolbar.Size           = new System.Drawing.Size(432, 72);
     this.editorToolbar.TabIndex       = 2;
     this.editorToolbar.SizeChanged   += new System.EventHandler(this.editorToolbar_SizeChanged);
     this.editorToolbar.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.editorToolbar_ButtonClick);
     //
     // wordExportToolButton
     //
     this.wordExportToolButton.ImageIndex  = 31;
     this.wordExportToolButton.ToolTipText = "Edit this document to Microsoft Word";
     //
     // printToolButton
     //
     this.printToolButton.ImageIndex  = 1;
     this.printToolButton.ToolTipText = "Print";
     //
     // printPreviewToolButton
     //
     this.printPreviewToolButton.ImageIndex  = 0;
     this.printPreviewToolButton.ToolTipText = "Print Preview";
     //
     // saveAsToolButton
     //
     this.saveAsToolButton.ImageIndex  = 32;
     this.saveAsToolButton.ToolTipText = "Save As";
     //
     // emailToolButton
     //
     this.emailToolButton.ImageIndex = 2;
     //
     // toolBarButton5
     //
     this.toolBarButton5.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // boldToolButton
     //
     this.boldToolButton.ImageIndex = 4;
     this.boldToolButton.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     //
     // underlineToolButton
     //
     this.underlineToolButton.ImageIndex = 27;
     this.underlineToolButton.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     //
     // italicToolButton
     //
     this.italicToolButton.ImageIndex = 14;
     this.italicToolButton.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     //
     // fontToolButton
     //
     this.fontToolButton.ImageIndex = 12;
     //
     // formatingSeperator1
     //
     this.formatingSeperator1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // leftAlignToolButton
     //
     this.leftAlignToolButton.ImageIndex = 16;
     this.leftAlignToolButton.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     //
     // centerAlignToolButton
     //
     this.centerAlignToolButton.ImageIndex = 30;
     this.centerAlignToolButton.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     //
     // rightAlignToolButton
     //
     this.rightAlignToolButton.ImageIndex = 23;
     this.rightAlignToolButton.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     //
     // unnumberedBulletToolButton
     //
     this.unnumberedBulletToolButton.ImageIndex = 19;
     this.unnumberedBulletToolButton.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     //
     // numberedBulletToolButton
     //
     this.numberedBulletToolButton.ImageIndex = 20;
     //
     // bulletsSeperator
     //
     this.bulletsSeperator.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // findToolButton
     //
     this.findToolButton.ImageIndex = 3;
     //
     // findNextToolButton
     //
     this.findNextToolButton.ImageIndex = 11;
     //
     // findSeperator
     //
     this.findSeperator.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // undoToolButton
     //
     this.undoToolButton.ImageIndex  = 28;
     this.undoToolButton.Style       = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     this.undoToolButton.ToolTipText = "Undo last operation";
     //
     // redoToolButton
     //
     this.redoToolButton.ImageIndex  = 22;
     this.redoToolButton.Style       = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     this.redoToolButton.ToolTipText = "Redo last operation";
     //
     // editingSeperator1
     //
     this.editingSeperator1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // cutToolButton
     //
     this.cutToolButton.ImageIndex = 9;
     this.cutToolButton.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     //
     // copyToolButton
     //
     this.copyToolButton.ImageIndex = 8;
     this.copyToolButton.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     //
     // pasteToolButton
     //
     this.pasteToolButton.ImageIndex = 21;
     this.pasteToolButton.Style      = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     //
     // editingSeperator2
     //
     this.editingSeperator2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // hyperLinkToolButton
     //
     this.hyperLinkToolButton.ImageIndex = 29;
     //
     // spellCheckToolButton
     //
     this.spellCheckToolButton.ImageIndex = 25;
     //
     // clearToolButton
     //
     this.clearToolButton.ImageIndex  = 17;
     this.clearToolButton.ToolTipText = "Remove everything from this document";
     //
     // insertDateToolButton
     //
     this.insertDateToolButton.ImageIndex = 10;
     //
     // wordwrapToolButton
     //
     this.wordwrapToolButton.ImageIndex  = 33;
     this.wordwrapToolButton.Style       = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     this.wordwrapToolButton.ToolTipText = "Turn on/off wordwrap";
     //
     // panel2
     //
     this.panel2.Controls.Add(this.innerRichTextBox);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel2.Location = new System.Drawing.Point(0, 57);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(432, 143);
     this.panel2.TabIndex = 3;
     //
     // innerRichTextBox
     //
     this.innerRichTextBox.AcceptsTab        = true;
     this.innerRichTextBox.AutoWordSelection = true;
     this.innerRichTextBox.BorderStyle       = System.Windows.Forms.BorderStyle.FixedSingle;
     this.innerRichTextBox.Dock                = System.Windows.Forms.DockStyle.Fill;
     this.innerRichTextBox.HideSelection       = false;
     this.innerRichTextBox.Location            = new System.Drawing.Point(0, 0);
     this.innerRichTextBox.Name                = "innerRichTextBox";
     this.innerRichTextBox.ShowSelectionMargin = true;
     this.innerRichTextBox.Size                = new System.Drawing.Size(432, 143);
     this.innerRichTextBox.TabIndex            = 2;
     this.innerRichTextBox.Text                = "richTextBox1";
     this.innerRichTextBox.WordWrap            = false;
     this.innerRichTextBox.ReadOnlyChanged    += new System.EventHandler(this.innerRichTextBox_ReadOnlyChanged);
     this.innerRichTextBox.LinkClicked        += new System.Windows.Forms.LinkClickedEventHandler(this.innerRichTextBox_LinkClicked);
     this.innerRichTextBox.SelectionChanged   += new System.EventHandler(this.innerRichTextBox_SelectionChanged);
     //
     // splitter1
     //
     this.splitter1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.splitter1.Location = new System.Drawing.Point(0, 56);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(432, 1);
     this.splitter1.TabIndex = 4;
     this.splitter1.TabStop  = false;
     //
     // fontDialog1
     //
     this.fontDialog1.ShowApply = true;
     this.fontDialog1.ShowColor = true;
     this.fontDialog1.Apply    += new System.EventHandler(this.fontDialog1_Apply);
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.DefaultExt = "rtf";
     this.saveFileDialog1.Filter     = "Rich Text File (*.rtf)|*.rtf|Rich Text File Without Ole Objects (*.rtf)|*.rtf|Tex" +
                                       "t File (*.txt)|*.txt|Text File Without Ole Objects (*.txt)|*.txt|ANSI Text File " +
                                       "(*.txt)|*.txt|All Files|*.*";
     this.saveFileDialog1.Title = "Save This Document As";
     //
     // RichTextEditor
     //
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.toolbarPanel);
     this.Name = "RichTextEditor";
     this.Size = new System.Drawing.Size(432, 200);
     this.toolbarPanel.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #60
0
 /// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmmain));
     this.mainMenu1         = new System.Windows.Forms.MainMenu(this.components);
     this.mnuFile           = new System.Windows.Forms.MenuItem();
     this.mnuNew            = new System.Windows.Forms.MenuItem();
     this.mnuOpen           = new System.Windows.Forms.MenuItem();
     this.mnuSave           = new System.Windows.Forms.MenuItem();
     this.mnuSaveAs         = new System.Windows.Forms.MenuItem();
     this.menuItem5         = new System.Windows.Forms.MenuItem();
     this.mnuExit           = new System.Windows.Forms.MenuItem();
     this.mnuEdit           = new System.Windows.Forms.MenuItem();
     this.mnuCut            = new System.Windows.Forms.MenuItem();
     this.mnuCopy           = new System.Windows.Forms.MenuItem();
     this.mnuPaste          = new System.Windows.Forms.MenuItem();
     this.mnuDelete         = new System.Windows.Forms.MenuItem();
     this.menuItem12        = new System.Windows.Forms.MenuItem();
     this.mnuSelectAll      = new System.Windows.Forms.MenuItem();
     this.menuItem1         = new System.Windows.Forms.MenuItem();
     this.mnuFind           = new System.Windows.Forms.MenuItem();
     this.mnuPrint          = new System.Windows.Forms.MenuItem();
     this.mnuPicture        = new System.Windows.Forms.MenuItem();
     this.mnuFormat         = new System.Windows.Forms.MenuItem();
     this.mnuFont           = new System.Windows.Forms.MenuItem();
     this.mnuColor          = new System.Windows.Forms.MenuItem();
     this.mnuWindow         = new System.Windows.Forms.MenuItem();
     this.mnuArrangeIcons   = new System.Windows.Forms.MenuItem();
     this.mnuCascade        = new System.Windows.Forms.MenuItem();
     this.mnuTileHorizontal = new System.Windows.Forms.MenuItem();
     this.mnuTileVertical   = new System.Windows.Forms.MenuItem();
     this.mnuHelp           = new System.Windows.Forms.MenuItem();
     this.mnuAbout          = new System.Windows.Forms.MenuItem();
     this.openFileDialog1   = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog1   = new System.Windows.Forms.SaveFileDialog();
     this.fontDialog1       = new System.Windows.Forms.FontDialog();
     this.colorDialog1      = new System.Windows.Forms.ColorDialog();
     this.toolBarMain       = new System.Windows.Forms.ToolBar();
     this.tbNew             = new System.Windows.Forms.ToolBarButton();
     this.tbOpen            = new System.Windows.Forms.ToolBarButton();
     this.tbSave            = new System.Windows.Forms.ToolBarButton();
     this.tbCut             = new System.Windows.Forms.ToolBarButton();
     this.tbCopy            = new System.Windows.Forms.ToolBarButton();
     this.tbPaste           = new System.Windows.Forms.ToolBarButton();
     this.tbLeft            = new System.Windows.Forms.ToolBarButton();
     this.tbCenter          = new System.Windows.Forms.ToolBarButton();
     this.tbRight           = new System.Windows.Forms.ToolBarButton();
     this.tbMoon            = new System.Windows.Forms.ToolBarButton();
     this.tbSun             = new System.Windows.Forms.ToolBarButton();
     this.imageList1        = new System.Windows.Forms.ImageList(this.components);
     this.printDialog1      = new System.Windows.Forms.PrintDialog();
     this.printDocument1    = new System.Drawing.Printing.PrintDocument();
     this.pictureBox1       = new System.Windows.Forms.PictureBox();
     this.openFileDialog2   = new System.Windows.Forms.OpenFileDialog();
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuFile,
         this.mnuEdit,
         this.mnuFormat,
         this.mnuWindow,
         this.mnuHelp
     });
     //
     // mnuFile
     //
     this.mnuFile.Index = 0;
     this.mnuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuNew,
         this.mnuOpen,
         this.mnuSave,
         this.mnuSaveAs,
         this.menuItem5,
         this.mnuExit
     });
     this.mnuFile.Text = "&Файл";
     //
     // mnuNew
     //
     this.mnuNew.Index    = 0;
     this.mnuNew.Shortcut = System.Windows.Forms.Shortcut.CtrlN;
     this.mnuNew.Text     = "&Новый";
     this.mnuNew.Click   += new System.EventHandler(this.mnuNew_Click);
     //
     // mnuOpen
     //
     this.mnuOpen.Index    = 1;
     this.mnuOpen.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
     this.mnuOpen.Text     = "&Открыть";
     this.mnuOpen.Click   += new System.EventHandler(this.mnuOpen_Click);
     //
     // mnuSave
     //
     this.mnuSave.Index    = 2;
     this.mnuSave.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
     this.mnuSave.Text     = "&Сохранить";
     this.mnuSave.Click   += new System.EventHandler(this.mnuSave_Click);
     //
     // mnuSaveAs
     //
     this.mnuSaveAs.Index    = 3;
     this.mnuSaveAs.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftS;
     this.mnuSaveAs.Text     = "Сохранить &как";
     this.mnuSaveAs.Click   += new System.EventHandler(this.mnuSaveAs_Click);
     //
     // menuItem5
     //
     this.menuItem5.Index = 4;
     this.menuItem5.Text  = "-";
     //
     // mnuExit
     //
     this.mnuExit.Index    = 5;
     this.mnuExit.Shortcut = System.Windows.Forms.Shortcut.AltF4;
     this.mnuExit.Text     = "&Выйти";
     this.mnuExit.Click   += new System.EventHandler(this.mnuExit_Click);
     //
     // mnuEdit
     //
     this.mnuEdit.Index = 1;
     this.mnuEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuCut,
         this.mnuCopy,
         this.mnuPaste,
         this.mnuDelete,
         this.menuItem12,
         this.mnuSelectAll,
         this.menuItem1,
         this.mnuFind,
         this.mnuPrint,
         this.mnuPicture
     });
     this.mnuEdit.Text = "&Изменить";
     //
     // mnuCut
     //
     this.mnuCut.Index    = 0;
     this.mnuCut.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
     this.mnuCut.Text     = "Вырезать&";
     this.mnuCut.Click   += new System.EventHandler(this.mnuCut_Click);
     //
     // mnuCopy
     //
     this.mnuCopy.Index    = 1;
     this.mnuCopy.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
     this.mnuCopy.Text     = "&Копировать";
     this.mnuCopy.Click   += new System.EventHandler(this.mnuCopy_Click);
     //
     // mnuPaste
     //
     this.mnuPaste.Index    = 2;
     this.mnuPaste.Shortcut = System.Windows.Forms.Shortcut.CtrlV;
     this.mnuPaste.Text     = "&Вставить";
     this.mnuPaste.Click   += new System.EventHandler(this.mnuPaste_Click);
     //
     // mnuDelete
     //
     this.mnuDelete.Index    = 3;
     this.mnuDelete.Shortcut = System.Windows.Forms.Shortcut.Del;
     this.mnuDelete.Text     = "&Удалить";
     this.mnuDelete.Click   += new System.EventHandler(this.mnuDelete_Click);
     //
     // menuItem12
     //
     this.menuItem12.Index = 4;
     this.menuItem12.Text  = "-";
     //
     // mnuSelectAll
     //
     this.mnuSelectAll.Index    = 5;
     this.mnuSelectAll.Shortcut = System.Windows.Forms.Shortcut.CtrlA;
     this.mnuSelectAll.Text     = "&Выбрать все";
     this.mnuSelectAll.Click   += new System.EventHandler(this.mnuSelectAll_Click);
     //
     // menuItem1
     //
     this.menuItem1.Index = 6;
     this.menuItem1.Text  = "-";
     //
     // mnuFind
     //
     this.mnuFind.Index    = 7;
     this.mnuFind.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
     this.mnuFind.Text     = "&Поиск";
     this.mnuFind.Click   += new System.EventHandler(this.mnuFind_Click);
     //
     // mnuPrint
     //
     this.mnuPrint.Index  = 8;
     this.mnuPrint.Text   = "Печать";
     this.mnuPrint.Click += new System.EventHandler(this.mnuPrint_Click_1);
     //
     // mnuPicture
     //
     this.mnuPicture.Index  = 9;
     this.mnuPicture.Text   = "Вставить изображение";
     this.mnuPicture.Click += new System.EventHandler(this.mnuPicture_Click);
     //
     // mnuFormat
     //
     this.mnuFormat.Index = 2;
     this.mnuFormat.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuFont,
         this.mnuColor
     });
     this.mnuFormat.Text = "Ф&ормат";
     //
     // mnuFont
     //
     this.mnuFont.Index  = 0;
     this.mnuFont.Text   = "Шрифт...";
     this.mnuFont.Click += new System.EventHandler(this.mnuFont_Click);
     //
     // mnuColor
     //
     this.mnuColor.Index  = 1;
     this.mnuColor.Text   = "Цвет...";
     this.mnuColor.Click += new System.EventHandler(this.mnuColor_Click);
     //
     // mnuWindow
     //
     this.mnuWindow.Index = 3;
     this.mnuWindow.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuArrangeIcons,
         this.mnuCascade,
         this.mnuTileHorizontal,
         this.mnuTileVertical
     });
     this.mnuWindow.Text = "&Окно";
     //
     // mnuArrangeIcons
     //
     this.mnuArrangeIcons.Index   = 0;
     this.mnuArrangeIcons.MdiList = true;
     this.mnuArrangeIcons.Text    = "Отсоединить иконки";
     //
     // mnuCascade
     //
     this.mnuCascade.Index  = 1;
     this.mnuCascade.Text   = "Каскадно";
     this.mnuCascade.Click += new System.EventHandler(this.mnuCascade_Click);
     //
     // mnuTileHorizontal
     //
     this.mnuTileHorizontal.Index  = 2;
     this.mnuTileHorizontal.Text   = "Страничка горизонтально";
     this.mnuTileHorizontal.Click += new System.EventHandler(this.mnuTileHorizontal_Click);
     //
     // mnuTileVertical
     //
     this.mnuTileVertical.Index  = 3;
     this.mnuTileVertical.Text   = "Страничка вертикально";
     this.mnuTileVertical.Click += new System.EventHandler(this.mnuTileVertical_Click);
     //
     // mnuHelp
     //
     this.mnuHelp.Index = 4;
     this.mnuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuAbout
     });
     this.mnuHelp.Text = "?";
     //
     // mnuAbout
     //
     this.mnuAbout.Index  = 0;
     this.mnuAbout.Text   = "О программе...";
     this.mnuAbout.Click += new System.EventHandler(this.mnuAbout_Click);
     //
     // openFileDialog1
     //
     this.openFileDialog1.FileName = "Текстовые файлы";
     this.openFileDialog1.Filter   = "Text Files (*.txt)|*.txt|All Files(*.*)|*.*";
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.FileName = "Текстовые файлы";
     this.saveFileDialog1.Filter   = "Text Files (*.txt)|*.txt|All Files(*.*)|*.*";
     //
     // toolBarMain
     //
     this.toolBarMain.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.tbNew,
         this.tbOpen,
         this.tbSave,
         this.tbCut,
         this.tbCopy,
         this.tbPaste,
         this.tbLeft,
         this.tbCenter,
         this.tbRight,
         this.tbMoon,
         this.tbSun
     });
     this.toolBarMain.DropDownArrows = true;
     this.toolBarMain.ImageList      = this.imageList1;
     this.toolBarMain.Location       = new System.Drawing.Point(0, 0);
     this.toolBarMain.Name           = "toolBarMain";
     this.toolBarMain.ShowToolTips   = true;
     this.toolBarMain.Size           = new System.Drawing.Size(477, 28);
     this.toolBarMain.TabIndex       = 1;
     this.toolBarMain.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBarMain_ButtonClick);
     //
     // tbNew
     //
     this.tbNew.ImageIndex  = 0;
     this.tbNew.Name        = "tbNew";
     this.tbNew.ToolTipText = "Создать";
     //
     // tbOpen
     //
     this.tbOpen.ImageIndex  = 1;
     this.tbOpen.Name        = "tbOpen";
     this.tbOpen.ToolTipText = "Открыть";
     //
     // tbSave
     //
     this.tbSave.ImageIndex  = 2;
     this.tbSave.Name        = "tbSave";
     this.tbSave.ToolTipText = "Сохранить";
     //
     // tbCut
     //
     this.tbCut.ImageIndex  = 3;
     this.tbCut.Name        = "tbCut";
     this.tbCut.ToolTipText = "Вырезать";
     //
     // tbCopy
     //
     this.tbCopy.ImageIndex  = 4;
     this.tbCopy.Name        = "tbCopy";
     this.tbCopy.ToolTipText = "Копировать";
     //
     // tbPaste
     //
     this.tbPaste.ImageIndex  = 5;
     this.tbPaste.Name        = "tbPaste";
     this.tbPaste.ToolTipText = "Вставить";
     //
     // tbLeft
     //
     this.tbLeft.ImageIndex  = 6;
     this.tbLeft.Name        = "tbLeft";
     this.tbLeft.ToolTipText = "По левому краю";
     //
     // tbCenter
     //
     this.tbCenter.ImageIndex  = 7;
     this.tbCenter.Name        = "tbCenter";
     this.tbCenter.ToolTipText = "По центру";
     //
     // tbRight
     //
     this.tbRight.ImageIndex  = 8;
     this.tbRight.Name        = "tbRight";
     this.tbRight.ToolTipText = "По правому краю";
     //
     // tbMoon
     //
     this.tbMoon.ImageIndex  = 9;
     this.tbMoon.Name        = "tbMoon";
     this.tbMoon.ToolTipText = "Темный фон";
     //
     // tbSun
     //
     this.tbSun.ImageIndex  = 10;
     this.tbSun.Name        = "tbSun";
     this.tbSun.ToolTipText = "Светлый фон";
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "");
     this.imageList1.Images.SetKeyName(1, "");
     this.imageList1.Images.SetKeyName(2, "");
     this.imageList1.Images.SetKeyName(3, "");
     this.imageList1.Images.SetKeyName(4, "");
     this.imageList1.Images.SetKeyName(5, "");
     this.imageList1.Images.SetKeyName(6, "Left.jpg");
     this.imageList1.Images.SetKeyName(7, "Center.jpg");
     this.imageList1.Images.SetKeyName(8, "Right.jpg");
     this.imageList1.Images.SetKeyName(9, "Moon.jpg");
     this.imageList1.Images.SetKeyName(10, "Sun.jpg");
     //
     // printDialog1
     //
     this.printDialog1.Document    = this.printDocument1;
     this.printDialog1.UseEXDialog = true;
     //
     // pictureBox1
     //
     this.pictureBox1.Location = new System.Drawing.Point(0, 34);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(477, 295);
     this.pictureBox1.TabIndex = 3;
     this.pictureBox1.TabStop  = false;
     this.pictureBox1.Visible  = false;
     //
     // openFileDialog2
     //
     this.openFileDialog2.FileName = "openFileDialog2";
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4);
     //
     // frmmain
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(477, 331);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.toolBarMain);
     this.Icon           = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.IsMdiContainer = true;
     this.Menu           = this.mainMenu1;
     this.Name           = "frmmain";
     this.Text           = "Мокрый Soft";
     this.WindowState    = System.Windows.Forms.FormWindowState.Maximized;
     this.Load          += new System.EventHandler(this.frmmain_Load);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }