mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 01:38:01 +01:00
Charlie's Mondo Patch (#600)
This PR includes: #586 - Fixed Clipping #587 - LayoutComplete #591 - Sys Console Scenario #590 - Significantly improves MessageBox, Dialog, Frame drawning and more See the PRs above for all the details. Here are the issues this closes: Closes #299 - MessageBox now auto sizes Closes #557 - MessageBoxes on small screens Closes #432 - MessageBox does not deal with long text; width/height params are goofy Closes #521 - MessageBox should take ustrings (BREAKING CHANGE) Closes #35 - Dialog should have 1 char padding around edges Closes #570 - Dialog should use computed layout for buttons Closes #470 - UI Catalog: Add Dialogs Scenario Closes #569 - LayoutComplete event Plus probably more.
This commit is contained in:
@@ -30,7 +30,7 @@ static class Demo {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public override void Redraw (Rect region)
|
||||
public override void Redraw (Rect bounds)
|
||||
{
|
||||
//Point pos = new Point (region.X, region.Y);
|
||||
Driver.SetAttribute (ColorScheme.Focus);
|
||||
@@ -53,7 +53,7 @@ static class Demo {
|
||||
{
|
||||
}
|
||||
|
||||
public override void Redraw (Rect region)
|
||||
public override void Redraw (Rect bounds)
|
||||
{
|
||||
Driver.SetAttribute (ColorScheme.Focus);
|
||||
var f = Frame;
|
||||
@@ -520,7 +520,7 @@ static class Demo {
|
||||
|
||||
//Application.UseSystemConsole = true;
|
||||
|
||||
Application.Init ();
|
||||
Application.Init();
|
||||
|
||||
var top = Application.Top;
|
||||
|
||||
@@ -638,7 +638,7 @@ static class Demo {
|
||||
var bottom2 = new Label ("This should go on the bottom of another top-level!");
|
||||
top.Add (bottom2);
|
||||
|
||||
Application.Loaded += (sender, e) => {
|
||||
top.LayoutComplete += (sender, e) => {
|
||||
bottom.X = win.X;
|
||||
bottom.Y = Pos.Bottom (win) - Pos.Top (win) - margin;
|
||||
bottom2.X = Pos.Left (win);
|
||||
|
||||
Reference in New Issue
Block a user