|
@@ -353,8 +353,29 @@ namespace OTSIncAReportGraph.Controls
|
|
//将标尺定位到合理的位置上
|
|
//将标尺定位到合理的位置上
|
|
this.control_Ruler1.Location = new Point(10, MyPrimaryScreen.WorkingArea.Height - 300);
|
|
this.control_Ruler1.Location = new Point(10, MyPrimaryScreen.WorkingArea.Height - 300);
|
|
this.control_Ruler1.Visible = true;
|
|
this.control_Ruler1.Visible = true;
|
|
- this.control_Ruler1.SetValue(m_f_ruler_size);
|
|
|
|
- this.control_Ruler1.ShowString = Convert.ToInt32(100).ToString() + "μm";
|
|
|
|
|
|
+ if (d_onefixel_width > MyPrimaryScreen.WorkingArea.Width /2)
|
|
|
|
+ {
|
|
|
|
+ if (d_onefixel_width / 10 > MyPrimaryScreen.WorkingArea.Width/2)
|
|
|
|
+ {
|
|
|
|
+ this.control_Ruler1.SetValue(d_onefixel_width / 100);
|
|
|
|
+ m_f_ruler_size = d_onefixel_width / 100;
|
|
|
|
+ m_f_old_ruler_size = d_onefixel_width / 100;
|
|
|
|
+ this.control_Ruler1.ShowString = Convert.ToInt32(1).ToString() + "μm";
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ this.control_Ruler1.SetValue(d_onefixel_width / 10);
|
|
|
|
+ m_f_ruler_size = d_onefixel_width / 10;
|
|
|
|
+ m_f_old_ruler_size = d_onefixel_width / 10;
|
|
|
|
+ this.control_Ruler1.ShowString = Convert.ToInt32(10).ToString() + "μm";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ this.control_Ruler1.SetValue(m_f_ruler_size);
|
|
|
|
+ this.control_Ruler1.ShowString = Convert.ToInt32(100).ToString() + "μm";
|
|
|
|
+ }
|
|
|
|
+ this.control_Ruler1.Visible = true;
|
|
}
|
|
}
|
|
ProgressBarUpdate(100, table["str2"].ToString());
|
|
ProgressBarUpdate(100, table["str2"].ToString());
|
|
m_frm_userprogress.Visible = false;
|
|
m_frm_userprogress.Visible = false;
|
|
@@ -555,7 +576,6 @@ namespace OTSIncAReportGraph.Controls
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
//display GB field
|
|
//display GB field
|
|
if (m_CurGBFields.Count > 0)
|
|
if (m_CurGBFields.Count > 0)
|
|
{
|
|
{
|