com.esri.arcgis.framework
Interface IMessageDialog

All Superinterfaces:
Serializable
All Known Implementing Classes:
MessageDialog

public interface IMessageDialog
extends Serializable

Provides access to a method that works with a dialog for displaying a message.

Remarks

The message dialog is used to display a message to the user.

To get access to the IMessageDialog interface, create a new MessageDialog object.

Product Availability

Available with ArcGIS Desktop.


Method Summary
 boolean doModal(String title, String message, String oKButtonMessage, String cANCELButtonMessage, int hWnd)
          Shows the dialog with a message.
 

Method Detail

doModal

boolean doModal(String title,
                String message,
                String oKButtonMessage,
                String cANCELButtonMessage,
                int hWnd)
                throws IOException,
                       AutomationException
Shows the dialog with a message.

Description

Title is a string that specifies the title of the dialog.

Message is a string used for the message displayed in the dialog.

OKButtonMessage specifies the caption for the OK button on the dialog.

CANCELButtonMessage specifies the caption for the Cancel button on the dialog.

hWnd specifies the window handle of the parent window. In most cases this will be the hWnd of the application.

Remarks

If the dialog was cancelled, the DoModal method returns False.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
title - The title (in)
message - The message (in)
oKButtonMessage - The oKButtonMessage (in)
cANCELButtonMessage - The cANCELButtonMessage (in)
hWnd - The hWnd (A COM typedef) (in)
Returns:
The okPressed
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.