mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
BUG-1667 removed horizontal alignment of textbox in input mode, as it caused problems with textbox focus and could not be implemented consistently anyway (no vertical alignment possible)
This commit is contained in:
parent
42437772ad
commit
d395c00f9d
1 changed files with 0 additions and 20 deletions
|
@ -308,26 +308,6 @@ namespace Greenshot.Drawing {
|
|||
Color lineColor = GetFieldValueAsColor(FieldType.LINE_COLOR);
|
||||
_textBox.ForeColor = lineColor;
|
||||
_textBox.Font = _font;
|
||||
StringAlignment horizontalAlignment = (StringAlignment)GetFieldValue(FieldType.TEXT_HORIZONTAL_ALIGNMENT);
|
||||
switch (horizontalAlignment) {
|
||||
case StringAlignment.Center:
|
||||
_textBox.TextAlign = HorizontalAlignment.Center;
|
||||
break;
|
||||
case StringAlignment.Far:
|
||||
if (_textBox.RightToLeft != RightToLeft.Yes) {
|
||||
_textBox.TextAlign = HorizontalAlignment.Right;
|
||||
} else {
|
||||
_textBox.TextAlign = HorizontalAlignment.Left;
|
||||
}
|
||||
break;
|
||||
case StringAlignment.Near:
|
||||
if (_textBox.RightToLeft != RightToLeft.Yes) {
|
||||
_textBox.TextAlign = HorizontalAlignment.Left;
|
||||
} else {
|
||||
_textBox.TextAlign = HorizontalAlignment.Right;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void textBox_KeyDown(object sender, KeyEventArgs e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue