Category Custom user interface, Object ProUIDialog

Function ProUIDialogAppActionSet


Description
Set a function to be called exactly once, when we return to (or otherwise enter) an event loop.
Synopsis
#include <ProUIDialog.h>
ProErrorProUIDialogAppActionSet(
char* dialog
/* (In)
Name of the dialog. The action is associated with the dialog and is automatically cancelled if the dialog is destroyed. Can be NULL.
*/
ProUIAction function
/* (In)
Function to be called when we return to event loop
*/
ProAppData data
/* (In)
Action data passed to the callback function. Can be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_GENERAL_ERRORThe function failed.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.

Manual References:

  1. User Interface: Basic Graphics: Activating Windows
  2. User Interface: Dialogs: Dialog Action Callbacks
  3. User Interface: Dialogs: Dialog Action Callbacks