Click or drag to resize

CGUIiTwoPanelSelection Method (IWin32Window, 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
Syntax
public static int iTwoPanelSelection(
	IWin32Window owner,
	CLST ls_tf,
	CLST ls_ts,
	string title
)

public static int iTwoPanelSelection(
	IWin32Window owner,
	CLST ls_tf,
	CLST ls_ts,
	string title
)

Parameters

owner
Type: System.Windows.FormsIWin32Window
The IWin32Window the message box will display in front of.
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