Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptmessagebox.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptmessagebox.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptmessagebox.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptmessagebox.html on line 8

PtMessageBox()

Pop up a message box

Synopsis:

int PtMessageBox( PtWidget_t *parent, 
                  char const *title,
                  char const *question, 
                  char const *font, 
                  char const *btn );

Library:

ph

Description:

This function displays the message specified by question, blocking input to the specified parent widget until the message has been acknowledged. If no parent is specified, blocking won't occur, but the message will persist until it's acknowledged. If specified, the parent widget must be a window.

The other arguments are:

title
The title of the dialog. If this argument is NULL, the dialog has no title bar.
font
The name of the font to use for the message, as created by PfGenerateFontName(). The default is TextFont09.
btn
The label to display in the dialog's button. The default is Ok.

This function returns immediately.

Returns:

0
Success.
-1
Failure occurred due to lack of memory.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

ApError(), PfGenerateFontName(), PtAlert(), PtNotice(), PtPrompt()

Dialog modules in the Working with Modules chapter of the Photon Programmer's Guide


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptmessagebox.html on line 136

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptmessagebox.html on line 136