C# Class Mono.Terminal.Dialog

A Dialog is a container that can also have a number of buttons at the bottom

Dialogs are containers that can have a set of buttons at the bottom. Dialogs are automatically centered on the screen, and on screen changes the buttons are relaid out.

To make the dialog box run until an option has been executed, you would typically create the dialog box and then call Application.Run on the Dialog instance.

Inheritance: Frame
Exibir arquivo Open project: mono/mono-curses Class Usage Examples

Public Methods

Method Description
AddButton ( Button b ) : void

Adds a button to the dialog

ContainerMove ( int row, int col ) : void
Dialog ( int w, int h, string title ) : System

Public constructor.

DoSizeChanged ( ) : void
ErrorColors ( ) : void

Makes the default style for the dialog use the error colors.

GetBase ( int &row, int &col ) : void
Prepare ( ) : void
ProcessKey ( int key ) : bool
Redraw ( ) : void

Private Methods

Method Description
LayoutButtons ( ) : void

Method Details

AddButton() public method

Adds a button to the dialog
public AddButton ( Button b ) : void
b Button
return void

ContainerMove() public method

public ContainerMove ( int row, int col ) : void
row int
col int
return void

Dialog() public method

Public constructor.
public Dialog ( int w, int h, string title ) : System
w int
h int
title string
return System

DoSizeChanged() public method

public DoSizeChanged ( ) : void
return void

ErrorColors() public method

Makes the default style for the dialog use the error colors.
public ErrorColors ( ) : void
return void

GetBase() public method

public GetBase ( int &row, int &col ) : void
row int
col int
return void

Prepare() public method

public Prepare ( ) : void
return void

ProcessKey() public method

public ProcessKey ( int key ) : bool
key int
return bool

Redraw() public method

public Redraw ( ) : void
return void