Skip to content

Commit 7426df2

Browse files
committed
Clickable yellow triangles do the same as the Shift F5 keystroke.
1 parent 971ae06 commit 7426df2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Source/RunActivity/Viewer3D/Popups/TrainDrivingWindow.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ protected override ControlLayout Layout(ControlLayout layout)
375375
var expandWindow = normalTextMode ? '\u25C4' : '\u25BA';// ◀ : ▶
376376
hbox.Add(ExpandWindow = new Label(hbox.RemainingWidth - TextSize, 0, TextSize, hbox.RemainingHeight, expandWindow.ToString(), LabelAlignment.Right));
377377
ExpandWindow.Color = Color.Yellow;
378+
ExpandWindow.Click += new Action<Control, Point>(ExpandWindow_Click);
378379
}
379380
// Separator line
380381
if (data.FirstCol.Contains("Sprtr"))
@@ -394,6 +395,12 @@ void FontToBold_Click(Control arg1, Point arg2)
394395
UpdateWindowSize();
395396
}
396397

398+
void ExpandWindow_Click(Control arg1, Point arg2)
399+
{
400+
normalTextMode = !normalTextMode;
401+
UpdateWindowSize();
402+
}
403+
397404
public override void TabAction() => CycleMode();
398405

399406
/// <summary>

0 commit comments

Comments
 (0)