Ets_Prompt_Dbox_Generic_Create()
Note: Requires OPNET Development Kit
Abstract
Creates a simple dialog that displays a message and allows a user to respond.
Syntax
Ets_Prompt_Dbox_Generic_Create (title, dbox_prompt_text, callback, flags)
| Argument | Type | Description |
|---|---|---|
title |
const char * |
Title of the dialog box. |
dbox_prompt_text |
PrgT_List * |
List of lines of text to be displayed in the dialog box. |
callback |
EtsT_Prompt_Dbox_Generic_Action_Proc |
Procedure to be invoked after user makes a selection. |
flags |
EtsT_Prompt_Dbox_Flags |
Flags that determine what options will be given to the user (one of the values in Table 12 Dialog Box Sub-Package Symbolic Constants). |
Return Type
EtsT_Dbox *
The dialog box that was created.
Header
ets_api_gui.h
Details
This function creates a simple dialog box that displays a specified message and presents the user with a set of responses to choose from (in the form of buttons). The predefined response sets are OK, OK / Cancel, Yes / No / Cancel, and Yes / No.
The prototype for the callback function is given in EtsT_Prompt_Dbox_Generic_Action_Proc.