dialog form 사이즈 조정

main
Seonjae 2023-04-06 11:25:48 +09:00
parent 37388660d0
commit 9b1014d17e
6 changed files with 18 additions and 4 deletions

View File

@ -137,8 +137,6 @@ namespace INT_PT002.Controls
{ {
SmartSplash.Start(SmartSplash.BuiltInLoadingImages.PROCESSING1, 200); SmartSplash.Start(SmartSplash.BuiltInLoadingImages.PROCESSING1, 200);
this.ParentForm.Enabled = false;
// ServoMotor 1 // ServoMotor 1
this.labelMotor1Origin.Text = this.ParentForm.ParentForm.ServoMotorRead2(1, ServoMotorAddress.CMD21); this.labelMotor1Origin.Text = this.ParentForm.ParentForm.ServoMotorRead2(1, ServoMotorAddress.CMD21);
this.labelMotor1Front1.Text = this.ParentForm.ParentForm.ServoMotorRead2(1, ServoMotorAddress.CMD16); this.labelMotor1Front1.Text = this.ParentForm.ParentForm.ServoMotorRead2(1, ServoMotorAddress.CMD16);
@ -198,6 +196,9 @@ namespace INT_PT002.Controls
public void DisplayRefresh() public void DisplayRefresh()
{ {
// 서보설정 읽는동안 Enable = false
this.ParentForm.Enabled = false;
this.ParentForm.ParentForm.CurrentSystemStatus.CurrentDisplayMode = Define.E_DisplayModeStore.IOTest; this.ParentForm.ParentForm.CurrentSystemStatus.CurrentDisplayMode = Define.E_DisplayModeStore.IOTest;
this.ParentForm.ParentForm.SetDisplayMode(Define.E_EquipmentMode.IOTest); this.ParentForm.ParentForm.SetDisplayMode(Define.E_EquipmentMode.IOTest);

View File

@ -69,6 +69,15 @@ namespace INT_PT002.Forms
} }
#endregion #endregion
#region Override Member
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
this.Size = new Size(600, 379);
}
#endregion
#region Event Handler #region Event Handler
private void buttonLogOn_Click(object sender, EventArgs e) private void buttonLogOn_Click(object sender, EventArgs e)
{ {

View File

@ -723,6 +723,8 @@ namespace INT_PT002.DialogForms
y = Screen.PrimaryScreen.Bounds.Height / 2 - this.Size.Height / 2; y = Screen.PrimaryScreen.Bounds.Height / 2 - this.Size.Height / 2;
this.Location = new Point(x, y); this.Location = new Point(x, y);
this.Size = new Size(450, 155);
} }
private void PictureBoxVisible(bool bValue) private void PictureBoxVisible(bool bValue)

View File

@ -257,7 +257,7 @@
this.Controls.Add(this.labelCaption); this.Controls.Add(this.labelCaption);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Name = "DialogFormNumKeyPad"; this.Name = "DialogFormNumKeyPad";
this.Text = "DialogFormNumKeyPad1"; this.Text = "KeyPad";
this.ResumeLayout(false); this.ResumeLayout(false);
} }

View File

@ -101,7 +101,7 @@ namespace INT_PT002.DialogForms
this.Location = new Point(x, y); this.Location = new Point(x, y);
this.Size = new Size(250, 443); this.Size = new Size(250, 415);
} }
private void InputNumber(string key) private void InputNumber(string key)

View File

@ -101,6 +101,8 @@ namespace INT_PT002.DialogForms
this.Location = new Point(x, y); this.Location = new Point(x, y);
this.Size = new Size(250, 356);
this.InputKey = ""; this.InputKey = "";
this.labelScreen.Text = ""; this.labelScreen.Text = "";
} }