Fix StartEndForm in StandartCameraPurchaseOrder layout and positioning, remove Scroll Bar

This commit is contained in:
Michal Buzik 2026-07-21 16:03:43 +02:00
parent 693cf7e4e2
commit 8301971906

View File

@ -331,7 +331,7 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
Width = 1420;
}
OkButtonPosition();
PositionBottomControls();
}
void OkButtonPosition()
@ -345,6 +345,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
@ -489,6 +515,8 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
imageProcessingThread = new Thread(new ThreadStart(ImageProcessingThread));
imageProcessingThread.Start();
}
PositionBottomControls();
}
/// <summary>