Class Dialog
The
Dialog View is a
Window that by default is centered and contains one
or more
Buttons. It defaults to the
Dialog color scheme and has a 1 cell padding around the edges.
Inheritance
System.Object
Dialog
Implements
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Terminal.Gui.dll
Syntax
public class Dialog : Window, IEnumerable
Constructors
Dialog()
Declaration
Initializes a new instance of the
Dialog class using
Computed positioning
and an optional set of
Buttons to display
Declaration
public Dialog(ustring title, int width, int height, params Button[] buttons)
Parameters
Type |
Name |
Description |
NStack.ustring |
title |
Title for the dialog. |
System.Int32 |
width |
Width for the dialog. |
System.Int32 |
height |
Height for the dialog. |
Button[] |
buttons |
Optional buttons to lay out at the bottom of the dialog. |
Initializes a new instance of the
Dialog class using
Computed positioning
and with an optional set of
Buttons to display
Declaration
public Dialog(ustring title, params Button[] buttons)
Parameters
Type |
Name |
Description |
NStack.ustring |
title |
Title for the dialog. |
Button[] |
buttons |
Optional buttons to lay out at the bottom of the dialog. |
Methods
Declaration
public void AddButton(Button button)
Parameters
Type |
Name |
Description |
Button |
button |
Button to add. |
LayoutSubviews()
Invoked when a view starts executing or when the dimensions of the view have changed, for example in
response to the container view or terminal resizing.
Declaration
public override void LayoutSubviews()
Overrides
ProcessKey(KeyEvent)
If the view is focused, gives the view a
chance to process the keystroke.
Declaration
public override bool ProcessKey(KeyEvent kb)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Implements
System.Collections.IEnumerable