|
|
@@ -44,7 +44,6 @@ namespace UAS_LabelMachine.PublicMethod
|
|
|
//**放在这里,是先记录控件本身,后记录控件的子控件
|
|
|
if (c.Controls.Count > 0)
|
|
|
AddControl(c);//窗体内其余控件还可能嵌套控件(比如panel),要单独抽出,因为要递归调用
|
|
|
- System.Console.WriteLine("初始位置:" + objCtrl.Left + "," + objCtrl.Top + "," + objCtrl.Width + "," + objCtrl.Height);
|
|
|
}
|
|
|
}
|
|
|
//(3.2)控件自适应大小,
|
|
|
@@ -96,8 +95,6 @@ namespace UAS_LabelMachine.PublicMethod
|
|
|
if (c.Controls.Count > 0)
|
|
|
{
|
|
|
AutoScaleControl(c, wScale, hScale);//窗体内其余控件还可能嵌套控件(比如panel),要单独抽出,因为要递归调用
|
|
|
- System.Console.WriteLine(c.GetType());
|
|
|
- System.Console.WriteLine("修改之后:" + c.Left + "," + c.Top + "," + c.Width + "," + c.Height);
|
|
|
}
|
|
|
}
|
|
|
if (ctl is DataGridView)
|