Class Dialog
The dialog box is a window that by default is centered and contains one or more buttons.
Inherited Members
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class Dialog : Terminal.Gui.Window
Constructors
Dialog(ustring, Int32, Int32, Button[])
Initializes a new instance of the Dialog class with an optional set of buttons to display
Declaration
public Dialog (NStack.ustring title, int width, int height, Terminal.Gui.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. |
Methods
AddButton(Button)
Adds a button to the dialog, its layout will be controled by the dialog
Declaration
public void AddButton (Terminal.Gui.Button button);
Parameters
Type | Name | Description |
---|---|---|
Button | button | Button to add. |
LayoutSubviews()
Declaration
public override void LayoutSubviews ();
ProcessKey(KeyEvent)
Declaration
public override bool ProcessKey (Terminal.Gui.KeyEvent kb);
Parameters
Type | Name | Description |
---|---|---|
KeyEvent | kb | To be added. |
Returns
Type | Description |
---|---|
System.Boolean | To be added. |