| Online Eiffel Documentation

EiffelStudio

# EiffelVision Dialogs

This cluster contains all the dialogs provided by Vision2.

## Standard dialogs

A standard dialog provides a way of interacting with the underlying platform (such as Windows or Linux) to perform basic tasks such as opening a file or printing a document. Vision2 provides six dialogs that allow the user to perform everyday tasks that are

- EV_COLOR_DIALOG -- This allows the user of your app to select an RGB color (useful for graphical apps such as a Paint Program).
- EV_DIRECTORY_DIALOG -- This allows the user of your app to select a directory.
- EV_FILE_OPEN_DIALOG -- This allows the user of your app to select a file to be opened.
- EV_FILE_SAVE_DIALOG -- This allows the user of your app to select a filename that will be used for the creation of a file.
- EV_FONT_DIALOG -- This allows the user of your app to select a font (useful for a Word Processor for example).
- EV_PRINT_DIALOG -- This allows the user of your app to choose printer settings may be used in conjunction with EV_PRINT_PROJECTOR.

## Creating custom dialogs

If you wish to provide a custom dialog in your application, EV_DIALOG has been provided to facilitate this.

## Message dialogs

A message dialog gives your application a standard way of displaying useful (or vital) information, this information can be displayed with the following message dialogs.

- EV_MESSAGE_DIALOG -- Allows a simple message to be displayed to the user.
- EV_INFORMATION_DIALOG -- Allows useful info to be displayed to the user.
- EV_QUESTION_DIALOG -- Allows the user to respond to a question with Yes or No.
- EV_WARNING_DIALOG -- Allows a warning to be displayed to the user.
- EV_CONFIRMATION_DIALOG -- Allows the user to confirm an action that has been requested.
- EV_ERROR_DIALOG -- Allows an error message to be shown to the user.