Lua Writer - color config - re-hook up the load event that got clobbered at some point

This commit is contained in:
adelikat 2012-07-24 01:39:19 +00:00
parent 6c5c33ea7a
commit 08e79f26a2
2 changed files with 155 additions and 149 deletions

View File

@ -28,155 +28,157 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.OK = new System.Windows.Forms.Button(); this.OK = new System.Windows.Forms.Button();
this.Cancel = new System.Windows.Forms.Button(); this.Cancel = new System.Windows.Forms.Button();
this.panelKeyWord = new System.Windows.Forms.Panel(); this.panelKeyWord = new System.Windows.Forms.Panel();
this.lblKeyWords = new System.Windows.Forms.Label(); this.lblKeyWords = new System.Windows.Forms.Label();
this.lblComments = new System.Windows.Forms.Label(); this.lblComments = new System.Windows.Forms.Label();
this.panelComment = new System.Windows.Forms.Panel(); this.panelComment = new System.Windows.Forms.Panel();
this.panelString = new System.Windows.Forms.Panel(); this.panelString = new System.Windows.Forms.Panel();
this.lblStrings = new System.Windows.Forms.Label(); this.lblStrings = new System.Windows.Forms.Label();
this.panelSymbol = new System.Windows.Forms.Panel(); this.panelSymbol = new System.Windows.Forms.Panel();
this.lblSymbols = new System.Windows.Forms.Label(); this.lblSymbols = new System.Windows.Forms.Label();
this.panelLibrary = new System.Windows.Forms.Panel(); this.panelLibrary = new System.Windows.Forms.Panel();
this.lblLibraries = new System.Windows.Forms.Label(); this.lblLibraries = new System.Windows.Forms.Label();
this.KeyWordColorDialog = new System.Windows.Forms.ColorDialog(); this.KeyWordColorDialog = new System.Windows.Forms.ColorDialog();
this.CommentColorDialog = new System.Windows.Forms.ColorDialog(); this.CommentColorDialog = new System.Windows.Forms.ColorDialog();
this.StringColorDialog = new System.Windows.Forms.ColorDialog(); this.StringColorDialog = new System.Windows.Forms.ColorDialog();
this.SymbolColorDialog = new System.Windows.Forms.ColorDialog(); this.SymbolColorDialog = new System.Windows.Forms.ColorDialog();
this.LibraryColorDialog = new System.Windows.Forms.ColorDialog(); this.LibraryColorDialog = new System.Windows.Forms.ColorDialog();
this.SuspendLayout(); this.SuspendLayout();
// //
// OK // OK
// //
this.OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.OK.Location = new System.Drawing.Point(116, 227); this.OK.Location = new System.Drawing.Point(116, 227);
this.OK.Name = "OK"; this.OK.Name = "OK";
this.OK.Size = new System.Drawing.Size(75, 23); this.OK.Size = new System.Drawing.Size(75, 23);
this.OK.TabIndex = 10; this.OK.TabIndex = 10;
this.OK.Text = "&OK"; this.OK.Text = "&OK";
this.OK.UseVisualStyleBackColor = true; this.OK.UseVisualStyleBackColor = true;
// this.OK.Click += new System.EventHandler(this.OK_Click);
// Cancel //
// // Cancel
this.Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); //
this.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.Cancel.Location = new System.Drawing.Point(197, 227); this.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.Cancel.Name = "Cancel"; this.Cancel.Location = new System.Drawing.Point(197, 227);
this.Cancel.Size = new System.Drawing.Size(75, 23); this.Cancel.Name = "Cancel";
this.Cancel.TabIndex = 11; this.Cancel.Size = new System.Drawing.Size(75, 23);
this.Cancel.Text = "&Cancel"; this.Cancel.TabIndex = 11;
this.Cancel.UseVisualStyleBackColor = true; this.Cancel.Text = "&Cancel";
// this.Cancel.UseVisualStyleBackColor = true;
// panelKeyWord //
// // panelKeyWord
this.panelKeyWord.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; //
this.panelKeyWord.Location = new System.Drawing.Point(105, 10); this.panelKeyWord.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panelKeyWord.Name = "panelKeyWord"; this.panelKeyWord.Location = new System.Drawing.Point(105, 10);
this.panelKeyWord.Size = new System.Drawing.Size(20, 20); this.panelKeyWord.Name = "panelKeyWord";
this.panelKeyWord.TabIndex = 1; this.panelKeyWord.Size = new System.Drawing.Size(20, 20);
// this.panelKeyWord.TabIndex = 1;
// lblKeyWords //
// // lblKeyWords
this.lblKeyWords.AutoSize = true; //
this.lblKeyWords.Location = new System.Drawing.Point(40, 17); this.lblKeyWords.AutoSize = true;
this.lblKeyWords.Name = "lblKeyWords"; this.lblKeyWords.Location = new System.Drawing.Point(40, 17);
this.lblKeyWords.Size = new System.Drawing.Size(59, 13); this.lblKeyWords.Name = "lblKeyWords";
this.lblKeyWords.TabIndex = 0; this.lblKeyWords.Size = new System.Drawing.Size(59, 13);
this.lblKeyWords.Text = "Key Words"; this.lblKeyWords.TabIndex = 0;
// this.lblKeyWords.Text = "Key Words";
// lblComments //
// // lblComments
this.lblComments.AutoSize = true; //
this.lblComments.Location = new System.Drawing.Point(43, 57); this.lblComments.AutoSize = true;
this.lblComments.Name = "lblComments"; this.lblComments.Location = new System.Drawing.Point(43, 57);
this.lblComments.Size = new System.Drawing.Size(56, 13); this.lblComments.Name = "lblComments";
this.lblComments.TabIndex = 2; this.lblComments.Size = new System.Drawing.Size(56, 13);
this.lblComments.Text = "Comments"; this.lblComments.TabIndex = 2;
// this.lblComments.Text = "Comments";
// panelComment //
// // panelComment
this.panelComment.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; //
this.panelComment.Location = new System.Drawing.Point(105, 50); this.panelComment.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panelComment.Name = "panelComment"; this.panelComment.Location = new System.Drawing.Point(105, 50);
this.panelComment.Size = new System.Drawing.Size(20, 20); this.panelComment.Name = "panelComment";
this.panelComment.TabIndex = 3; this.panelComment.Size = new System.Drawing.Size(20, 20);
// this.panelComment.TabIndex = 3;
// panelString //
// // panelString
this.panelString.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; //
this.panelString.Location = new System.Drawing.Point(105, 90); this.panelString.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panelString.Name = "panelString"; this.panelString.Location = new System.Drawing.Point(105, 90);
this.panelString.Size = new System.Drawing.Size(20, 20); this.panelString.Name = "panelString";
this.panelString.TabIndex = 5; this.panelString.Size = new System.Drawing.Size(20, 20);
// this.panelString.TabIndex = 5;
// lblStrings //
// // lblStrings
this.lblStrings.AutoSize = true; //
this.lblStrings.Location = new System.Drawing.Point(60, 97); this.lblStrings.AutoSize = true;
this.lblStrings.Name = "lblStrings"; this.lblStrings.Location = new System.Drawing.Point(60, 97);
this.lblStrings.Size = new System.Drawing.Size(39, 13); this.lblStrings.Name = "lblStrings";
this.lblStrings.TabIndex = 4; this.lblStrings.Size = new System.Drawing.Size(39, 13);
this.lblStrings.Text = "Strings"; this.lblStrings.TabIndex = 4;
// this.lblStrings.Text = "Strings";
// panelSymbol //
// // panelSymbol
this.panelSymbol.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; //
this.panelSymbol.Location = new System.Drawing.Point(105, 130); this.panelSymbol.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panelSymbol.Name = "panelSymbol"; this.panelSymbol.Location = new System.Drawing.Point(105, 130);
this.panelSymbol.Size = new System.Drawing.Size(20, 20); this.panelSymbol.Name = "panelSymbol";
this.panelSymbol.TabIndex = 7; this.panelSymbol.Size = new System.Drawing.Size(20, 20);
// this.panelSymbol.TabIndex = 7;
// lblSymbols //
// // lblSymbols
this.lblSymbols.AutoSize = true; //
this.lblSymbols.Location = new System.Drawing.Point(53, 137); this.lblSymbols.AutoSize = true;
this.lblSymbols.Name = "lblSymbols"; this.lblSymbols.Location = new System.Drawing.Point(53, 137);
this.lblSymbols.Size = new System.Drawing.Size(46, 13); this.lblSymbols.Name = "lblSymbols";
this.lblSymbols.TabIndex = 6; this.lblSymbols.Size = new System.Drawing.Size(46, 13);
this.lblSymbols.Text = "Symbols"; this.lblSymbols.TabIndex = 6;
// this.lblSymbols.Text = "Symbols";
// panelLibrary //
// // panelLibrary
this.panelLibrary.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; //
this.panelLibrary.Location = new System.Drawing.Point(105, 170); this.panelLibrary.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panelLibrary.Name = "panelLibrary"; this.panelLibrary.Location = new System.Drawing.Point(105, 170);
this.panelLibrary.Size = new System.Drawing.Size(20, 20); this.panelLibrary.Name = "panelLibrary";
this.panelLibrary.TabIndex = 9; this.panelLibrary.Size = new System.Drawing.Size(20, 20);
// this.panelLibrary.TabIndex = 9;
// lblLibraries //
// // lblLibraries
this.lblLibraries.AutoSize = true; //
this.lblLibraries.Location = new System.Drawing.Point(53, 177); this.lblLibraries.AutoSize = true;
this.lblLibraries.Name = "lblLibraries"; this.lblLibraries.Location = new System.Drawing.Point(53, 177);
this.lblLibraries.Size = new System.Drawing.Size(46, 13); this.lblLibraries.Name = "lblLibraries";
this.lblLibraries.TabIndex = 8; this.lblLibraries.Size = new System.Drawing.Size(46, 13);
this.lblLibraries.Text = "Libraries"; this.lblLibraries.TabIndex = 8;
// this.lblLibraries.Text = "Libraries";
// LuaWriterColorConfig //
// // LuaWriterColorConfig
this.AcceptButton = this.OK; //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AcceptButton = this.OK;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.CancelButton = this.Cancel; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(284, 262); this.CancelButton = this.Cancel;
this.Controls.Add(this.panelLibrary); this.ClientSize = new System.Drawing.Size(284, 262);
this.Controls.Add(this.lblLibraries); this.Controls.Add(this.panelLibrary);
this.Controls.Add(this.panelSymbol); this.Controls.Add(this.lblLibraries);
this.Controls.Add(this.lblSymbols); this.Controls.Add(this.panelSymbol);
this.Controls.Add(this.panelString); this.Controls.Add(this.lblSymbols);
this.Controls.Add(this.lblStrings); this.Controls.Add(this.panelString);
this.Controls.Add(this.panelComment); this.Controls.Add(this.lblStrings);
this.Controls.Add(this.lblComments); this.Controls.Add(this.panelComment);
this.Controls.Add(this.lblKeyWords); this.Controls.Add(this.lblComments);
this.Controls.Add(this.panelKeyWord); this.Controls.Add(this.lblKeyWords);
this.Controls.Add(this.Cancel); this.Controls.Add(this.panelKeyWord);
this.Controls.Add(this.OK); this.Controls.Add(this.Cancel);
this.Name = "LuaWriterColorConfig"; this.Controls.Add(this.OK);
this.ShowIcon = false; this.Name = "LuaWriterColorConfig";
this.Text = "Syntax Highlight Config"; this.ShowIcon = false;
this.ResumeLayout(false); this.Text = "Syntax Highlight Config";
this.PerformLayout(); this.Load += new System.EventHandler(this.LuaWriterColorConfig_Load);
this.ResumeLayout(false);
this.PerformLayout();
} }

View File

@ -78,5 +78,9 @@ namespace BizHawk.MultiClient.tools
} }
} }
private void OK_Click(object sender, EventArgs e)
{
}
} }
} }