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.

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.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com