:: com :: sun :: star :: awt ::

interface XMessageBoxFactory

Methods' Summary
createMessageBox creates a message box.  
Methods' Details
createMessageBox
XMessageBox
createMessageBox( [in] XWindowPeer  aParent,
[in] MessageBoxType  eType,
[in] long  nButtons,
[in] string  sTitle,
[in] string  sMessage );

Description
creates a message box.
Returns
the created message box or a null reference if it cannot be created.
Parameter aParent
a valid XWindowPeer reference which is used as a parent.

This parameter must not be null.

Parameter eType
the message box type.
Parameter nButtons
specifies which buttons should be available on the message box.

A combination of com::sun::star::awt::MessageBoxButtons

A com::sun::star::awt::MessageBoxType::INFOBOX ignores this parameter, instead it uses a com::sun::star::awt::MessageBoxButtons::BUTTONS_OK.

Parameter sTitle
specifies the title of the message box.
Parameter sMessage
specifies text which will be shown by the message box. Line-breaks must be added using 'CR' or 'CR+LF'.
Top of Page