IupGetFile

7

IupGetFile

@serial = 790

dialog

Description

Shows a modal dialog of the native interface system to select a filename. Uses the IupFileDlg element.

Include

iup.e

Namespace

iup

Signature

public function IupGetFile(atom arq)

Creation

filename: This parameter is used as an input value to define the default filter and directory. Example: "../docs/*.txt". As an output value, it is used to contain the filename entered by the user.

Returns: a status code, whose values can be:


"1": New file.
"0": Normal, existing file.
"-1": Operation cancelled.

Notes

The function does not allocate memory space to store the complete filename entered by the user. Therefore, the filename parameter must be large enough to contain the directory and file names. The string is limited to 4096 characters.

The function will reuse the directory from one call to another, so in the next call will open in the directory of the last selected file.

The dialog uses a global attribute called "PARENTDIALOG" as the parent dialog if it is defined. It also uses a global attribute called "ICON" as the dialog icon if it is defined.

For a more controlled dialog use directly the IupFileDlg element.

See Also

IupFileDlg IupMessageDlg IupFontDlg IupProgressDlg IupAlarm IupGetFile IupGetColor IupGetParam IupGetText IupListDialog IupMessage IupScanf IupLayoutDialog IupElementPropertiesDialog
IupListDialog IupSetLanguage
Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu