Category Creo Parametric user interface, Object ProUIMessage

Function ProUIMessageDialogDisplay


Description
Displays the UI Message Dialog
Replacement in Object TOOLKIT: pfcSession::UIShowMessageDialog
Synopsis
#include <ProUIMessage.h>
ProErrorProUIMessageDialogDisplay(
ProUIMessageType type
/* (In)
The type of the message
*/
wchar_t* title
/* (In)
The text to display as the dialog title
*/
wchar_t* msg_txt
/* (In)
The message text to be displayed in the dialog Note, to display '&' pass '&&' instead.
*/
ProUIMessageButton* buttons
/* (In)
A ProArray of possible button identifiers
*/
ProUIMessageButton def_button
/* (In)
The identifier of the default button
*/
ProUIMessageButton* user_choice
/* (Out)
The identifier of the button that the user pressed to dismiss the dialog
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully loaded and displayed the dialog
PRO_TK_BAD_INPUTSBad inputs
PRO_TK_GENERAL_ERRORThe function failed

Manual References:

  1. User Interface: Messages: Writing a Message Using a Popup Dialog
  2. User Interface: Messages: Writing a Message to the Message Window
  3. User Interface: Messages: Writing a Message to the Message Window

Sample Code References:

  1. pt_examples ( TestDispObject.c )
  2. pt_examples ( TestDispObject.c )
  3. pt_userguide ( UgUIMessageDisplay.c )
  4. pt_userguide ( UgUIMessageDisplay.c )
  5. pt_wc_server ( PTWCServerUtils.c )