Class Dialog
The dialog box is a window that by default is centered and contains one or more buttons.
Inherited Members
Namespace: Terminal
Assembly: Terminal.dll
Syntax
public class Dialog : Terminal.Window
Constructors
Dialog(String, Int32, Int32, Button[])
Initializes a new instance of the Dialog class with an optional set of buttons to display
Declaration
public Dialog (string title, int width, int height, Terminal.Button[] buttons);
Parameters
Type | Name | Description |
---|---|---|
System.String | 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.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.KeyEvent kb);
Parameters
Type | Name | Description |
---|---|---|
KeyEvent | kb | To be added. |
Returns
Type | Description |
---|---|
System.Boolean | To be added. |