new Win32::GUI::ListView(PARENT, %OPTIONS)
Creates a new ListView object; can also be called as PARENT->AddListView(%OPTIONS).
Add(ITEM, ITEM .. ITEM)
Inserts one or more items in the control; each item must be passed as an hash reference. See InsertItem() for a list of the available key/values of these hashes.
Arranges items in the ListView; the optional FLAG parameter can be one of the following values:0 uses the current alignment style (this is the default) 1 align items along the left edge of the window 2 align items along the top edge of the window 5 snaps icons to the nearest grid position
Deletes all items from the ListView.
Gets or sets the width of the specified COLUMN; WIDTH can be the desired width in pixels or one of the following special values:-1 automatically size the column -2 automatically size the column to fit the header text
Returns the number of items in the ListView.
Removes the zero-based INDEX item from the ListView.
Returns the index of the first visible item in the ListView.
Returns the width, in pixels, needed to display the specified STRING in the ListView area.
Checks if the specified point in the ListView area is occupied by an item; it returns the index of the found item or zero if none was found. If called in an array context, it returns an additional value containing more info about the position of the specified point.
Inserts a new item in the control. (@)OPT: -image => NUMBER (@)OPT: index of an image from the associated ImageList (@)OPT: -indent => NUMBER (@)OPT: how much the item must be indented; one unit (@)OPT: is the width of an item image, so 2 is twice (@)OPT: the width of the image, and so on. (@)OPT: -item => NUMBER (@)OPT: zero-based index for the new item; the default (@)OPT: is to add the item at the end of the list. (@)OPT: -selected => 0/1, default 0 (@)OPT: -text => STRING (@)OPT: the text for the item
Gets the check state of a ListView item (valid only if the control was created with the -checkboxes => 1 option).
Returns an associative array of information about the given zero-based INDEX item:-image -state -text
Optionally, a SUBINDEX (one-based index) can be given, to get the text for the specified column.
ItemPosition(INDEX, [X, Y])
Moves the specified zero-based INDEX item to the specified position, or returns its current X and Y position if X and Y are not given. See also MoveItem()
MoveItem(INDEX, X, Y)
Moves the specified zero-based INDEX item to the specified position, if the ListView is in big or small icon view mode; X and Y coordinates are relative to the ListView client area.
Returns the number of currently selected items.
Retuns an array containing the zero-based indexes of selected items.
Gets or sets the background color for the text in the ListView.
Gets or sets the text color for the ListView.
Gets or sets the viewing mode of the ListView control; the returned or given MODE can have one of the following values:0 big icons 1 details 2 small icons 3 list
Returns the number of items that can be fully visible in a page of the ListView control; if the current view state is big or small icons, the function returns the total number of items in the control.