 | CGUIIiCustomFileForm Method (String, String, String, String, Int32, Int32, Int32) |
General file Open/Save Form for Multiple/Single file selections and custom filter capability
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static int IiCustomFileForm(
string title,
string filter,
string default,
ref string file_path,
int size,
int type,
int multi
)
public static int IiCustomFileForm(
string title,
string filter,
string default,
ref string file_path,
int size,
int type,
int multi
)
Public Shared Function IiCustomFileForm (
title As String,
filter As String,
default As String,
ByRef file_path As String,
size As Integer,
type As Integer,
multi As Integer
) As Integer
Public Shared Function IiCustomFileForm (
title As String,
filter As String,
default As String,
ByRef file_path As String,
size As Integer,
type As Integer,
multi As Integer
) As Integer
public:
static int IiCustomFileForm(
String^ title,
String^ filter,
String^ default,
String^% file_path,
int size,
int type,
int multi
)
public:
static int IiCustomFileForm(
String^ title,
String^ filter,
String^ default,
String^% file_path,
int size,
int type,
int multi
)
static member IiCustomFileForm :
title : string *
filter : string *
default : string *
file_path : string byref *
size : int *
type : int *
multi : int -> int
static member IiCustomFileForm :
title : string *
filter : string *
default : string *
file_path : string byref *
size : int *
type : int *
multi : int -> int
Parameters
- title
- Type: SystemString
Title of the Form - filter
- Type: SystemString
Custom filter. - default
- Type: SystemString
Default value - file_path
- Type: SystemString
Where the file name(s) is returned - size
- Type: SystemInt32
Size of the File Name Buffer - type
- Type: SystemInt32
<define>FILE_FORM</define> - multi
- Type: SystemInt32
Allow Multiple file selections = TRUE Single file selections = FALSE
Return Value
Type:
Int32
0 - Ok
1 - Cancel
Remarks
Remember to make the string size big enough for multiple file
selections. In the case of multiple selections the names will be separated
by a semicolon and only the first file will contain the full path.
See Also