wxListCtrl

See external documentation: wxListCtrl.

See external documentation: wxListCtrl.

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

Functions


new() -> wxListCtrl()

See external documentation.

new(Parent) -> wxListCtrl()

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

  • Parent = wxWindow:wxWindow()
  • Option = {winid, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx:wx_object()} | {onGetItemText, function()} | {onGetItemAttr, function()} | {onGetItemColumnImage, function()}

Creates a listctrl with optional callback functions:

OnGetItemText = (This, Item, Column) -> unicode:charlist() OnGetItemAttr = (This, Item) -> wxListItemAttr:wxListItemAttr() OnGetItemColumnImage = (This, Item, Column) -> integer()

See external documentation.

arrange(This) -> boolean()

Equivalent to arrange(This, []).

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

See external documentation.

assignImageList(This, ImageList, Which) -> ok

See external documentation.

clearAll(This) -> ok

See external documentation.

create(This, Parent) -> wxListCtrl()

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

create(This, Parent, Options::[Option]) -> wxListCtrl()

  • This = wxWindow:wxWindow()
  • Parent = wxWindow:wxWindow()
  • Option = {winid, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx:wx_object()} | {onGetItemText, function()} | {onGetItemAttr, function()} | {onGetItemColumnImage, function()}

See external documentation.

deleteAllItems(This) -> boolean()

See external documentation.

deleteColumn(This, Col) -> boolean()

See external documentation.

deleteItem(This, Item) -> boolean()

See external documentation.

editLabel(This, Item) -> wxTextCtrl:wxTextCtrl()

See external documentation.

ensureVisible(This, Item) -> boolean()

See external documentation.

findItem(This, Start, Str) -> integer()

findItem(This, Start, Str, Options::[Option]) -> integer()

See external documentation.
Also:
findItem(This, Start, Pt, Direction) -> integer() when
This::wxListCtrl(), Start::integer(), Pt::{X::integer(), Y::integer()}, Direction::integer().

getColumn(This, Col, Item) -> boolean()

See external documentation.

getColumnCount(This) -> integer()

See external documentation.

getColumnWidth(This, Col) -> integer()

See external documentation.

getCountPerPage(This) -> integer()

See external documentation.

getEditControl(This) -> wxTextCtrl:wxTextCtrl()

See external documentation.

getImageList(This, Which) -> wxImageList:wxImageList()

See external documentation.

getItem(This, Info) -> boolean()

See external documentation.

getItemBackgroundColour(This, Item) -> wx:wx_colour4()

See external documentation.

getItemCount(This) -> integer()

See external documentation.

getItemData(This, Item) -> integer()

See external documentation.

getItemFont(This, Item) -> wxFont:wxFont()

See external documentation.

getItemPosition(This, Item) -> Result

  • Result = {Res::boolean(), Pos::{X::integer(), Y::integer()}}
  • This = wxListCtrl()
  • Item = integer()

See external documentation.

getItemRect(This, Item) -> Result

  • Result = {Res::boolean(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}}
  • This = wxListCtrl()
  • Item = integer()

getItemRect(This, Item, Options::[Option]) -> Result

  • Result = {Res::boolean(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}}
  • This = wxListCtrl()
  • Item = integer()
  • Option = {code, integer()}

See external documentation.

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

See external documentation.

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

See external documentation.

getItemText(This, Item) -> unicode:charlist()

See external documentation.

getItemTextColour(This, Item) -> wx:wx_colour4()

See external documentation.

getNextItem(This, Item) -> integer()

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

  • This = wxListCtrl()
  • Item = integer()
  • Option = {geometry, integer()} | {state, integer()}

See external documentation.

getSelectedItemCount(This) -> integer()

See external documentation.

getTextColour(This) -> wx:wx_colour4()

See external documentation.

getTopItem(This) -> integer()

See external documentation.

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

See external documentation.

hitTest(This, Point) -> Result

  • Result = {Res::integer(), Flags::integer(), PSubItem::integer()}
  • This = wxListCtrl()
  • Point = {X::integer(), Y::integer()}

See external documentation.

insertColumn(This, Col, Heading) -> integer()

See external documentation.
Also:
insertColumn(This, Col, Info) -> integer() when
This::wxListCtrl(), Col::integer(), Info::wxListItem:wxListItem().

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

See external documentation.

insertItem(This, Info) -> integer()

See external documentation.

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

See external documentation.
Also:
insertItem(This, Index, Label) -> integer() when
This::wxListCtrl(), Index::integer(), Label::unicode:chardata().

insertItem(This, Index, Label, ImageIndex) -> integer()

See external documentation.

refreshItem(This, Item) -> ok

See external documentation.

refreshItems(This, ItemFrom, ItemTo) -> ok

See external documentation.

scrollList(This, Dx, Dy) -> boolean()

See external documentation.

setBackgroundColour(This, Colour) -> boolean()

See external documentation.

setColumn(This, Col, Item) -> boolean()

See external documentation.

setColumnWidth(This, Col, Width) -> boolean()

See external documentation.

setImageList(This, ImageList, Which) -> ok

See external documentation.

setItem(This, Info) -> boolean()

See external documentation.

setItem(This, Index, Col, Label) -> integer()

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

See external documentation.

setItemBackgroundColour(This, Item, Col) -> ok

See external documentation.

setItemCount(This, Count) -> ok

See external documentation.

setItemData(This, Item, Data) -> boolean()

See external documentation.

setItemFont(This, Item, F) -> ok

See external documentation.

setItemImage(This, Item, Image) -> boolean()

setItemImage(This, Item, Image, Options::[Option]) -> boolean()

  • This = wxListCtrl()
  • Item = integer()
  • Image = integer()
  • Option = {selImage, integer()}

See external documentation.

setItemColumnImage(This, Item, Column, Image) -> boolean()

  • This = wxListCtrl()
  • Item = integer()
  • Column = integer()
  • Image = integer()

See external documentation.

setItemPosition(This, Item, Pos) -> boolean()

  • This = wxListCtrl()
  • Item = integer()
  • Pos = {X::integer(), Y::integer()}

See external documentation.

setItemState(This, Item, State, StateMask) -> boolean()

  • This = wxListCtrl()
  • Item = integer()
  • State = integer()
  • StateMask = integer()

See external documentation.

setItemText(This, Item, Str) -> ok

See external documentation.

setItemTextColour(This, Item, Col) -> ok

See external documentation.

setSingleStyle(This, Style) -> ok

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

  • This = wxListCtrl()
  • Style = integer()
  • Option = {add, boolean()}

See external documentation.

setTextColour(This, Col) -> ok

See external documentation.

setWindowStyleFlag(This, Style) -> ok

See external documentation.

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

Sort the items in the list control

SortCallBack(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 (wx) processes.

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

Destroys this object, do not use object again