 | CGUIiTwoPanelSelection Method (CLST, CLST, String) |
General purpose two-panel selection.
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static int iTwoPanelSelection(
CLST ls_tf,
CLST ls_ts,
string title
)
public static int iTwoPanelSelection(
CLST ls_tf,
CLST ls_ts,
string title
)
Public Shared Function iTwoPanelSelection (
ls_tf As CLST,
ls_ts As CLST,
title As String
) As Integer
Public Shared Function iTwoPanelSelection (
ls_tf As CLST,
ls_ts As CLST,
title As String
) As Integer
public:
static int iTwoPanelSelection(
CLST^ ls_tf,
CLST^ ls_ts,
String^ title
)
public:
static int iTwoPanelSelection(
CLST^ ls_tf,
CLST^ ls_ts,
String^ title
)
static member iTwoPanelSelection :
ls_tf : CLST *
ls_ts : CLST *
title : string -> int
static member iTwoPanelSelection :
ls_tf : CLST *
ls_ts : CLST *
title : string -> int
Parameters
- ls_tf
- Type: GeoEngine.Core.GXNetCLST
All available items for selection. - ls_ts
- Type: GeoEngine.Core.GXNetCLST
Selections (altered on output) - title
- Type: SystemString
Title for dialog
Return Value
Type:
Int32
0 - Ok
1 - Cancel
Remarks
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.).
See Also