 | CGUIIiGenFileForm Method (IWin32Window, String, CVV, Int32, String, String, Int32, Int32) |
General file Open/Save Form for Multiple/Single file selections and multiple filter capability
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static int IiGenFileForm(
IWin32Window owner,
string title,
CVV filt_vv,
int filter,
string default,
ref string file_path,
int type,
int multi
)
public static int IiGenFileForm(
IWin32Window owner,
string title,
CVV filt_vv,
int filter,
string default,
ref string file_path,
int type,
int multi
)
Public Shared Function IiGenFileForm (
owner As IWin32Window,
title As String,
filt_vv As CVV,
filter As Integer,
default As String,
ByRef file_path As String,
type As Integer,
multi As Integer
) As Integer
Public Shared Function IiGenFileForm (
owner As IWin32Window,
title As String,
filt_vv As CVV,
filter As Integer,
default As String,
ByRef file_path As String,
type As Integer,
multi As Integer
) As Integer
public:
static int IiGenFileForm(
IWin32Window^ owner,
String^ title,
CVV^ filt_vv,
int filter,
String^ default,
String^% file_path,
int type,
int multi
)
public:
static int IiGenFileForm(
IWin32Window^ owner,
String^ title,
CVV^ filt_vv,
int filter,
String^ default,
String^% file_path,
int type,
int multi
)
static member IiGenFileForm :
owner : IWin32Window *
title : string *
filt_vv : CVV *
filter : int *
default : string *
file_path : string byref *
type : int *
multi : int -> int
static member IiGenFileForm :
owner : IWin32Window *
title : string *
filt_vv : CVV *
filter : int *
default : string *
file_path : string byref *
type : int *
multi : int -> int
Parameters
- owner
- Type: System.Windows.FormsIWin32Window
The IWin32Window the message box will display in front of. - title
- Type: SystemString
Title of the Form - filt_vv
- Type: GeoEngine.Core.GXNetCVV
INT VV of file filters to use <define>FILE_FILTER</define> The first one is default, can pass (VV) 0 for to use next parameter. - filter
- Type: SystemInt32
<define>FILE_FILTER</define> (ignored if parameter above is not zero) - default
- Type: SystemString
Default value - file_path
- Type: SystemString
Where the file name(s) is returned - 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.
Defined Functions The following four functions are handy defines and simply pass the appropriate
parameter.
iFileOpen_GUI
iFileSave_GUI
iMultiFileOpen_GUI
iMultiFileSave_GUI
See Also