![](../icons/Help.png) | CGUIiTwoPanelSelection Method (CGXNETCore, IWin32Window, CLST, CLST, String) |
General purpose two-panel selection.
Available since Oasis montaj version: 5.0
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.
License: Available to anyone.
Namespace: Geosoft.Desktop.GXNetXAssembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
Takes as input two LSTs, one contains all available items,
the second currently selected items. These are processed,
and in the left panel are displayed all items in the first
LST not in the selection LST, and on the right all items
in the first LST which are in the selection LST. (Items in
the selection LST NOT in the first LST are ignored).
Once the user has finalized the selections, the final selections
are returned in the selection LST.
Selections and display are based on the <define>LST_ITEM_NAME</define> part of the
LST item, but on export both the <define>LST_ITEM_NAME</define> and <define>LST_ITEM_VALUE</define>
elements of the selected items from the first LST are transferred
to the second list for output.
The sConvertToCSV_LST and sConvertFromCSV_LST functions in lst.h
can be used to convert the selection LSTs to forms that can be
stored and retrieved from GX parameters (or REG or INI, etc.).
Syntaxpublic static int iTwoPanelSelection(
CGXNETCore gxNetShared,
IWin32Window owner,
CLST ls_tf,
CLST ls_ts,
string title
)
Public Shared Function iTwoPanelSelection (
gxNetShared As CGXNETCore,
owner As IWin32Window,
ls_tf As CLST,
ls_ts As CLST,
title As String
) As Integer
public:
static int iTwoPanelSelection(
CGXNETCore^ gxNetShared,
IWin32Window^ owner,
CLST^ ls_tf,
CLST^ ls_ts,
String^ title
)
static member iTwoPanelSelection :
gxNetShared : CGXNETCore *
owner : IWin32Window *
ls_tf : CLST *
ls_ts : CLST *
title : string -> int
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - owner
- Type: System.Windows.FormsIWin32Window
The IWin32Window the message box will display in front of. - ls_tf
- Type: GeoEngine.Core.GXNetXCLST
All available items for selection. - ls_ts
- Type: GeoEngine.Core.GXNetXCLST
Selections (altered on output) - title
- Type: SystemString
Title for dialog
Return Value
Type:
Int32
0 - Ok
1 - Cancel
See Also