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.
Header
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.