Ets_Gui_Date_Time_Choose()
Note: Requires OPNET Development Kit
Abstract
Starts an interactive date and time selection procedure.
Syntax
Ets_Gui_Date_Time_Choose (input_date, min_date, max_date, dbox_title_str, output_date)
| Argument | Type | Description |
|---|---|---|
input_date |
PrgT_Date |
Valid PrgT_Date that will be displayed as the initial value in the dialog. To display the current date/time in the dialog, set this to PRGC_DATE_VALUE_UNDEFINED. |
min_date |
PrgT_Date |
Minimum allowable date. Optional; set to PRGC_DATE_VALUE_UNDEFINED if not needed. |
max_date |
PrgT_Date |
Maximum allowable date. Optional; set to PRGC_DATE_VALUE_UNDEFINED if not needed. |
dbox_title_str |
const char * |
Title of date/time chooser dialog box. |
output_date |
PrgT_Date * |
Area to hold the user's date/time selection. |
Return Type
EtsT_Compcode
EtsC_Compcode_Success if the user clicks OK to accept the date/time selection; EtsC_Compcode_Failure if the user clicks Cancel and no date/time is selected.
Header
ets_api_gui.h
Details
This function opens a date/time chooser dialog box, optionally with an initial date/time selection, and allows the user to select a new date and time. This is a blocking operation, meaning that execution control is not returned to the calling function until a selection is made or the operation is cancelled.