Erlang logo
User's Guide
Reference Manual
Release Notes
PDF
Top

wxErlang
Reference Manual
Version 0.98.4


Expand All
Contract All

Table of Contents

wxListCtrl

MODULE

wxListCtrl

MODULE SUMMARY

See external documentation: wxListCtrl.

DESCRIPTION

See external documentation: wxListCtrl.

This class is derived (and can use functions) from:
wxControl
wxWindow
wxEvtHandler

DATA TYPES

wxListCtrl()

An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc or distributed for use on other nodes.

EXPORTS

new() -> wxListCtrl()

new(Parent::wxWindow() (see module wxWindow)) -> wxListCtrl()

Equivalent to new(Parent, []).

new(Parent::wxWindow() (see module wxWindow), Options::[Option]) -> wxListCtrl()

Types:

Option = {winid, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx() (see module wx)}

arrange(This::wxListCtrl()) -> bool()

Equivalent to arrange(This, []).

arrange(This::wxListCtrl(), Options::[Option]) -> bool()

Types:

Option = {flag, integer()}

assignImageList(This::wxListCtrl(), ImageList::wxImageList() (see module wxImageList), Which::integer()) -> ok

clearAll(This::wxListCtrl()) -> ok

create(This::wxListCtrl(), Parent::wxWindow() (see module wxWindow)) -> bool()

Equivalent to create(This, Parent, []).

create(This::wxListCtrl(), Parent::wxWindow() (see module wxWindow), Options::[Option]) -> bool()

Types:

Option = {winid, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx() (see module wx)}

deleteAllItems(This::wxListCtrl()) -> bool()

deleteColumn(This::wxListCtrl(), Col::integer()) -> bool()

deleteItem(This::wxListCtrl(), Item::integer()) -> bool()

editLabel(This::wxListCtrl(), Item::integer()) -> wxTextCtrl() (see module wxTextCtrl)

ensureVisible(This::wxListCtrl(), Item::integer()) -> bool()

findItem(This::wxListCtrl(), Start::integer(), Str::string()) -> integer()

findItem(This::wxListCtrl(), Start::integer(), X::string() | term(), X::term() | integer()) -> integer()

See external documentation.
Alternatives:

findItem(This::wxListCtrl(), Start::integer(), Str::string(), [Option]) -> integer()
Option = {partial, bool()}

findItem(This::wxListCtrl(), Start::integer(), Pt::{X::integer(),Y::integer()}, Direction::integer()) -> integer()

getColumn(This::wxListCtrl(), Col::integer(), Item::wxListItem() (see module wxListItem)) -> bool()

getColumnCount(This::wxListCtrl()) -> integer()

getColumnWidth(This::wxListCtrl(), Col::integer()) -> integer()

getCountPerPage(This::wxListCtrl()) -> integer()

getImageList(This::wxListCtrl(), Which::integer()) -> wxImageList() (see module wxImageList)

getItem(This::wxListCtrl(), Info::wxListItem() (see module wxListItem)) -> bool()

getItemBackgroundColour(This::wxListCtrl(), Item::integer()) -> colour() (see module wx)

getItemCount(This::wxListCtrl()) -> integer()

getItemData(This::wxListCtrl(), Item::integer()) -> integer()

getItemFont(This::wxListCtrl(), Item::integer()) -> wxFont() (see module wxFont)

getItemPosition(This::wxListCtrl(), Item::integer(), Pos::{X::integer(), Y::integer()}) -> bool()

getItemRect(This::wxListCtrl(), Item::integer(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}) -> bool()

getItemRect(This::wxListCtrl(), Item::integer(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}, Options::[Option]) -> bool()

Types:

Option = {code, integer()}

getItemSpacing(This::wxListCtrl()) -> {W::integer(), H::integer()}

getItemState(This::wxListCtrl(), Item::integer(), StateMask::integer()) -> integer()

getItemText(This::wxListCtrl(), Item::integer()) -> string()

getItemTextColour(This::wxListCtrl(), Item::integer()) -> colour() (see module wx)

getNextItem(This::wxListCtrl(), Item::integer()) -> integer()

getNextItem(This::wxListCtrl(), Item::integer(), Options::[Option]) -> integer()

Types:

Option = {geometry, integer()} | {state, integer()}

getSelectedItemCount(This::wxListCtrl()) -> integer()

getTextColour(This::wxListCtrl()) -> colour() (see module wx)

getTopItem(This::wxListCtrl()) -> integer()

getViewRect(This::wxListCtrl()) -> {X::integer(), Y::integer(), W::integer(), H::integer()}

hitTest(This::wxListCtrl(), Point::{X::integer(), Y::integer()}) -> {integer(), Flags::integer()}

insertColumn(This::wxListCtrl(), Col::integer(), X::string() | term()) -> integer()

See external documentation.
Alternatives:

insertColumn(This::wxListCtrl(), Col::integer(), Heading::string()) -> insertColumn(This,Col,Heading, [])

insertColumn(This::wxListCtrl(), Col::integer(), Info::wxListItem:wxListItem()) -> integer()

insertColumn(This::wxListCtrl(), Col::integer(), Heading::string(), Options::[Option]) -> integer()

Types:

Option = {format, integer()} | {width, integer()}

insertItem(This::wxListCtrl(), Info::wxListItem() (see module wxListItem)) -> integer()

insertItem(This::wxListCtrl(), Index::integer(), X::integer() | string()) -> integer()

See external documentation.
Alternatives:

insertItem(This::wxListCtrl(), Index::integer(), ImageIndex::integer()) -> integer()

insertItem(This::wxListCtrl(), Index::integer(), Label::string()) -> integer()

insertItem(This::wxListCtrl(), Index::integer(), Label::string(), ImageIndex::integer()) -> integer()

refreshItem(This::wxListCtrl(), Item::integer()) -> ok

refreshItems(This::wxListCtrl(), ItemFrom::integer(), ItemTo::integer()) -> ok

scrollList(This::wxListCtrl(), Dx::integer(), Dy::integer()) -> bool()

setBackgroundColour(This::wxListCtrl(), Colour::colour() (see module wx)) -> bool()

setColumn(This::wxListCtrl(), Col::integer(), Item::wxListItem() (see module wxListItem)) -> bool()

setColumnWidth(This::wxListCtrl(), Col::integer(), Width::integer()) -> bool()

setImageList(This::wxListCtrl(), ImageList::wxImageList() (see module wxImageList), Which::integer()) -> ok

setItem(This::wxListCtrl(), Info::wxListItem() (see module wxListItem)) -> bool()

setItem(This::wxListCtrl(), Index::integer(), Col::integer(), Label::string()) -> integer()

setItem(This::wxListCtrl(), Index::integer(), Col::integer(), Label::string(), Options::[Option]) -> integer()

Types:

Option = {imageId, integer()}

setItemBackgroundColour(This::wxListCtrl(), Item::integer(), Col::colour() (see module wx)) -> ok

setItemCount(This::wxListCtrl(), Count::integer()) -> ok

setItemData(This::wxListCtrl(), Item::integer(), Data::integer()) -> bool()

setItemFont(This::wxListCtrl(), Item::integer(), F::wxFont() (see module wxFont)) -> ok

setItemImage(This::wxListCtrl(), Item::integer(), Image::integer()) -> bool()

setItemImage(This::wxListCtrl(), Item::integer(), Image::integer(), Options::[Option]) -> bool()

Types:

Option = {selImage, integer()}

setItemColumnImage(This::wxListCtrl(), Item::integer(), Column::integer(), Image::integer()) -> bool()

setItemPosition(This::wxListCtrl(), Item::integer(), Pos::{X::integer(), Y::integer()}) -> bool()

setItemState(This::wxListCtrl(), Item::integer(), State::integer(), StateMask::integer()) -> bool()

setItemText(This::wxListCtrl(), Item::integer(), Str::string()) -> ok

setItemTextColour(This::wxListCtrl(), Item::integer(), Col::colour() (see module wx)) -> ok

setSingleStyle(This::wxListCtrl(), Style::integer()) -> ok

setSingleStyle(This::wxListCtrl(), Style::integer(), Options::[Option]) -> ok

Types:

Option = {add, bool()}

setTextColour(This::wxListCtrl(), Col::colour() (see module wx)) -> ok

setWindowStyleFlag(This::wxListCtrl(), Style::integer()) -> ok

sortItems(This::wxListCtrl(), SortCallBack::function()) -> boolean()

Sort the items in the list control

SortCalBack(Item1,Item2) -> integer()


SortCallBack receives the client data associated with two items to compare, and should return 0 if the items are equal, a negative value if the first item is less than the second one and a positive value if the first item is greater than the second one.
NOTE: The callback may not call other processes.

destroy(This::wxListCtrl()) -> ok

Destroys this object, do not use object again