Fix StartEndForm in StandartCameraPurchaseOrder layout and positioning, remove Scroll Bar
This commit is contained in:
parent
693cf7e4e2
commit
8301971906
@ -331,7 +331,7 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
|
||||
Width = 1420;
|
||||
}
|
||||
|
||||
OkButtonPosition();
|
||||
PositionBottomControls();
|
||||
}
|
||||
|
||||
void OkButtonPosition()
|
||||
@ -346,6 +346,32 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
|
||||
}
|
||||
}
|
||||
|
||||
private void PositionBottomControls()
|
||||
{
|
||||
const int rightMargin = 10;
|
||||
const int gap = 12;
|
||||
|
||||
// OK vždy úplne vpravo
|
||||
okButton.Location = new Point(
|
||||
ClientSize.Width - okButton.Width - rightMargin,
|
||||
okButton.Location.Y);
|
||||
|
||||
// Checkbox iba v režime End
|
||||
if (mode == Tst.End)
|
||||
{
|
||||
checkBoxEnableStartBox.Location = new Point(
|
||||
okButton.Left - checkBoxEnableStartBox.Width - gap,
|
||||
okButton.Top +
|
||||
(okButton.Height - checkBoxEnableStartBox.Height) / 2);
|
||||
}
|
||||
|
||||
okButton.Anchor =
|
||||
AnchorStyles.Bottom | AnchorStyles.Right;
|
||||
|
||||
checkBoxEnableStartBox.Anchor =
|
||||
AnchorStyles.Bottom | AnchorStyles.Right;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Make sure the layout of labels/text boxes on the screen
|
||||
/// corresponds to the layout of watermeters of the test bench.
|
||||
@ -489,6 +515,8 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
|
||||
imageProcessingThread = new Thread(new ThreadStart(ImageProcessingThread));
|
||||
imageProcessingThread.Start();
|
||||
}
|
||||
|
||||
PositionBottomControls();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user