Fix behavior of Require31 checkbox, label, and textbox
This commit is contained in:
parent
43fd63e5a0
commit
e37449d485
@ -100,9 +100,10 @@
|
||||
// chkRequire31
|
||||
//
|
||||
this.chkRequire31.AutoSize = true;
|
||||
this.chkRequire31.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||
this.chkRequire31.Location = new System.Drawing.Point(19, 149);
|
||||
this.chkRequire31.Name = "chkRequire31";
|
||||
this.chkRequire31.Size = new System.Drawing.Size(128, 17);
|
||||
this.chkRequire31.Size = new System.Drawing.Size(134, 18);
|
||||
this.chkRequire31.TabIndex = 3;
|
||||
this.chkRequire31.Text = "&Require Windows 3.1";
|
||||
this.chkRequire31.UseVisualStyleBackColor = true;
|
||||
@ -186,6 +187,7 @@
|
||||
// lblRequire31
|
||||
//
|
||||
this.lblRequire31.AutoSize = true;
|
||||
this.lblRequire31.Enabled = false;
|
||||
this.lblRequire31.Location = new System.Drawing.Point(51, 175);
|
||||
this.lblRequire31.Name = "lblRequire31";
|
||||
this.lblRequire31.Size = new System.Drawing.Size(77, 13);
|
||||
|
||||
@ -34,6 +34,7 @@ namespace UniversalEditor.Editors.Setup.Microsoft.ACME.BootstrapScript
|
||||
private void chkRequire31_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
txtRequire31.ReadOnly = !chkRequire31.Checked;
|
||||
lblRequire31.Enabled = chkRequire31.Checked;
|
||||
|
||||
BootstrapScriptObjectModel script = (ObjectModel as BootstrapScriptObjectModel);
|
||||
if (script == null) return;
|
||||
@ -56,8 +57,11 @@ namespace UniversalEditor.Editors.Setup.Microsoft.ACME.BootstrapScript
|
||||
txtTemporaryDirectoryName.Text = script.TemporaryDirectoryName;
|
||||
txtCommandLine.Text = script.CommandLine;
|
||||
txtWindowClassName.Text = script.WindowClassName;
|
||||
chkRequire31.Enabled = script.Require31Enabled;
|
||||
|
||||
chkRequire31.Checked = script.Require31Enabled;
|
||||
txtRequire31.ReadOnly = !script.Require31Enabled;
|
||||
txtRequire31.Text = script.Require31Message;
|
||||
lblRequire31.Enabled = script.Require31Enabled;
|
||||
}
|
||||
|
||||
private void txtWindowTitle_TextChanged(object sender, EventArgs e)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user