Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WWindow:MsgBox() Method
Create, display, and activate a modal message-box window
------------------------------------------------------------------------------

Syntax
<oWnd>:MsgBox( <cMsg>, [ <cTitle> ] , [ <nType> ]  )   -->   nRet

Arguments
<cMsg> is a character string to be displayed inside the client
area of the message-box.  This string can be split across
several lines using the character CHR(13) between lines.

<cTitle> is a character string to display in the title bar of
the message-box.  It defaults to the class name of the window
object (<oWnd>).  If you're using an actual WWindow object,
the class name is "WWINDOW".

<nType> is an integer specifying the buttons that will be put
in the message-box and the icon (if any) to indicate the
importance of the message-box.  (Use combinations of the MB_*
values defined in WINDOWS.CH.)  It defaults to zero, which is
MB_OK.

Returns
If successful, an integer representing the user's response is
returned (one of IDABORT, IDCANCEL, IDIGNORE, IDNO, IDOK,
IDRETRY, IDYES as defined in WINDOWS.CH).  Otherwise, zero (0)
is returned.

Description
This method is just a convenient wrapper for the MessageBox()
function.  It attempts to put the input focus back where it
found it.

Example
::MsgBox( "Finished" )


See Also: MessageBox() GetFocus()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson