Links

VisListView

PPJ.Runtime.Vis.VisListView
Namespace: PPJ.Runtime.Vis
Assembly: PPJ.Runtime.Vis.49 (4.9.0.0)
ListView control
C#
VB.NET
public class VisListView : ListView, ISalWindow
Public Class VisListView
Inherits ListView
Implements ISalWindow

Constructors

VisListView()

Default Constructor.

Properties

NamedProperties

SalNamedProperties: Returns the collection of named properties.

RightToLeftLayout

Boolean: Overrides RightToLeftLayout to implement the inheritance from the parent form. (Default: False)

Methods

AddImage(hpicLarge, hpicSmall)

Adds an image to control's internal ImageLists.
Parameter
Type
Description
hpicLarge
SalNumber
hpicSmall
SalNumber
Returns: SalNumber.

Arrange(code)

Aligns items on a grid.
Parameter
Type
Description
code
SalNumber
Returns: SalBoolean.

AssignColumns(saTitles, naAlignments, naWidths, nNumColumns)

Assigns columns to be used for 'details' view.
Parameter
Type
Description
saTitles
naAlignments
naWidths
nNumColumns
SalNumber
Returns: SalBoolean.

BringWindowToTop()

Brings a window to the top of all overlapping windows.
Returns: SalBoolean.

CenterWindow()

Centers a window. If the window is a top-level window, it centers it on the desktop. If the window is a child window, it centers it on top of its parent.
Returns: SalBoolean.

ClearCursor(type)

Clears a window's cursor.
Parameter
Type
Description
type
SalNumber
Returns: SalBoolean.

DeleteAllItems()

Removes all items from the control.
Returns: SalBoolean.

DeleteItem(nItem)

Removes an item from control and returns count of remaining items.
Parameter
Type
Description
nItem
SalNumber
Returns: SalNumber.

DestroyWindow()

Destroys a form window, a top-level table window, or a modeless dialog box created with SalCreateWindow.
Returns: SalBoolean.

DisableWindow()

Disables keyboard and mouse input to a window. If the window contains text (for example, a push button), the text is grayed. If the window is a data field, it cannot receive the focus.
Returns: SalBoolean.

EnableWindow()

Enables keyboard and mouse input to a window.
Returns: SalBoolean.

EnsureVisible(item, partialOK)

Ensures that an item is visible
Parameter
Type
Description
item
SalNumber
partialOK
Returns: SalBoolean.

FindChild(windowName)

This function finds a child window of a given name in the specified window.
Parameter
Type
Description
windowName
SalString
Returns: SalWindowHandle.

FindItem(flags, itemText, itemStart)

Searches for an item by text or position.
Parameter
Type
Description
flags
SalNumber
itemText
SalString
itemStart
SalNumber
Returns: SalNumber.

FormUnitsToPixels(formUnits, vertical)

Computes the number of pixels in the number of form units. Form units are a unit of measurement used by functions which move and position objects. Form units are computed using physical units (pixels) in conjunction with the window's font size.
Parameter
Type
Description
formUnits
SalNumber
The number of form units.
vertical
If the form units are on the X axis, set this parameter to FALSE. If the form units are on the Y axis, set this parameter to TRUE.
Returns: SalNumber.

FromHandle(handle)

Returns the control associated with the handle.
Parameter
Type
Description
handle
Returns: VisListView.

GetAllSelectedItems(naSelections)

Retrieves array of all selected items and returns count.
Parameter
Type
Description
naSelections
Returns: SalNumber.

GetBkColor()

Retrieves the color used for the control's overall background.
Returns: SalNumber.

GetClassName()

Return the name of a window's class as a string.
Returns: SalString.

GetColumn(nColumn, sTitle, nAlignment, nWidth)

Parameter
Type
Description
nColumn
SalNumber
sTitle
nAlignment
nWidth
Returns: SalBoolean.

GetColumnAlignment(nColumn)

Parameter
Type
Description
nColumn
SalNumber
Returns: SalNumber.

GetColumnTitle(nColumn)

Retrieves a column's text.
Parameter
Type
Description
nColumn
SalNumber
Returns: SalString.

GetColumnWidth(nColumn)

Retrieves a column's width.
Parameter
Type
Description
nColumn
SalNumber
Returns: SalNumber.

GetControlType()

Returns an object's type.
Returns: SalNumber.

GetCountPerPage()

Calculates the number of items that can fit vertically in control.
Returns: SalNumber.

GetFirstChild(typeMask)

Returns the handle of the first child window of the specified type. You can use this function to get the handles of MDI child windows.
Parameter
Type
Description
typeMask
SalNumber
One or more window types combined (using the OR (|) operator) to create a mask of child window types.
Returns: SalWindowHandle.

GetFocusItem()

Retrieves index of item with input focus.
Returns: SalNumber.

GetFont(name, size, enhancement)

Parameter
Type
Description
name
size
enhancement
Returns: SalBoolean.

GetImageCount()

Retrieves the number of images in control.
Returns: SalNumber.

GetItem(nItem, nSubItem, sItemText, nItemValue, nImage)

Parameter
Type
Description
nItem
SalNumber
nSubItem
SalNumber
sItemText
nItemValue
nImage
Returns: SalBoolean.

GetItemCount()

Retrieves the number of items in control.
Returns: SalNumber.

GetItemPosition(item, position)

Retrieves the position of an item.
Parameter
Type
Description
item
SalNumber
position
VisPoint
Returns: SalBoolean.

GetItemRect(nItem, rcItem, nCode)

Retrieves the bounding rectangle for an item.
Parameter
Type
Description
nItem
SalNumber
rcItem
VisRect
nCode
SalNumber
Returns: SalBoolean.

GetItemState(nItem, nMask)

Retrieves an item's state.
Parameter
Type
Description
nItem
SalNumber
nMask
SalNumber
Returns: SalNumber.

GetItemText(nItem, nSubItem)

Retrieves an item's text.
Parameter
Type
Description
nItem
SalNumber
nSubItem
SalNumber
Returns: SalString.

GetItemValue(nItem)

Retrieves an item's user data.
Parameter
Type
Description
nItem
SalNumber
Returns: SalNumber.

GetLocation(x, y)

Parameter
Type
Description
x
y
Returns: SalBoolean.

GetName(text)

Parameter
Type
Description
text
Returns: SalBoolean.

GetName()

Gets the name of an object.
Returns: SalString.

GetNextChild(typeMask)

Returns the handle of the next child window that matches a specified type.
Parameter
Type
Description
typeMask
SalNumber
One or more window types combined (using the OR (|) operator) to create a mask of child window types.
Returns: SalWindowHandle.

GetNextItem(nItem, nFlags)

Searches for an item by sequence, relation or state.
Parameter
Type
Description
nItem
SalNumber
nFlags
SalNumber
Returns: SalNumber.

GetOrigin(ptOrigin)

Retrieves the current view origin for control.
Parameter
Type
Description
ptOrigin
VisPoint
Returns: SalBoolean.

GetParent()

Returns the handle of an object's parent window.
Returns: SalWindowHandle.

GetProperty(name, value)

Parameter
Type
Description
name
SalString
value
Returns: SalBoolean.

GetProperty(name)

Gets the value of a named property.
Parameter
Type
Description
name
SalString
Returns: SalString.

GetSelectedCount()

Retrieves the number of selected items in control.
Returns: SalNumber.

GetSelectedItem()

Returns: SalNumber.

GetSize(width, height)

Parameter
Type
Description
width
height
Returns: SalBoolean.

GetSortColumn()

Retrieves default sort column (sub item.)
Returns: SalNumber.

GetSortOrder()

Retrieves default sort order (ascending/descending)
Returns: SalNumber.

GetStringWidth(sCompare)

Determines the minimum column width necessary to display all of a given string.
Parameter
Type
Description
sCompare
SalString
Returns: SalNumber.

GetStyle()

Retrieves current style bits for control.
Returns: SalNumber.

GetText(text, maxLen)

Parameter
Type
Description
text
maxLen
SalNumber
Returns: SalNumber.

GetText(maxLen)

Retrieves the text of a window.
Parameter
Type
Description
maxLen
SalNumber
Returns: SalString.

GetTextBkColor()

Retrieves the color used for item and sub item text background.
Returns: SalNumber.

GetTextColor()

Retrieves the color used for item and sub item text.
Returns: SalNumber.

GetTopIndex()

Retrieves the index of the topmost visible item.
Returns: SalNumber.

GetViewRect(rcView)

Retrieves the bounding rectangle of all items in the control.
Parameter
Type
Description
rcView
VisRect
Returns: SalBoolean.

GetWindowColor(colorIndex)

Gets a window's color.
Parameter
Type
Description
colorIndex
SalNumber
Returns: SalNumber.

GetWindowState()

Returns a window's current state.
Returns: SalNumber.

HideWindow()

Hides a window.
Returns: SalBoolean.

HitTest(ptTest, flags)

Parameter
Type
Description
ptTest
VisPoint
flags
Returns: SalNumber.

HitTest(x, y, flags)

Parameter
Type
Description
x
SalNumber
y
SalNumber
flags
Returns: SalNumber.

InsertDetails(nItem, saText, nImage)

Inserts a new item into control and supplies sub item text for item.
Parameter
Type
Description
nItem