EtsT_File_Chooser_Ok_Proc

Note: Requires OPNET Development Kit

Abstract

Callback: Called when the user clicks the Open or Save button in a file chooser dialog box.

Syntax

<open_proc_name> (client_state_ptr, path, file_type)
Argument Type Description
client_state_ptr void * User-defined data that is passed to the callback.
path const char * File path chosen by the user.
file_type const char * The file type (for example, “Network (*.nt.m)”)

Return Type

int

Specifies whether the operation is complete. If 0, the file chooser dialog box remains open for further selections (such as choosing a subdirectory). If 1, the file chooser dialog box is closed and the EtsT_File_Chooser_Close_Proc is called.

ets_api_gui.h

Details

If registered by Ets_File_Chooser_Open_Create(), this function is called when the user clicks the Open button in an Open dialog box.

If registered by Ets_File_Chooser_Save_Create(), this function is called when the user clicks the Save button in a Save dialog box.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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