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.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize
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, IDisposable, ISupportInitializeNotification, ISupportInitialize
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. |
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.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize