mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Status bar snap (#384)
* KeyDown/Up support * updated demo * defined styles * Smarter StatusBar bottom tracking. * Prepping for https://github.com/migueldeicaza/gui.cs/issues/376 * Fixed StatusBar 'snap to bottom'
This commit is contained in:
@@ -551,7 +551,9 @@ static class Demo {
|
||||
new StatusItem(Key.F2, "~F2~ Load", null),
|
||||
new StatusItem(Key.F3, "~F3~ Save", null),
|
||||
new StatusItem(Key.ControlX, "~^X~ Quit", () => { if (Quit ()) top.Running = false; }),
|
||||
});
|
||||
}) {
|
||||
Parent = null,
|
||||
};
|
||||
|
||||
win.Add (drag, dragText);
|
||||
#if true
|
||||
@@ -570,6 +572,7 @@ static class Demo {
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
top.Add (win);
|
||||
//top.Add (menu);
|
||||
top.Add (menu, statusBar);
|
||||
|
||||
Reference in New Issue
Block a user