IWinApplicationClass.ExclamationBox

Fore Syntax

ExclamationBox(Message: String; [ParentWindow: IWin32Window = Null]);

Fore.NET Syntax

ExclamationBox(Message: String; ParentWindow: Prognoz.Platform.Interop.Forms.IWin32Window);

Parameters

Message. The message to be displayed in the warning box.

ParentWindow. The parent window, for which the dialog box opens modally. The Null value is passed by default, and the dialog box opens modally for the current window.

Description

The ExclamationBox method opens a standard warning message dialog box.

Comments

The dialog box contains only the OK button and looks as follows:

Fore Example

Executing the example requires a form and a button named Button1 on the form.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    WinApplication.ExclamationBox("Settings saved. Restart the application to apply settings.");
End Sub Button1OnClick;

Clicking the button opens the warning box.

Fore.NET Example

Executing the example requires a .NET form with a button.

Imports Prognoz.Platform.Forms.Net;
Imports Prognoz.Platform.Interop.Ui;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    WinAppCls: WinApplicationClass = New WinApplicationClassClass();
Begin
    WinAppCls.ExclamationBox("Settings saved. Restart the application to apply settings."New IWin32WindowForeAdapter(Self));
End Sub;

Clicking the button opens the warning box.

See also:

IWinApplicationClass