コード例 #1
0
        void tb_MouseUp(object sender, MouseEventArgs e)
        {
            Control control = (Control)sender;
            double  diff    = DateTime.Now.Subtract(LastTimeEntered).TotalMilliseconds;

            if (control is TextBox)
            {
                TextBox textBox = (TextBox)control;

                if (diff < 200 && textBox.SelectionLength == 0)
                {
                    AlreadyFocused[textBox] = true;
                    textBox.SelectAll();
                }
            }
            else if (control is ActiproSoftware.SyntaxEditor.SyntaxEditor)
            {
                ActiproSoftware.SyntaxEditor.SyntaxEditor editor = (ActiproSoftware.SyntaxEditor.SyntaxEditor)control;

                if (diff < 200 && editor.SelectedView.SelectedText.Length == 0)
                {
                    AlreadyFocused[editor] = true;
                    editor.SelectedView.Selection.SelectAll();
                }
            }
            else
            {
                throw new NotImplementedException("Control-type not handled yet: " + control.GetType().FullName);
            }
        }
コード例 #2
0
 private void listResults_DoubleClick(object sender, EventArgs e)
 {
     if (listResults.SelectedItems.Count > 0)
     {
         FunctionInfo function = (FunctionInfo)listResults.SelectedItems[0].Tag;
         Controller.Instance.MainForm.ShowFunction(function, null);
         ucFunction functionScreen = Controller.Instance.MainForm.UcFunctions.GetCurrentlyDisplayedFunctionPage();
         ActiproSoftware.SyntaxEditor.SyntaxEditor editor = functionScreen.syntaxEditor1;
         editor.SelectedView.Selection.StartOffset = int.Parse(listResults.SelectedItems[0].SubItems[1].Text);
         editor.SelectedView.Selection.EndOffset   = int.Parse(listResults.SelectedItems[0].SubItems[1].Text) + int.Parse(listResults.SelectedItems[0].SubItems[2].Text);
     }
 }
コード例 #3
0
        public void LoadColorData(ActiproSoftware.SyntaxEditor.SyntaxEditor SyntaxEd)
        {
            SyntaxEd.Document.LoadLanguageFromXml(System.Windows.Forms.Application.StartupPath + "\\highlight.bin", 5000);
            //SyntaxEd.Document.LoadLanguageFromXml(System.Windows.Forms.Application.StartupPath + "\\highlight.xml", 0);
            //SyntaxEd.Document.SaveLanguageToXml(System.Windows.Forms.Application.StartupPath + "\\highlight.bin", 5000);

            SyntaxEd.Document.Language.IsUpdating = true;

            IEnumerator enumer = SyntaxEd.Document.Language.HighlightingStyles.GetEnumerator();

            while (enumer.MoveNext())
            {
                string key = (enumer.Current as ActiproSoftware.SyntaxEditor.HighlightingStyle).Key;
                if (colors.Contains(key))
                {
                    HighlightEntry he = (HighlightEntry)colors[key];

                    SyntaxEd.Document.Language.HighlightingStyles[key].BackColor = he.BackColor;
                    SyntaxEd.Document.Language.HighlightingStyles[key].ForeColor = he.ForeColor;
                    SyntaxEd.Document.Language.HighlightingStyles[key].Bold      = he.HighlightFont.Bold;
                    SyntaxEd.Document.Language.HighlightingStyles[key].Italic    = he.HighlightFont.Italic;
                    SyntaxEd.Document.Language.HighlightingStyles[key].Underline = he.HighlightFont.Underline;
                }
            }


            SyntaxEd.Font = (colors["DefaultStyle"] as HighlightEntry).HighlightFont;
            SyntaxEd.Document.Language.BackColor = (colors["DefaultStyle"] as HighlightEntry).BackColor;

            SyntaxEd.TextAreaBackgroundFill         = new ActiproSoftware.Drawing.SolidColorBackgroundFill((colors["DefaultStyle"] as HighlightEntry).BackColor);
            SyntaxEd.LineNumberMarginBackgroundFill = new ActiproSoftware.Drawing.SolidColorBackgroundFill((colors["_LineNumbers"] as HighlightEntry).BackColor);
            SyntaxEd.LineNumberMarginForeColor      = (colors["_LineNumbers"] as HighlightEntry).ForeColor;
            SyntaxEd.LineNumberMarginFont           = (colors["_LineNumbers"] as HighlightEntry).HighlightFont;
            SyntaxEd.LineNumberMarginBorderColor    = (colors["_LineNumbersBorder"] as HighlightEntry).ForeColor;
            SyntaxEd.IndentationGuideColor          = (colors["_IndentGuidelines"] as HighlightEntry).ForeColor;

            SyntaxEd.SelectionMarginBackgroundFill = new ActiproSoftware.Drawing.SolidColorBackgroundFill((colors["DefaultStyle"] as HighlightEntry).BackColor);

            SyntaxEd.Document.Language.IsUpdating = false;

            SyntaxEd.VerticalScrollBarHintEnabled = this.bScrollHint;
            SyntaxEd.WordWrap = (this.b_Ed_Wordwrap == true) ? ActiproSoftware.SyntaxEditor.WordWrapType.Word : ActiproSoftware.SyntaxEditor.WordWrapType.None;
            SyntaxEd.LineNumberMarginVisible    = this.b_Ed_ShowLines;
            SyntaxEd.WhitespaceSpacesVisible    = this.b_Ed_ShowWhitespace;
            SyntaxEd.WhitespaceLineEndsVisible  = this.b_Ed_ShowNewline;
            SyntaxEd.WhitespaceTabsVisible      = this.b_Ed_ShowTabs;
            SyntaxEd.BracketHighlightingVisible = this.b_Ed_BracketHighlight;
            SyntaxEd.Document.SpacesInTab       = this.i_Ed_TabSize;
            SyntaxEd.ConvertTabsToSpaces        = this.b_Ed_ConvertTabsToSpaces;
            SyntaxEd.IndentationGuidesVisible   = this.b_Ed_IndentGuides;
        }
コード例 #4
0
        private void MarkErrorWord(ActiproSoftware.SyntaxEditor.SyntaxEditor editor, int lineNumber, int characterPos, string message)
        {
            //string text = editor.Document.Lines[lineNumber].Text;
            //string preceedingText = characterPos <= compileText.Length ? compileText.Substring(0, characterPos) : "";

            ActiproSoftware.SyntaxEditor.DocumentPosition position = new ActiproSoftware.SyntaxEditor.DocumentPosition(lineNumber, characterPos);
            int          offset = editor.Document.PositionToOffset(position);
            DynamicToken token  = (DynamicToken)editor.Document.Tokens.GetTokenAtOffset(offset);

            ActiproSoftware.SyntaxEditor.SpanIndicator indicator = new ActiproSoftware.SyntaxEditor.WaveLineSpanIndicator("ErrorIndicator", Color.Red);
            indicator.Tag = message;
            ActiproSoftware.SyntaxEditor.SpanIndicatorLayer indicatorLayer = new ActiproSoftware.SyntaxEditor.SpanIndicatorLayer("kk", 1);
            editor.Document.SpanIndicatorLayers.Add(indicatorLayer);
            int startOffset = Math.Min(token.StartOffset, indicatorLayer.Document.Length - 1);
            int length      = Math.Max(token.Length, 1);

            indicatorLayer.Add(indicator, startOffset, length);

            syntaxEditor1.Document.Lines[lineNumber].BackColor = Slyce.Common.Colors.BackgroundColor;
            syntaxEditor1.SelectedView.GoToLine(lineNumber, (lineNumber > 2) ? 2 : 0); // Allow 2 blank lines above selection
        }
コード例 #5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     ActiproSoftware.SyntaxEditor.Document document1 = new ActiproSoftware.SyntaxEditor.Document();
     System.Resources.ResourceManager      resources = new System.Resources.ResourceManager(typeof(frmSnippetNew));
     this.label1      = new System.Windows.Forms.Label();
     this.txtTitle    = new System.Windows.Forms.TextBox();
     this.txtDescr    = new System.Windows.Forms.TextBox();
     this.label2      = new System.Windows.Forms.Label();
     this.txtKeywords = new System.Windows.Forms.TextBox();
     this.label3      = new System.Windows.Forms.Label();
     this.label4      = new System.Windows.Forms.Label();
     this.txtCode     = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
     this.txtCategory = new System.Windows.Forms.TextBox();
     this.label5      = new System.Windows.Forms.Label();
     this.cmdCancel   = new System.Windows.Forms.Button();
     this.cmdCreate   = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(104, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Snippet Title:";
     //
     // txtTitle
     //
     this.txtTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.txtTitle.Location = new System.Drawing.Point(128, 8);
     this.txtTitle.Name     = "txtTitle";
     this.txtTitle.Size     = new System.Drawing.Size(536, 20);
     this.txtTitle.TabIndex = 0;
     this.txtTitle.Text     = "";
     //
     // txtDescr
     //
     this.txtDescr.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.txtDescr.Location = new System.Drawing.Point(128, 40);
     this.txtDescr.Name     = "txtDescr";
     this.txtDescr.Size     = new System.Drawing.Size(536, 20);
     this.txtDescr.TabIndex = 1;
     this.txtDescr.Text     = "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 40);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(112, 16);
     this.label2.TabIndex = 0;
     this.label2.Text     = "Snippet Description:";
     //
     // txtKeywords
     //
     this.txtKeywords.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.txtKeywords.Location = new System.Drawing.Point(128, 104);
     this.txtKeywords.Name     = "txtKeywords";
     this.txtKeywords.Size     = new System.Drawing.Size(536, 20);
     this.txtKeywords.TabIndex = 3;
     this.txtKeywords.Text     = "";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(8, 104);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(112, 16);
     this.label3.TabIndex = 0;
     this.label3.Text     = "Snippet Keywords:";
     //
     // label4
     //
     this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label4.Location  = new System.Drawing.Point(320, 128);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(344, 16);
     this.label4.TabIndex  = 0;
     this.label4.Text      = "(Separate keywords using spaces only)";
     this.label4.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // txtCode
     //
     this.txtCode.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.txtCode.Document  = document1;
     this.txtCode.Location  = new System.Drawing.Point(8, 152);
     this.txtCode.Name      = "txtCode";
     this.txtCode.Size      = new System.Drawing.Size(656, 392);
     this.txtCode.SplitType = ActiproSoftware.SyntaxEditor.SyntaxEditorSplitType.None;
     this.txtCode.TabIndex  = 4;
     //
     // txtCategory
     //
     this.txtCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.txtCategory.Location = new System.Drawing.Point(128, 72);
     this.txtCategory.Name     = "txtCategory";
     this.txtCategory.Size     = new System.Drawing.Size(536, 20);
     this.txtCategory.TabIndex = 2;
     this.txtCategory.Text     = "";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(8, 72);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(112, 16);
     this.label5.TabIndex = 0;
     this.label5.Text     = "Snippet Category:";
     //
     // cmdCancel
     //
     this.cmdCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cmdCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cmdCancel.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this.cmdCancel.Location     = new System.Drawing.Point(568, 552);
     this.cmdCancel.Name         = "cmdCancel";
     this.cmdCancel.Size         = new System.Drawing.Size(96, 24);
     this.cmdCancel.TabIndex     = 6;
     this.cmdCancel.Text         = "Cancel";
     this.cmdCancel.Click       += new System.EventHandler(this.cmdCancel_Click);
     //
     // cmdCreate
     //
     this.cmdCreate.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cmdCreate.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmdCreate.Location  = new System.Drawing.Point(456, 552);
     this.cmdCreate.Name      = "cmdCreate";
     this.cmdCreate.Size      = new System.Drawing.Size(96, 24);
     this.cmdCreate.TabIndex  = 5;
     this.cmdCreate.Text      = "Create";
     //
     // frmSnippetNew
     //
     this.AcceptButton      = this.cmdCreate;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.cmdCancel;
     this.ClientSize        = new System.Drawing.Size(672, 589);
     this.Controls.Add(this.cmdCancel);
     this.Controls.Add(this.txtCode);
     this.Controls.Add(this.txtTitle);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.txtDescr);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.txtKeywords);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.txtCategory);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.cmdCreate);
     this.Font          = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "frmSnippetNew";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "New Code Snippet";
     this.Load         += new System.EventHandler(this.frmSnippetNew_Load);
     this.ResumeLayout(false);
 }
コード例 #6
0
ファイル: Options.cs プロジェクト: uQr/Visual-NHibernate
        private void CreateOptionControls()
        {
            ClearTabs();

            if (SharedData.CurrentProject == null)
                return;

            const int padding = 8;
            int maxLabelWidth = 0;
            const int sidePadding = 30;

            Font font = new Font("Tahoma", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);

            // Get all the categories and types
            var categories = new List<string>();
            var types = new List<string>();

            Label measureLabel = new Label();
            measureLabel.BackColor = Colors.BackgroundColor;
            measureLabel.Font = font;
            Graphics graphics = Graphics.FromHwnd(measureLabel.Handle);

            foreach (var option in SharedData.CurrentProject.Options)
            {
                if (!string.IsNullOrEmpty(option.IteratorName) && option.IteratorName != "No iteration")
                    continue;

                // Get the value from the specified function. This function should have no parameters
                bool mustDisplayToUser = Controller.Instance.CurrentProject.DisplayOptionToUser(option, null);

                if (!mustDisplayToUser)
                    option.Category = "HIDDEN";

                if (option.Category.Length == 0)
                    option.Category = "General";

                if (categories.BinarySearch(option.Category) < 0)
                {
                    categories.Add(option.Category);
                    categories.Sort();
                }
                if (types.BinarySearch(option.VarType.FullName) < 0)
                {
                    types.Add(option.VarType.FullName);
                    types.Sort();
                }
                maxLabelWidth = maxLabelWidth > graphics.MeasureString(option.Text, font).Width ? maxLabelWidth : (int)graphics.MeasureString(option.Text, new Font("Microsoft Sans Serif", 8.25f)).Width;
            }
            foreach (var optionForm in SharedData.CurrentProject.OptionForms)
            {
                if (categories.BinarySearch(optionForm.Key) < 0)
                {
                    categories.Add(optionForm.Key);
                    categories.Sort();
                }
            }
            for (int i = 0; i < categories.Count; i++)
            {
                string category = categories[i];
                SuperTabControlPanel tabPanel = new SuperTabControlPanel();
                SuperTabItem tabItem = new SuperTabItem();

                superTabControl1.Controls.Add(tabPanel);
                superTabControl1.Tabs.Add(tabItem);

                tabPanel.Dock = System.Windows.Forms.DockStyle.Fill;
                tabPanel.Location = new System.Drawing.Point(102, 0);
                tabPanel.Name = "superTabControlPanel" + category;
                //tabPanel.Size = superTabControl1.SelectedPanel.Size;//.Width new System.Drawing.Size(211, 116);
                tabPanel.TabIndex = 1;
                tabPanel.TabItem = tabItem;
                //tabPanel.CanvasColor = Color.FromArgb(40, 40, 40);

                //tabPanel.ColorScheme.PanelBackground = this.BackColor;
                //tabPanel.ColorSchemeStyle = eDotNetBarStyle.Office2003;
                //tabPanel.ColorScheme.BarBackground = this.BackColor;

                tabItem.GlobalItem = false;
                tabItem.Name = "superTabItem" + category;
                tabItem.Text = " " + category + "  ";
                tabItem.AttachedControl = tabPanel;

                superTabControl1.BackColor = Color.FromArgb(30, 30, 30);

                tabItem.TabStripItem.FixedTabSize = new Size(160, 45);
                tabItem.TabStripItem.TabStripColor.Background.Colors = new Color[] { Color.FromArgb(10, 10, 10) };
                tabItem.TabStripItem.TabStripColor.InnerBorder = Color.FromArgb(140, 140, 140);//this.BackColor;
                tabItem.TabStripItem.TabStripColor.OuterBorder = Color.Black;//this.BackColor;
                tabItem.TabStripItem.TabStripColor.InsertMarker = Color.Yellow;

                //tabItem.TabStripItem.TabStripColor.ControlBoxDefault.Background = Color.Yellow;
                //tabItem.TabStripItem.TabStripColor.InsertMarker = Color.Pink;

                tabItem.TabColor.Default.Normal.Background.Colors = new Color[] { Color.FromArgb(10, 10, 10) };
                //tabItem.TabColor.Default.Normal.OuterBorder = Color.FromArgb(140, 140, 140);

                tabItem.TabColor.Default.Selected.Background.Colors = new Color[] { Color.FromArgb(100, 100, 100), Color.FromArgb(20, 20, 20) };
                tabItem.TabColor.Default.Selected.OuterBorder = Color.Black;
                tabItem.TabColor.Default.Selected.InnerBorder = Color.FromArgb(140, 140, 140);

                tabItem.TabColor.Default.MouseOver.Background.Colors = new Color[] { Color.FromArgb(50, 50, 50) };
                tabItem.TabColor.Default.MouseOver.OuterBorder = Color.Black;
                tabItem.TabColor.Default.MouseOver.InnerBorder = Color.FromArgb(140, 140, 140);

                Panel backgroundPanel = new Panel();
                backgroundPanel.Name = string.Format("BackgroundPanel{0}", i);
                backgroundPanel.BackColor = this.BackColor;
                backgroundPanel.Dock = DockStyle.Fill;
                backgroundPanel.Resize += new EventHandler(backgroundPanel_Resize);
                //backgroundPanel.Size = superTabControl1.SelectedPanel.Size;
                tabPanel.Controls.Add(backgroundPanel);

                //superTabControl1.PerformLayout();
                //tabPanel.PerformLayout();
                //backgroundPanel.PerformLayout();
                //superTabControl1.Refresh();

                if (category == "HIDDEN")
                    tabItem.Visible = false;

                int currentTop = 30;
                int maxWidth = 0;

                foreach (IOption option in SharedData.CurrentProject.Options.Where(o => o.Category == category))
                {
                    if (option.IsVirtualProperty)
                        continue;

                    bool mustDisplay = SharedData.CurrentProject.DisplayOptionToUser(option, null);

                    if (!mustDisplay)
                        option.Category = "HIDDEN";

                    //if (option.Category != category)
                    //    continue;

                    Label label = new Label();
                    label.ForeColor = Color.FromArgb(250, 250, 250);
                    label.BackColor = Color.Transparent;
                    label.Left = sidePadding;
                    label.Text = option.Text;
                    //label.TextAlignment = StringAlignment.Far;
                    //label.TextLineAlignment = StringAlignment.Center;
                    label.Top = currentTop;
                    label.Width = maxLabelWidth + 10;
                    //label.Style = eDotNetBarStyle.StyleManagerControlled;
                    toolTip1.SetToolTip(label, option.Description);

                    //panel.Controls.Add(label);
                    backgroundPanel.Controls.Add(label);
                    //backgroundPanel.PerformLayout();

                    Control control = null;

                    object defaultValue = SharedData.CurrentProject.GetDefaultValueOf(option);

                    string typeName = option.VarType.FullName;

                    if (option.VarType == typeof(bool?))
                        typeName = "bool?";
                    else if (option.VarType == typeof(int?))
                        typeName = "int?";

                    switch (typeName)
                    {
                        case "System.String":
                            control = new TextBox();
                            control.Text = (string)defaultValue;
                            control.Left = label.Right + padding;
                            //control.Width = panel.ClientSize.Width - control.Left - padding;
                            //control.Width = superTabControl1.SelectedPanel.Width - control.Left - padding - (sidePadding * 2);
                            control.Width = 250;
                            control.Anchor = AnchorStyles.Top | AnchorStyles.Left;// | AnchorStyles.Right;
                            control.TextChanged += Options_ValueChanged;
                            break;

                        case "System.Int32":
                            control = new Slyce.Common.Controls.NumEdit();
                            control.Text = ((int)defaultValue).ToString();
                            ((Slyce.Common.Controls.NumEdit)control).InputType = Slyce.Common.Controls.NumEdit.NumEditType.Integer;
                            control.Left = label.Right + padding;
                            control.TextChanged += Options_ValueChanged;
                            break;

                        case "System.Boolean":
                            label.Visible = false;
                            control = new CheckBox();
                            control.Text = option.Text;
                            control.ForeColor = Color.FromArgb(250, 250, 250);
                            //((CheckBoxX)control).RightToLeft = RightToLeft.Yes;
                            ((CheckBox)control).TextAlign = ContentAlignment.MiddleRight;
                            ((CheckBox)control).BackColor = Color.Transparent;

                            if (option.DefaultValue != "")
                            {
                                CheckBox checkBox = (CheckBox)control;
                                checkBox.Checked = (bool)defaultValue;
                            }

                            control.Left = sidePadding + 5;
                            Graphics graphicsChk = Graphics.FromHwnd(control.Handle);
                            control.Width = (int)graphicsChk.MeasureString(option.Text, font).Width + 30;
                            ((CheckBox)control).CheckedChanged += Options_ValueChanged;
                            break;

                        case "System.Enum":
                            control = new ComboBoxEx();
                            ComboBoxEx comboBox = (ComboBoxEx)control;
                            comboBox.DropDownStyle = ComboBoxStyle.DropDownList;

                            for (int j = 0; j < option.EnumValues.Length; j++)
                                comboBox.Items.Add(option.EnumValues[j]);

                            if (option.EnumValues.Length > 0)
                                comboBox.SelectedIndex = 0;

                            control.Left = label.Right + padding;
                            ((ComboBoxEx)control).SelectedIndexChanged += Options_ValueChanged;
                            break;

                        case "bool?":
                            control = new ComboBoxEx();
                            ComboBoxEx comboBoxBool = (ComboBoxEx)control;
                            comboBoxBool.DropDownStyle = ComboBoxStyle.DropDownList;
                            comboBoxBool.Items.Add("");
                            comboBoxBool.Items.Add("true");
                            comboBoxBool.Items.Add("false");
                            comboBoxBool.SelectedIndex = 0;
                            control.Left = label.Right + padding;
                            ((ComboBoxEx)control).SelectedIndexChanged += Options_ValueChanged;
                            break;

                        case "int?":
                            control = new Slyce.Common.Controls.NumEdit();

                            if (defaultValue == null)
                                control.Text = "";
                            else
                                control.Text = ((int)defaultValue).ToString();

                            ((Slyce.Common.Controls.NumEdit)control).InputType = Slyce.Common.Controls.NumEdit.NumEditType.Integer;
                            control.Left = label.Right + padding;
                            control.TextChanged += Options_ValueChanged;
                            break;

                        case "ArchAngel.Interfaces.SourceCodeType":
                            control = new ActiproSoftware.SyntaxEditor.SyntaxEditor();// TextBox();

                            ConfigureSyntaxEditor((ActiproSoftware.SyntaxEditor.SyntaxEditor)control, false);

                            control.Text = ((ArchAngel.Interfaces.SourceCodeType)defaultValue).Value;
                            control.Left = label.Right + padding;
                            //control.Width = panel.ClientSize.Width - control.Left - padding;
                            //control.Width = superTabControl1.SelectedPanel.Width - control.Left - padding - (sidePadding * 2);
                            control.Width = 400;// backgroundPanel.Width - control.Left - 100;
                            control.Anchor = AnchorStyles.Top | AnchorStyles.Left;// | AnchorStyles.Right;
                            control.TextChanged += Options_ValueChanged;
                            break;

                        case "ArchAngel.Interfaces.SourceCodeMultiLineType":
                            control = new ActiproSoftware.SyntaxEditor.SyntaxEditor();// TextBox();

                            ConfigureSyntaxEditor((ActiproSoftware.SyntaxEditor.SyntaxEditor)control, true);

                            control.Text = ((ArchAngel.Interfaces.SourceCodeMultiLineType)defaultValue).Value;
                            control.Left = label.Right + padding;
                            //control.Width = panel.ClientSize.Width - control.Left - padding;
                            //control.Width = superTabControl1.SelectedPanel.Width - control.Left - padding - (sidePadding * 2);
                            control.Width = 400;// backgroundPanel.Width - control.Left - 100;
                            control.Anchor = AnchorStyles.Top | AnchorStyles.Left;// | AnchorStyles.Right;
                            control.TextChanged += Options_ValueChanged;
                            break;
                    }
                    if (control == null)
                        control = CreateControlUnknownType(option, label, padding);

                    control.Name = "controlOption_" + option.VariableName;
                    control.Tag = option;
                    control.Top = currentTop;
                    toolTip1.SetToolTip(control, option.Description);
                    currentTop += padding + control.Height;
                    backgroundPanel.Controls.Add(control);
                    control.BringToFront();
                    label.BringToFront();

                    maxWidth = maxWidth > control.Left + control.Width + padding ? maxWidth : control.Left + control.Width + padding;
                }
                KeyValuePair<string, UserControl> optionForm = SharedData.CurrentProject.OptionForms.SingleOrDefault(o => o.Key == category);

                if (optionForm.Key != null)
                {
                    optionForm.Value.Dock = DockStyle.Fill;
                    ((IOptionForm)optionForm.Value).Fill(SharedData.CurrentProject.Providers);
                    backgroundPanel.Controls.Add(optionForm.Value);
                }
            }
            superTabControl1.SelectedTabIndex = 1;
            superTabControl1.Refresh();
            superTabControl1.SelectedTabIndex = 0;
            superTabControl1.Refresh();

            ResetDefaults();
        }
コード例 #7
0
ファイル: frmConfig.cs プロジェクト: Bloodknight/TorqueDev
 /// <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(frmConfig));
     ActiproSoftware.SyntaxEditor.Document document1 = new ActiproSoftware.SyntaxEditor.Document();
     this.tabMain = new Crownwood.DotNetMagic.Controls.TabControl();
     this.tpGeneral = new Crownwood.DotNetMagic.Controls.TabPage();
     this.optRenderStd = new System.Windows.Forms.RadioButton();
     this.optRenderPro = new System.Windows.Forms.RadioButton();
     this.label7 = new System.Windows.Forms.Label();
     this.cmdClearRecent = new System.Windows.Forms.Button();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.chkAC_Infopop = new System.Windows.Forms.CheckBox();
     this.chkAC_Obj = new System.Windows.Forms.CheckBox();
     this.chkAC_TypeAsYouGo = new System.Windows.Forms.CheckBox();
     this.chkAC_Var = new System.Windows.Forms.CheckBox();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.cmdOnDebugExec = new System.Windows.Forms.Button();
     this.chkDebugSummary = new System.Windows.Forms.CheckBox();
     this.chkErrChkDbg = new System.Windows.Forms.CheckBox();
     this.label1 = new System.Windows.Forms.Label();
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     this.chkCheckUpdates = new System.Windows.Forms.CheckBox();
     this.tpHighlighting = new Crownwood.DotNetMagic.Controls.TabPage();
     this.cmdResetColors = new System.Windows.Forms.Button();
     this.cmdAdColor = new System.Windows.Forms.Button();
     this.lstColorDefs = new System.Windows.Forms.ListBox();
     this.txtSynEd = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
     this.pictureBox2 = new System.Windows.Forms.PictureBox();
     this.label2 = new System.Windows.Forms.Label();
     this.tpShortcut = new Crownwood.DotNetMagic.Controls.TabPage();
     this.tvMenus = new System.Windows.Forms.TreeView();
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.cmdApplyShortcut = new System.Windows.Forms.Button();
     this.txtAssgnShortcut = new System.Windows.Forms.TextBox();
     this.label4 = new System.Windows.Forms.Label();
     this.lvShortcuts = new System.Windows.Forms.ListView();
     this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.label3 = new System.Windows.Forms.Label();
     this.pictureBox3 = new System.Windows.Forms.PictureBox();
     this.tpEditor = new Crownwood.DotNetMagic.Controls.TabPage();
     this.chkConvTabToSpc = new System.Windows.Forms.CheckBox();
     this.txtTabSpace = new System.Windows.Forms.TextBox();
     this.label6 = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.pictureBox4 = new System.Windows.Forms.PictureBox();
     this.chk_Ed_Virtlines = new System.Windows.Forms.CheckBox();
     this.chk_Ed_ShowLines = new System.Windows.Forms.CheckBox();
     this.chk_Ed_ShowWhitespace = new System.Windows.Forms.CheckBox();
     this.chk_Ed_ShowNewline = new System.Windows.Forms.CheckBox();
     this.chk_Ed_ShowBrackets = new System.Windows.Forms.CheckBox();
     this.chk_Ed_Wordwrap = new System.Windows.Forms.CheckBox();
     this.chk_Ed_ShowTabs = new System.Windows.Forms.CheckBox();
     this.chk_Ed_Errs = new System.Windows.Forms.CheckBox();
     this.chkScrollHint = new System.Windows.Forms.CheckBox();
     this.chkAutoColl = new System.Windows.Forms.CheckBox();
     this.chk_E_IndentGuides = new System.Windows.Forms.CheckBox();
     this.chk_Ed_CodeFold = new System.Windows.Forms.CheckBox();
     this.chk_Ed_AutoIndent = new System.Windows.Forms.CheckBox();
     this.cmdFlushAuth = new System.Windows.Forms.Button();
     this.cmdCancel = new System.Windows.Forms.Button();
     this.cmdOK = new System.Windows.Forms.Button();
     this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
     this.ctxReset = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.ctxReset_DefaultClr = new System.Windows.Forms.ToolStripMenuItem();
     this.ctxReset_NoolnessDarkClr = new System.Windows.Forms.ToolStripMenuItem();
     this.tabMain.SuspendLayout();
     this.tpGeneral.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.tpHighlighting.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
     this.tpShortcut.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
     this.tpEditor.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
     this.ctxReset.SuspendLayout();
     this.SuspendLayout();
     //
     // tabMain
     //
     this.tabMain.BackColor = System.Drawing.SystemColors.Control;
     this.tabMain.ButtonActiveColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tabMain.ButtonInactiveColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tabMain.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World);
     this.tabMain.HotTextColor = System.Drawing.SystemColors.ActiveCaption;
     this.tabMain.ImageList = null;
     this.tabMain.Location = new System.Drawing.Point(8, 8);
     this.tabMain.Name = "tabMain";
     this.tabMain.OfficeDockSides = false;
     this.tabMain.SelectedIndex = 0;
     this.tabMain.ShowArrows = true;
     this.tabMain.ShowDropSelect = false;
     this.tabMain.ShrinkPagesToFit = false;
     this.tabMain.Size = new System.Drawing.Size(376, 384);
     this.tabMain.Style = Crownwood.DotNetMagic.Common.VisualStyle.IDE2005;
     this.tabMain.TabIndex = 1;
     this.tabMain.TabPages.AddRange(new Crownwood.DotNetMagic.Controls.TabPage[] {
     this.tpGeneral,
     this.tpHighlighting,
     this.tpShortcut,
     this.tpEditor});
     this.tabMain.TextColor = System.Drawing.SystemColors.ControlText;
     this.tabMain.TextInactiveColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tabMain.TextTips = true;
     //
     // tpGeneral
     //
     this.tpGeneral.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.tpGeneral.Controls.Add(this.optRenderStd);
     this.tpGeneral.Controls.Add(this.optRenderPro);
     this.tpGeneral.Controls.Add(this.label7);
     this.tpGeneral.Controls.Add(this.cmdClearRecent);
     this.tpGeneral.Controls.Add(this.groupBox3);
     this.tpGeneral.Controls.Add(this.groupBox2);
     this.tpGeneral.Controls.Add(this.label1);
     this.tpGeneral.Controls.Add(this.pictureBox1);
     this.tpGeneral.Controls.Add(this.chkCheckUpdates);
     this.tpGeneral.InactiveBackColor = System.Drawing.Color.Empty;
     this.tpGeneral.InactiveTextBackColor = System.Drawing.Color.Empty;
     this.tpGeneral.InactiveTextColor = System.Drawing.Color.Empty;
     this.tpGeneral.Location = new System.Drawing.Point(1, 1);
     this.tpGeneral.Name = "tpGeneral";
     this.tpGeneral.SelectBackColor = System.Drawing.Color.Empty;
     this.tpGeneral.SelectTextBackColor = System.Drawing.Color.Empty;
     this.tpGeneral.SelectTextColor = System.Drawing.Color.Empty;
     this.tpGeneral.Size = new System.Drawing.Size(374, 357);
     this.tpGeneral.TabIndex = 4;
     this.tpGeneral.Title = "General Preferences";
     this.tpGeneral.ToolTip = "Page";
     //
     // optRenderStd
     //
     this.optRenderStd.AutoSize = true;
     this.optRenderStd.Enabled = false;
     this.optRenderStd.Location = new System.Drawing.Point(191, 283);
     this.optRenderStd.Name = "optRenderStd";
     this.optRenderStd.Size = new System.Drawing.Size(69, 17);
     this.optRenderStd.TabIndex = 8;
     this.optRenderStd.TabStop = true;
     this.optRenderStd.Text = "Standard";
     this.toolTip1.SetToolTip(this.optRenderStd, "Classic Windows environment display.");
     this.optRenderStd.UseVisualStyleBackColor = true;
     this.optRenderStd.CheckedChanged += new System.EventHandler(this.optRenderStd_CheckedChanged);
     //
     // optRenderPro
     //
     this.optRenderPro.AutoSize = true;
     this.optRenderPro.Enabled = false;
     this.optRenderPro.Location = new System.Drawing.Point(102, 283);
     this.optRenderPro.Name = "optRenderPro";
     this.optRenderPro.Size = new System.Drawing.Size(83, 17);
     this.optRenderPro.TabIndex = 8;
     this.optRenderPro.TabStop = true;
     this.optRenderPro.Text = "Professional";
     this.toolTip1.SetToolTip(this.optRenderPro, "Microsoft Office 2003-style \"blue skin\" display.");
     this.optRenderPro.UseVisualStyleBackColor = true;
     this.optRenderPro.CheckedChanged += new System.EventHandler(this.optRenderPro_CheckedChanged);
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Enabled = false;
     this.label7.Location = new System.Drawing.Point(13, 285);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(83, 13);
     this.label7.TabIndex = 7;
     this.label7.Text = "Display Render:";
     //
     // cmdClearRecent
     //
     this.cmdClearRecent.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmdClearRecent.Location = new System.Drawing.Point(240, 318);
     this.cmdClearRecent.Name = "cmdClearRecent";
     this.cmdClearRecent.Size = new System.Drawing.Size(120, 24);
     this.cmdClearRecent.TabIndex = 6;
     this.cmdClearRecent.Text = "Clear Recent Items";
     this.toolTip1.SetToolTip(this.cmdClearRecent, "Cleares recently-opened projects in welcome screen.");
     this.cmdClearRecent.Click += new System.EventHandler(this.cmdClearRecent_Click);
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.chkAC_Infopop);
     this.groupBox3.Controls.Add(this.chkAC_Obj);
     this.groupBox3.Controls.Add(this.chkAC_TypeAsYouGo);
     this.groupBox3.Controls.Add(this.chkAC_Var);
     this.groupBox3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox3.Location = new System.Drawing.Point(16, 152);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(344, 120);
     this.groupBox3.TabIndex = 5;
     this.groupBox3.TabStop = false;
     this.groupBox3.Text = "Auto-Complete";
     //
     // chkAC_Infopop
     //
     this.chkAC_Infopop.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chkAC_Infopop.Location = new System.Drawing.Point(8, 24);
     this.chkAC_Infopop.Name = "chkAC_Infopop";
     this.chkAC_Infopop.Size = new System.Drawing.Size(200, 16);
     this.chkAC_Infopop.TabIndex = 0;
     this.chkAC_Infopop.Text = "Enable Automatic Function Infopop";
     this.toolTip1.SetToolTip(this.chkAC_Infopop, "Enables function tooltips to be displayed on open parenthese.");
     this.chkAC_Infopop.CheckedChanged += new System.EventHandler(this.chkAC_Infopop_CheckedChanged);
     //
     // chkAC_Obj
     //
     this.chkAC_Obj.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chkAC_Obj.Location = new System.Drawing.Point(8, 48);
     this.chkAC_Obj.Name = "chkAC_Obj";
     this.chkAC_Obj.Size = new System.Drawing.Size(280, 16);
     this.chkAC_Obj.TabIndex = 0;
     this.chkAC_Obj.Text = "Enable Automatic Object Memberlist (:: or .)";
     this.toolTip1.SetToolTip(this.chkAC_Obj, "Displays object memberlist in dropdown on :: or .");
     this.chkAC_Obj.CheckedChanged += new System.EventHandler(this.chkAC_Obj_CheckedChanged);
     //
     // chkAC_TypeAsYouGo
     //
     this.chkAC_TypeAsYouGo.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chkAC_TypeAsYouGo.Location = new System.Drawing.Point(8, 94);
     this.chkAC_TypeAsYouGo.Name = "chkAC_TypeAsYouGo";
     this.chkAC_TypeAsYouGo.Size = new System.Drawing.Size(280, 16);
     this.chkAC_TypeAsYouGo.TabIndex = 0;
     this.chkAC_TypeAsYouGo.Text = "Enable Type-As-You-Go Completion";
     this.toolTip1.SetToolTip(this.chkAC_TypeAsYouGo, "Enables display of valid functions and variables as you type them.");
     this.chkAC_TypeAsYouGo.CheckedChanged += new System.EventHandler(this.chkAC_TypeAsYouGo_CheckedChanged);
     //
     // chkAC_Var
     //
     this.chkAC_Var.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chkAC_Var.Location = new System.Drawing.Point(8, 72);
     this.chkAC_Var.Name = "chkAC_Var";
     this.chkAC_Var.Size = new System.Drawing.Size(280, 16);
     this.chkAC_Var.TabIndex = 0;
     this.chkAC_Var.Text = "Enable Automatic Variable Memberlist (__decl)";
     this.toolTip1.SetToolTip(this.chkAC_Var, "Enables declared variable memberlist on dot-operator.");
     this.chkAC_Var.CheckedChanged += new System.EventHandler(this.chkAC_Var_CheckedChanged);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.cmdOnDebugExec);
     this.groupBox2.Controls.Add(this.chkDebugSummary);
     this.groupBox2.Controls.Add(this.chkErrChkDbg);
     this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox2.Location = new System.Drawing.Point(16, 72);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(344, 72);
     this.groupBox2.TabIndex = 4;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Debugger";
     //
     // cmdOnDebugExec
     //
     this.cmdOnDebugExec.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmdOnDebugExec.Location = new System.Drawing.Point(208, 32);
     this.cmdOnDebugExec.Name = "cmdOnDebugExec";
     this.cmdOnDebugExec.Size = new System.Drawing.Size(120, 24);
     this.cmdOnDebugExec.TabIndex = 2;
     this.cmdOnDebugExec.Text = "On Debug Execute";
     this.cmdOnDebugExec.Click += new System.EventHandler(this.cmdOnDebugExec_Click);
     //
     // chkDebugSummary
     //
     this.chkDebugSummary.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chkDebugSummary.Location = new System.Drawing.Point(8, 24);
     this.chkDebugSummary.Name = "chkDebugSummary";
     this.chkDebugSummary.Size = new System.Drawing.Size(144, 16);
     this.chkDebugSummary.TabIndex = 1;
     this.chkDebugSummary.Text = "Show Debug Summary";
     this.toolTip1.SetToolTip(this.chkDebugSummary, "Displays console output in a browser window when debugging is completed.");
     this.chkDebugSummary.CheckedChanged += new System.EventHandler(this.chkDebugSummary_CheckedChanged);
     //
     // chkErrChkDbg
     //
     this.chkErrChkDbg.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chkErrChkDbg.Location = new System.Drawing.Point(8, 48);
     this.chkErrChkDbg.Name = "chkErrChkDbg";
     this.chkErrChkDbg.Size = new System.Drawing.Size(192, 16);
     this.chkErrChkDbg.TabIndex = 1;
     this.chkErrChkDbg.Text = "Check for errors before debugging";
     this.toolTip1.SetToolTip(this.chkErrChkDbg, "Scans project for syntax errors before entering debug mode.");
     this.chkErrChkDbg.CheckedChanged += new System.EventHandler(this.chkErrChkDbg_CheckedChanged);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(72, 8);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(288, 48);
     this.label1.TabIndex = 2;
     this.label1.Text = "This page allows you to configure the basic functionality of the TorqueDev develo" +
     "pment environment:";
     //
     // pictureBox1
     //
     this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(16, 8);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new System.Drawing.Size(48, 48);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pictureBox1.TabIndex = 0;
     this.pictureBox1.TabStop = false;
     //
     // chkCheckUpdates
     //
     this.chkCheckUpdates.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chkCheckUpdates.Location = new System.Drawing.Point(16, 323);
     this.chkCheckUpdates.Name = "chkCheckUpdates";
     this.chkCheckUpdates.Size = new System.Drawing.Size(160, 16);
     this.chkCheckUpdates.TabIndex = 1;
     this.chkCheckUpdates.Text = "Check for Updates Daily";
     this.toolTip1.SetToolTip(this.chkCheckUpdates, "Checks for CW updates once per day.");
     this.chkCheckUpdates.Visible = false;
     this.chkCheckUpdates.CheckedChanged += new System.EventHandler(this.chkCheckUpdates_CheckedChanged);
     //
     // tpHighlighting
     //
     this.tpHighlighting.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.tpHighlighting.Controls.Add(this.cmdResetColors);
     this.tpHighlighting.Controls.Add(this.cmdAdColor);
     this.tpHighlighting.Controls.Add(this.lstColorDefs);
     this.tpHighlighting.Controls.Add(this.txtSynEd);
     this.tpHighlighting.Controls.Add(this.pictureBox2);
     this.tpHighlighting.Controls.Add(this.label2);
     this.tpHighlighting.InactiveBackColor = System.Drawing.Color.Empty;
     this.tpHighlighting.InactiveTextBackColor = System.Drawing.Color.Empty;
     this.tpHighlighting.InactiveTextColor = System.Drawing.Color.Empty;
     this.tpHighlighting.Location = new System.Drawing.Point(1, 1);
     this.tpHighlighting.Name = "tpHighlighting";
     this.tpHighlighting.SelectBackColor = System.Drawing.Color.Empty;
     this.tpHighlighting.Selected = false;
     this.tpHighlighting.SelectTextBackColor = System.Drawing.Color.Empty;
     this.tpHighlighting.SelectTextColor = System.Drawing.Color.Empty;
     this.tpHighlighting.Size = new System.Drawing.Size(374, 357);
     this.tpHighlighting.TabIndex = 5;
     this.tpHighlighting.Title = "Syntax Highlighting";
     this.tpHighlighting.ToolTip = "Page";
     //
     // cmdResetColors
     //
     this.cmdResetColors.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmdResetColors.Location = new System.Drawing.Point(288, 64);
     this.cmdResetColors.Name = "cmdResetColors";
     this.cmdResetColors.Size = new System.Drawing.Size(72, 24);
     this.cmdResetColors.TabIndex = 9;
     this.cmdResetColors.Text = "Reset";
     this.cmdResetColors.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cmdResetColors_MouseUp);
     //
     // cmdAdColor
     //
     this.cmdAdColor.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmdAdColor.Location = new System.Drawing.Point(288, 104);
     this.cmdAdColor.Name = "cmdAdColor";
     this.cmdAdColor.Size = new System.Drawing.Size(72, 24);
     this.cmdAdColor.TabIndex = 9;
     this.cmdAdColor.Text = "Adjust";
     this.cmdAdColor.Click += new System.EventHandler(this.cmdAdColor_Click);
     //
     // lstColorDefs
     //
     this.lstColorDefs.Items.AddRange(new object[] {
     "Built-In Preprocessors",
     "Comment Contents",
     "Comment Delimiters",
     "Default Font and Colors",
     "Engine Functions",
     "Global Variables",
     "Indent Guidelines",
     "Line Numbers",
     "Line Number Margin",
     "Local Variables",
     "Numbers",
     "Operators",
     "Reserved Words",
     "Scope Resolution Operators",
     "Special Comment Contents",
     "Special Comment Delimiters",
     "String Delimiters",
     "String Contents",
     "Tagged String Delimiters",
     "Tagged String Contents",
     "Variable Declarations"});
     this.lstColorDefs.Location = new System.Drawing.Point(16, 64);
     this.lstColorDefs.Name = "lstColorDefs";
     this.lstColorDefs.Size = new System.Drawing.Size(264, 69);
     this.lstColorDefs.TabIndex = 8;
     this.lstColorDefs.DoubleClick += new System.EventHandler(this.lstColorDefs_DoubleClick);
     //
     // txtSynEd
     //
     this.txtSynEd.Document = document1;
     this.txtSynEd.Location = new System.Drawing.Point(8, 144);
     this.txtSynEd.Name = "txtSynEd";
     this.txtSynEd.Size = new System.Drawing.Size(352, 200);
     this.txtSynEd.SplitType = ActiproSoftware.SyntaxEditor.SyntaxEditorSplitType.None;
     this.txtSynEd.TabIndex = 7;
     //
     // pictureBox2
     //
     this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
     this.pictureBox2.Location = new System.Drawing.Point(16, 8);
     this.pictureBox2.Name = "pictureBox2";
     this.pictureBox2.Size = new System.Drawing.Size(48, 48);
     this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pictureBox2.TabIndex = 0;
     this.pictureBox2.TabStop = false;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(72, 8);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(288, 48);
     this.label2.TabIndex = 6;
     this.label2.Text = "You may adjust the colors of the syntax editor below.";
     //
     // tpShortcut
     //
     this.tpShortcut.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.tpShortcut.Controls.Add(this.tvMenus);
     this.tpShortcut.Controls.Add(this.cmdApplyShortcut);
     this.tpShortcut.Controls.Add(this.txtAssgnShortcut);
     this.tpShortcut.Controls.Add(this.label4);
     this.tpShortcut.Controls.Add(this.lvShortcuts);
     this.tpShortcut.Controls.Add(this.label3);
     this.tpShortcut.Controls.Add(this.pictureBox3);
     this.tpShortcut.InactiveBackColor = System.Drawing.Color.Empty;
     this.tpShortcut.InactiveTextBackColor = System.Drawing.Color.Empty;
     this.tpShortcut.InactiveTextColor = System.Drawing.Color.Empty;
     this.tpShortcut.Location = new System.Drawing.Point(1, 1);
     this.tpShortcut.Name = "tpShortcut";
     this.tpShortcut.SelectBackColor = System.Drawing.Color.Empty;
     this.tpShortcut.Selected = false;
     this.tpShortcut.SelectTextBackColor = System.Drawing.Color.Empty;
     this.tpShortcut.SelectTextColor = System.Drawing.Color.Empty;
     this.tpShortcut.Size = new System.Drawing.Size(374, 357);
     this.tpShortcut.TabIndex = 6;
     this.tpShortcut.Title = "Shortcuts";
     this.tpShortcut.ToolTip = "Page";
     //
     // tvMenus
     //
     this.tvMenus.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tvMenus.ImageIndex = 0;
     this.tvMenus.ImageList = this.imageList1;
     this.tvMenus.Location = new System.Drawing.Point(8, 64);
     this.tvMenus.Name = "tvMenus";
     this.tvMenus.SelectedImageIndex = 0;
     this.tvMenus.Size = new System.Drawing.Size(360, 200);
     this.tvMenus.TabIndex = 7;
     this.tvMenus.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvMenus_AfterSelect);
     //
     // imageList1
     //
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "folder_closed.png");
     this.imageList1.Images.SetKeyName(1, "blank_16x16.png");
     //
     // cmdApplyShortcut
     //
     this.cmdApplyShortcut.Enabled = false;
     this.cmdApplyShortcut.Location = new System.Drawing.Point(293, 289);
     this.cmdApplyShortcut.Name = "cmdApplyShortcut";
     this.cmdApplyShortcut.Size = new System.Drawing.Size(75, 23);
     this.cmdApplyShortcut.TabIndex = 6;
     this.cmdApplyShortcut.Text = "Apply";
     this.cmdApplyShortcut.UseVisualStyleBackColor = true;
     this.cmdApplyShortcut.Click += new System.EventHandler(this.cmdApplyShortcut_Click);
     //
     // txtAssgnShortcut
     //
     this.txtAssgnShortcut.AcceptsReturn = true;
     this.txtAssgnShortcut.AcceptsTab = true;
     this.txtAssgnShortcut.Location = new System.Drawing.Point(16, 291);
     this.txtAssgnShortcut.Name = "txtAssgnShortcut";
     this.txtAssgnShortcut.Size = new System.Drawing.Size(271, 21);
     this.txtAssgnShortcut.TabIndex = 5;
     this.txtAssgnShortcut.Text = "None";
     this.txtAssgnShortcut.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtAssgnShortcut.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtAssgnShortcut_KeyDown);
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(8, 272);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(232, 16);
     this.label4.TabIndex = 4;
     this.label4.Text = "Assigned shortcut:";
     //
     // lvShortcuts
     //
     this.lvShortcuts.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.columnHeader1,
     this.columnHeader2});
     this.lvShortcuts.FullRowSelect = true;
     this.lvShortcuts.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.lvShortcuts.HideSelection = false;
     this.lvShortcuts.Location = new System.Drawing.Point(8, 64);
     this.lvShortcuts.MultiSelect = false;
     this.lvShortcuts.Name = "lvShortcuts";
     this.lvShortcuts.Size = new System.Drawing.Size(360, 200);
     this.lvShortcuts.Sorting = System.Windows.Forms.SortOrder.Ascending;
     this.lvShortcuts.TabIndex = 2;
     this.lvShortcuts.UseCompatibleStateImageBehavior = false;
     this.lvShortcuts.View = System.Windows.Forms.View.Details;
     this.lvShortcuts.Visible = false;
     this.lvShortcuts.SelectedIndexChanged += new System.EventHandler(this.lvShortcuts_SelectedIndexChanged);
     this.lvShortcuts.Click += new System.EventHandler(this.lvShortcuts_Click);
     //
     // columnHeader1
     //
     this.columnHeader1.Text = "Menu";
     this.columnHeader1.Width = 173;
     //
     // columnHeader2
     //
     this.columnHeader2.Text = "Shortcut";
     this.columnHeader2.Width = 174;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(72, 8);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(296, 16);
     this.label3.TabIndex = 1;
     this.label3.Text = "You can configure the menu shortcut keys below:";
     //
     // pictureBox3
     //
     this.pictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox3.Image")));
     this.pictureBox3.Location = new System.Drawing.Point(16, 8);
     this.pictureBox3.Name = "pictureBox3";
     this.pictureBox3.Size = new System.Drawing.Size(48, 48);
     this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pictureBox3.TabIndex = 0;
     this.pictureBox3.TabStop = false;
     //
     // tpEditor
     //
     this.tpEditor.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.tpEditor.Controls.Add(this.chkConvTabToSpc);
     this.tpEditor.Controls.Add(this.txtTabSpace);
     this.tpEditor.Controls.Add(this.label6);
     this.tpEditor.Controls.Add(this.label5);
     this.tpEditor.Controls.Add(this.pictureBox4);
     this.tpEditor.Controls.Add(this.chk_Ed_Virtlines);
     this.tpEditor.Controls.Add(this.chk_Ed_ShowLines);
     this.tpEditor.Controls.Add(this.chk_Ed_ShowWhitespace);
     this.tpEditor.Controls.Add(this.chk_Ed_ShowNewline);
     this.tpEditor.Controls.Add(this.chk_Ed_ShowBrackets);
     this.tpEditor.Controls.Add(this.chk_Ed_Wordwrap);
     this.tpEditor.Controls.Add(this.chk_Ed_ShowTabs);
     this.tpEditor.Controls.Add(this.chk_Ed_Errs);
     this.tpEditor.Controls.Add(this.chkScrollHint);
     this.tpEditor.Controls.Add(this.chkAutoColl);
     this.tpEditor.Controls.Add(this.chk_E_IndentGuides);
     this.tpEditor.Controls.Add(this.chk_Ed_CodeFold);
     this.tpEditor.Controls.Add(this.chk_Ed_AutoIndent);
     this.tpEditor.InactiveBackColor = System.Drawing.Color.Empty;
     this.tpEditor.InactiveTextBackColor = System.Drawing.Color.Empty;
     this.tpEditor.InactiveTextColor = System.Drawing.Color.Empty;
     this.tpEditor.Location = new System.Drawing.Point(1, 1);
     this.tpEditor.Name = "tpEditor";
     this.tpEditor.SelectBackColor = System.Drawing.Color.Empty;
     this.tpEditor.Selected = false;
     this.tpEditor.SelectTextBackColor = System.Drawing.Color.Empty;
     this.tpEditor.SelectTextColor = System.Drawing.Color.Empty;
     this.tpEditor.Size = new System.Drawing.Size(374, 357);
     this.tpEditor.TabIndex = 7;
     this.tpEditor.Title = "Editor";
     this.tpEditor.ToolTip = "Page";
     //
     // chkConvTabToSpc
     //
     this.chkConvTabToSpc.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chkConvTabToSpc.Location = new System.Drawing.Point(152, 72);
     this.chkConvTabToSpc.Name = "chkConvTabToSpc";
     this.chkConvTabToSpc.Size = new System.Drawing.Size(144, 16);
     this.chkConvTabToSpc.TabIndex = 6;
     this.chkConvTabToSpc.Text = "Convert tabs to spaces";
     this.toolTip1.SetToolTip(this.chkConvTabToSpc, "Converts tabs to spaces upon saving a file.");
     this.chkConvTabToSpc.CheckedChanged += new System.EventHandler(this.chkConvTabToSpc_CheckedChanged);
     //
     // txtTabSpace
     //
     this.txtTabSpace.Location = new System.Drawing.Point(80, 72);
     this.txtTabSpace.MaxLength = 2;
     this.txtTabSpace.Name = "txtTabSpace";
     this.txtTabSpace.Size = new System.Drawing.Size(56, 21);
     this.txtTabSpace.TabIndex = 5;
     this.txtTabSpace.TextChanged += new System.EventHandler(this.txtTabSpace_TextChanged);
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 72);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(64, 16);
     this.label6.TabIndex = 4;
     this.label6.Text = "Tab space:";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(72, 8);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(296, 16);
     this.label5.TabIndex = 3;
     this.label5.Text = "You can configure basic editor preferences here:";
     //
     // pictureBox4
     //
     this.pictureBox4.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox4.Image")));
     this.pictureBox4.Location = new System.Drawing.Point(16, 8);
     this.pictureBox4.Name = "pictureBox4";
     this.pictureBox4.Size = new System.Drawing.Size(48, 48);
     this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pictureBox4.TabIndex = 2;
     this.pictureBox4.TabStop = false;
     //
     // chk_Ed_Virtlines
     //
     this.chk_Ed_Virtlines.Enabled = false;
     this.chk_Ed_Virtlines.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chk_Ed_Virtlines.Location = new System.Drawing.Point(16, 328);
     this.chk_Ed_Virtlines.Name = "chk_Ed_Virtlines";
     this.chk_Ed_Virtlines.Size = new System.Drawing.Size(144, 16);
     this.chk_Ed_Virtlines.TabIndex = 6;
     this.chk_Ed_Virtlines.Text = "Virtual Space";
     this.toolTip1.SetToolTip(this.chk_Ed_Virtlines, "Enables accessing of \"virtual\" lines past the end of the file. (Feature not avail" +
     "able)");
     this.chk_Ed_Virtlines.CheckedChanged += new System.EventHandler(this.chk_Ed_Virtlines_CheckedChanged);
     //
     // chk_Ed_ShowLines
     //
     this.chk_Ed_ShowLines.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chk_Ed_ShowLines.Location = new System.Drawing.Point(16, 232);
     this.chk_Ed_ShowLines.Name = "chk_Ed_ShowLines";
     this.chk_Ed_ShowLines.Size = new System.Drawing.Size(144, 16);
     this.chk_Ed_ShowLines.TabIndex = 6;
     this.chk_Ed_ShowLines.Text = "Show Line Numbers";
     this.toolTip1.SetToolTip(this.chk_Ed_ShowLines, "Shows line numbers in the left column.");
     this.chk_Ed_ShowLines.CheckedChanged += new System.EventHandler(this.chk_Ed_ShowLines_CheckedChanged);
     //
     // chk_Ed_ShowWhitespace
     //
     this.chk_Ed_ShowWhitespace.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chk_Ed_ShowWhitespace.Location = new System.Drawing.Point(16, 304);
     this.chk_Ed_ShowWhitespace.Name = "chk_Ed_ShowWhitespace";
     this.chk_Ed_ShowWhitespace.Size = new System.Drawing.Size(168, 16);
     this.chk_Ed_ShowWhitespace.TabIndex = 6;
     this.chk_Ed_ShowWhitespace.Text = "Show Whitespace Glyphs";
     this.toolTip1.SetToolTip(this.chk_Ed_ShowWhitespace, "Shows a glyph for every whitespace (space bar) character.");
     this.chk_Ed_ShowWhitespace.CheckedChanged += new System.EventHandler(this.chk_Ed_ShowWhitespace_CheckedChanged);
     //
     // chk_Ed_ShowNewline
     //
     this.chk_Ed_ShowNewline.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chk_Ed_ShowNewline.Location = new System.Drawing.Point(16, 256);
     this.chk_Ed_ShowNewline.Name = "chk_Ed_ShowNewline";
     this.chk_Ed_ShowNewline.Size = new System.Drawing.Size(168, 16);
     this.chk_Ed_ShowNewline.TabIndex = 6;
     this.chk_Ed_ShowNewline.Text = "Show Newline Glyphs";
     this.toolTip1.SetToolTip(this.chk_Ed_ShowNewline, "Displays a glyph for every carriage return/line feed combination.");
     this.chk_Ed_ShowNewline.CheckedChanged += new System.EventHandler(this.chk_Ed_ShowNewline_CheckedChanged);
     //
     // chk_Ed_ShowBrackets
     //
     this.chk_Ed_ShowBrackets.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chk_Ed_ShowBrackets.Location = new System.Drawing.Point(16, 160);
     this.chk_Ed_ShowBrackets.Name = "chk_Ed_ShowBrackets";
     this.chk_Ed_ShowBrackets.Size = new System.Drawing.Size(168, 16);
     this.chk_Ed_ShowBrackets.TabIndex = 6;
     this.chk_Ed_ShowBrackets.Text = "Enable Bracket Highlighting";
     this.toolTip1.SetToolTip(this.chk_Ed_ShowBrackets, "Automatically highlights matching parentheses, brackets, or braces while the curs" +
     "or is adjacent to it.");
     this.chk_Ed_ShowBrackets.CheckedChanged += new System.EventHandler(this.chk_Ed_ShowBrackets_CheckedChanged);
     //
     // chk_Ed_Wordwrap
     //
     this.chk_Ed_Wordwrap.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chk_Ed_Wordwrap.Location = new System.Drawing.Point(16, 208);
     this.chk_Ed_Wordwrap.Name = "chk_Ed_Wordwrap";
     this.chk_Ed_Wordwrap.Size = new System.Drawing.Size(168, 16);
     this.chk_Ed_Wordwrap.TabIndex = 6;
     this.chk_Ed_Wordwrap.Text = "Enable Wordwrap";
     this.toolTip1.SetToolTip(this.chk_Ed_Wordwrap, "Wraps text that passes the horizontal boundary of the text editor to the next lin" +
     "e.");
     this.chk_Ed_Wordwrap.CheckedChanged += new System.EventHandler(this.chk_Ed_Wordwrap_CheckedChanged);
     //
     // chk_Ed_ShowTabs
     //
     this.chk_Ed_ShowTabs.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chk_Ed_ShowTabs.Location = new System.Drawing.Point(16, 280);
     this.chk_Ed_ShowTabs.Name = "chk_Ed_ShowTabs";
     this.chk_Ed_ShowTabs.Size = new System.Drawing.Size(168, 16);
     this.chk_Ed_ShowTabs.TabIndex = 6;
     this.chk_Ed_ShowTabs.Text = "Show Tab Glyphs";
     this.toolTip1.SetToolTip(this.chk_Ed_ShowTabs, "Shows a glyph for all TAB characters.");
     this.chk_Ed_ShowTabs.CheckedChanged += new System.EventHandler(this.chk_Ed_ShowTabs_CheckedChanged);
     //
     // chk_Ed_Errs
     //
     this.chk_Ed_Errs.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chk_Ed_Errs.Location = new System.Drawing.Point(16, 136);
     this.chk_Ed_Errs.Name = "chk_Ed_Errs";
     this.chk_Ed_Errs.Size = new System.Drawing.Size(184, 16);
     this.chk_Ed_Errs.TabIndex = 6;
     this.chk_Ed_Errs.Text = "Check for errors while typing";
     this.toolTip1.SetToolTip(this.chk_Ed_Errs, "Underlines detected syntax errors in red while typing.");
     this.chk_Ed_Errs.CheckedChanged += new System.EventHandler(this.chk_Ed_Errs_CheckedChanged);
     //
     // chkScrollHint
     //
     this.chkScrollHint.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chkScrollHint.Location = new System.Drawing.Point(16, 184);
     this.chkScrollHint.Name = "chkScrollHint";
     this.chkScrollHint.Size = new System.Drawing.Size(112, 16);
     this.chkScrollHint.TabIndex = 1;
     this.chkScrollHint.Text = "Enable Scroll Hint";
     this.toolTip1.SetToolTip(this.chkScrollHint, "Displays passing line numbers in a tooltip while scrolling.");
     this.chkScrollHint.CheckedChanged += new System.EventHandler(this.chkScrollHint_CheckedChanged);
     //
     // chkAutoColl
     //
     this.chkAutoColl.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chkAutoColl.Location = new System.Drawing.Point(16, 112);
     this.chkAutoColl.Name = "chkAutoColl";
     this.chkAutoColl.Size = new System.Drawing.Size(136, 16);
     this.chkAutoColl.TabIndex = 1;
     this.chkAutoColl.Text = "Auto-Collapse Regions";
     this.toolTip1.SetToolTip(this.chkAutoColl, "Automatically collapses __REGION and __END blocks when a file is opened.");
     this.chkAutoColl.CheckedChanged += new System.EventHandler(this.chkAutoColl_CheckedChanged);
     //
     // chk_E_IndentGuides
     //
     this.chk_E_IndentGuides.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chk_E_IndentGuides.Location = new System.Drawing.Point(216, 180);
     this.chk_E_IndentGuides.Name = "chk_E_IndentGuides";
     this.chk_E_IndentGuides.Size = new System.Drawing.Size(136, 32);
     this.chk_E_IndentGuides.TabIndex = 1;
     this.chk_E_IndentGuides.Text = "Enable Indent Guides";
     this.toolTip1.SetToolTip(this.chk_E_IndentGuides, "Enables or disables the vertical guidelines displayed on indents.");
     this.chk_E_IndentGuides.CheckedChanged += new System.EventHandler(this.chk_E_IndentGuides_CheckedChanged);
     //
     // chk_Ed_CodeFold
     //
     this.chk_Ed_CodeFold.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chk_Ed_CodeFold.Location = new System.Drawing.Point(216, 142);
     this.chk_Ed_CodeFold.Name = "chk_Ed_CodeFold";
     this.chk_Ed_CodeFold.Size = new System.Drawing.Size(136, 32);
     this.chk_Ed_CodeFold.TabIndex = 1;
     this.chk_Ed_CodeFold.Text = "Enable Automatic Code Folding";
     this.toolTip1.SetToolTip(this.chk_Ed_CodeFold, "Enables non-region codeblocks to be collapsed.");
     this.chk_Ed_CodeFold.CheckedChanged += new System.EventHandler(this.chk_Ed_CodeFold_CheckedChanged);
     //
     // chk_Ed_AutoIndent
     //
     this.chk_Ed_AutoIndent.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.chk_Ed_AutoIndent.Location = new System.Drawing.Point(216, 104);
     this.chk_Ed_AutoIndent.Name = "chk_Ed_AutoIndent";
     this.chk_Ed_AutoIndent.Size = new System.Drawing.Size(136, 32);
     this.chk_Ed_AutoIndent.TabIndex = 1;
     this.chk_Ed_AutoIndent.Text = "Auto Indent/Outdent on Brace";
     this.toolTip1.SetToolTip(this.chk_Ed_AutoIndent, "Automatically tabs in or untabs on open brace and close brace respectively.");
     this.chk_Ed_AutoIndent.CheckedChanged += new System.EventHandler(this.chk_Ed_AutoIndent_CheckedChanged);
     //
     // cmdFlushAuth
     //
     this.cmdFlushAuth.Enabled = false;
     this.cmdFlushAuth.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmdFlushAuth.Location = new System.Drawing.Point(9, 398);
     this.cmdFlushAuth.Name = "cmdFlushAuth";
     this.cmdFlushAuth.Size = new System.Drawing.Size(152, 24);
     this.cmdFlushAuth.TabIndex = 6;
     this.cmdFlushAuth.Text = "Flush Authorization Cache";
     this.cmdFlushAuth.Visible = false;
     this.cmdFlushAuth.Click += new System.EventHandler(this.cmdFlushAuth_Click);
     //
     // cmdCancel
     //
     this.cmdCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cmdCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmdCancel.Location = new System.Drawing.Point(304, 400);
     this.cmdCancel.Name = "cmdCancel";
     this.cmdCancel.Size = new System.Drawing.Size(80, 24);
     this.cmdCancel.TabIndex = 2;
     this.cmdCancel.Text = "Cancel";
     this.cmdCancel.Click += new System.EventHandler(this.cmdCancel_Click);
     //
     // cmdOK
     //
     this.cmdOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmdOK.Location = new System.Drawing.Point(216, 400);
     this.cmdOK.Name = "cmdOK";
     this.cmdOK.Size = new System.Drawing.Size(80, 24);
     this.cmdOK.TabIndex = 2;
     this.cmdOK.Text = "OK";
     this.cmdOK.Click += new System.EventHandler(this.cmdOK_Click);
     //
     // ctxReset
     //
     this.ctxReset.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.ctxReset_DefaultClr,
     this.ctxReset_NoolnessDarkClr});
     this.ctxReset.Name = "ctxReset";
     this.ctxReset.Size = new System.Drawing.Size(211, 48);
     //
     // ctxReset_DefaultClr
     //
     this.ctxReset_DefaultClr.Name = "ctxReset_DefaultClr";
     this.ctxReset_DefaultClr.Size = new System.Drawing.Size(210, 22);
     this.ctxReset_DefaultClr.Text = "TorqueDev Default Colors";
     this.ctxReset_DefaultClr.Click += new System.EventHandler(this.ctxReset_DefaultClr_Click);
     //
     // ctxReset_NoolnessDarkClr
     //
     this.ctxReset_NoolnessDarkClr.Name = "ctxReset_NoolnessDarkClr";
     this.ctxReset_NoolnessDarkClr.Size = new System.Drawing.Size(210, 22);
     this.ctxReset_NoolnessDarkClr.Text = "Noolness Dark Colors";
     this.ctxReset_NoolnessDarkClr.Click += new System.EventHandler(this.ctxReset_NoolnessDarkClr_Click);
     //
     // frmConfig
     //
     this.AcceptButton = this.cmdOK;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.cmdCancel;
     this.ClientSize = new System.Drawing.Size(394, 431);
     this.Controls.Add(this.cmdCancel);
     this.Controls.Add(this.tabMain);
     this.Controls.Add(this.cmdOK);
     this.Controls.Add(this.cmdFlushAuth);
     this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "frmConfig";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Preferences";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmConfig_FormClosing);
     this.Load += new System.EventHandler(this.frmConfig_Load);
     this.tabMain.ResumeLayout(false);
     this.tpGeneral.ResumeLayout(false);
     this.tpGeneral.PerformLayout();
     this.groupBox3.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.tpHighlighting.ResumeLayout(false);
     this.tpHighlighting.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
     this.tpShortcut.ResumeLayout(false);
     this.tpShortcut.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
     this.tpEditor.ResumeLayout(false);
     this.tpEditor.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
     this.ctxReset.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #8
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     ActiproSoftware.SyntaxEditor.Document document1 = new ActiproSoftware.SyntaxEditor.Document();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmSnippetNew));
     this.label1 = new System.Windows.Forms.Label();
     this.txtTitle = new System.Windows.Forms.TextBox();
     this.txtDescr = new System.Windows.Forms.TextBox();
     this.label2 = new System.Windows.Forms.Label();
     this.txtKeywords = new System.Windows.Forms.TextBox();
     this.label3 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.txtCode = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
     this.txtCategory = new System.Windows.Forms.TextBox();
     this.label5 = new System.Windows.Forms.Label();
     this.cmdCancel = new System.Windows.Forms.Button();
     this.cmdCreate = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(104, 16);
     this.label1.TabIndex = 0;
     this.label1.Text = "Snippet Title:";
     //
     // txtTitle
     //
     this.txtTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.txtTitle.Location = new System.Drawing.Point(128, 8);
     this.txtTitle.Name = "txtTitle";
     this.txtTitle.Size = new System.Drawing.Size(536, 20);
     this.txtTitle.TabIndex = 0;
     this.txtTitle.Text = "";
     //
     // txtDescr
     //
     this.txtDescr.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.txtDescr.Location = new System.Drawing.Point(128, 40);
     this.txtDescr.Name = "txtDescr";
     this.txtDescr.Size = new System.Drawing.Size(536, 20);
     this.txtDescr.TabIndex = 1;
     this.txtDescr.Text = "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 40);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(112, 16);
     this.label2.TabIndex = 0;
     this.label2.Text = "Snippet Description:";
     //
     // txtKeywords
     //
     this.txtKeywords.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.txtKeywords.Location = new System.Drawing.Point(128, 104);
     this.txtKeywords.Name = "txtKeywords";
     this.txtKeywords.Size = new System.Drawing.Size(536, 20);
     this.txtKeywords.TabIndex = 3;
     this.txtKeywords.Text = "";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(8, 104);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(112, 16);
     this.label3.TabIndex = 0;
     this.label3.Text = "Snippet Keywords:";
     //
     // label4
     //
     this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.label4.Location = new System.Drawing.Point(320, 128);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(344, 16);
     this.label4.TabIndex = 0;
     this.label4.Text = "(Separate keywords using spaces only)";
     this.label4.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // txtCode
     //
     this.txtCode.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.txtCode.Document = document1;
     this.txtCode.Location = new System.Drawing.Point(8, 152);
     this.txtCode.Name = "txtCode";
     this.txtCode.Size = new System.Drawing.Size(656, 392);
     this.txtCode.SplitType = ActiproSoftware.SyntaxEditor.SyntaxEditorSplitType.None;
     this.txtCode.TabIndex = 4;
     //
     // txtCategory
     //
     this.txtCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.txtCategory.Location = new System.Drawing.Point(128, 72);
     this.txtCategory.Name = "txtCategory";
     this.txtCategory.Size = new System.Drawing.Size(536, 20);
     this.txtCategory.TabIndex = 2;
     this.txtCategory.Text = "";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(8, 72);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(112, 16);
     this.label5.TabIndex = 0;
     this.label5.Text = "Snippet Category:";
     //
     // cmdCancel
     //
     this.cmdCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cmdCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cmdCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmdCancel.Location = new System.Drawing.Point(568, 552);
     this.cmdCancel.Name = "cmdCancel";
     this.cmdCancel.Size = new System.Drawing.Size(96, 24);
     this.cmdCancel.TabIndex = 6;
     this.cmdCancel.Text = "Cancel";
     this.cmdCancel.Click += new System.EventHandler(this.cmdCancel_Click);
     //
     // cmdCreate
     //
     this.cmdCreate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cmdCreate.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cmdCreate.Location = new System.Drawing.Point(456, 552);
     this.cmdCreate.Name = "cmdCreate";
     this.cmdCreate.Size = new System.Drawing.Size(96, 24);
     this.cmdCreate.TabIndex = 5;
     this.cmdCreate.Text = "Create";
     //
     // frmSnippetNew
     //
     this.AcceptButton = this.cmdCreate;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.cmdCancel;
     this.ClientSize = new System.Drawing.Size(672, 589);
     this.Controls.Add(this.cmdCancel);
     this.Controls.Add(this.txtCode);
     this.Controls.Add(this.txtTitle);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.txtDescr);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.txtKeywords);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.txtCategory);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.cmdCreate);
     this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "frmSnippetNew";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "New Code Snippet";
     this.Load += new System.EventHandler(this.frmSnippetNew_Load);
     this.ResumeLayout(false);
 }