Category Creo Parametric user interface, Category Creo Parametric fundamentals, Object ProDirectory

Function ProDirectoryChoose


Description
Prompts the standard file browser interface of Creo Parametric, set upfor the purpose of allowing the user to select a directory.
Replacement in Object TOOLKIT: pfcSession::UISelectDirectory
Synopsis
#include <ProUtil.h>
ProErrorProDirectoryChoose(
ProName dialog_label
/* (In)
The user-specified label for the dialog box. If this is NULL, the function uses the default label, "Select Directory".
*/
ProPath* shortcut_path_arr
/* (In)
An array of shortcut paths. Use ProArrayAlloc() to allocate this array. This can be NULL.
*/
ProName* shortcut_name_arr
/* (In)
An array of shortcut labels that correspond to shortcut_path_arr. Use ProArrayAlloc() to allocate this array. This can be NULL.
*/
ProPath default_path
/* (In)
The default path to start browsing. If this is NULL, the function uses the current directory.
*/
ProPath r_selected_path
/* (Out)
The selected directory path.
*/
)
Returns
PRO_TK_NO_ERRORThe user selected a directory and picked "Ok".
PRO_TK_USER_ABORTThe user aborted from the user interface.
See Also
ProArrayAlloc

Manual References:

  1. Core: Utilities: File Handling
  2. Core: Utilities: File Handling

Sample Code References:

  1. pt_userguide ( UgInterfaceExport.c )