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
Afficher le fichier Open project: mono/mono-curses Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
LayoutButtons ( ) : void

Method Details

AddButton() public méthode

Adds a button to the dialog
public AddButton ( Button b ) : void
b Button
Résultat void

ContainerMove() public méthode

public ContainerMove ( int row, int col ) : void
row int
col int
Résultat void

Dialog() public méthode

Public constructor.
public Dialog ( int w, int h, string title ) : System
w int
h int
title string
Résultat System

DoSizeChanged() public méthode

public DoSizeChanged ( ) : void
Résultat void

ErrorColors() public méthode

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

GetBase() public méthode

public GetBase ( int &row, int &col ) : void
row int
col int
Résultat void

Prepare() public méthode

public Prepare ( ) : void
Résultat void

ProcessKey() public méthode

public ProcessKey ( int key ) : bool
key int
Résultat bool

Redraw() public méthode

public Redraw ( ) : void
Résultat void