Gambas Documentation
Application Repository
Code Snippets
Compilation & Installation
Components
gb
gb.args
gb.cairo
gb.chart
gb.clipper
gb.complex
gb.compress
gb.crypt
gb.data
gb.db
gb.db.form
gb.db.mysql
gb.db.odbc
gb.db.postgresql
gb.db.sqlite2
gb.db.sqlite3
gb.dbus
gb.dbus.trayicon
gb.debug
gb.desktop
gb.desktop.gnome.keyring
gb.desktop.x11
gb.eval
gb.eval.highlight
gb.form
gb.form.dialog
gb.form.editor
gb.form.htmlview
gb.form.mdi
gb.form.print
gb.form.stock
gb.form.terminal
gb.gmp
gb.gsl
gb.gtk
Align
Button
ComboBox
Container
Control
Cursor
Draw
Embedder
Font
GridView
Key
ListView
Mouse
Panel
Picture
stock
trayicon
trayicons
Window
gb.gtk.opengl
gb.gtk3
gb.gtk3.opengl
gb.gtk3.webview
gb.gui
gb.gui.opengl
gb.gui.qt
gb.gui.qt.ext
gb.gui.qt.opengl
gb.gui.qt.webkit
gb.gui.trayicon
gb.gui.webview
gb.hash
gb.highlight
gb.image
gb.image.effect
gb.image.imlib
gb.image.io
gb.inotify
gb.jit
gb.libxml
gb.logging
gb.map
gb.markdown
gb.media
gb.media.form
gb.memcached
gb.mime
gb.mongodb
gb.mysql
gb.ncurses
gb.net
gb.net.curl
gb.net.pop3
gb.net.smtp
gb.openal
gb.opengl
gb.opengl.glsl
gb.opengl.glu
gb.opengl.sge
gb.openssl
gb.option
gb.pcre
gb.pdf
gb.poppler
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.qt4.webview
gb.qt5
gb.qt5.ext
gb.qt5.opengl
gb.qt5.webkit
gb.qt5.webview
gb.qt6
gb.qt6.ext
gb.qt6.opengl
gb.qt6.webview
gb.report
gb.report2
gb.scanner
gb.sdl
gb.sdl.sound
gb.sdl2
gb.sdl2.audio
gb.settings
gb.signal
gb.term
gb.test
gb.util
gb.util.web
gb.v4l
gb.vb
gb.web
gb.web.feed
gb.web.form
gb.web.gui
gb.xml
gb.xml.html
gb.xml.rpc
gb.xml.xslt
Controls pictures
Deprecated components
Developer Documentation
Development Environment Documentation
Documents
Error Messages
Gambas Playground
How To's
Language Index
Language Overviews
Last Changes
Lexicon
README
Search the wiki
To Do
Topics
Tutorials
Wiki License
Wiki Manual

ListView (gb.gtk)

This control implements a list of selectable text items with icons.

ListView items are indexed by a key. They display a string and an icon.

This control has an internal cursor used for accessing its items. Use the MoveFirst, MoveNext, MoveTo... methods to move the internal cursor, and the Item property to get the item it points at.

This class inherits _TreeView.

This class is creatable.

This class acts like a read-only array.

Inherited properties
Action  
Available  
Background   Returns or sets the background color used by the control.
Border  
Children  
ClientH  
ClientHeight  
ClientW  
ClientWidth  
ClientX  
ClientY  
Compare  
Count  
Current  
Cursor   Use this property for assigning a custom cursor to a control.
Design   Indicates that the control is in design mode.
Direction  
Drop   Returns or sets if a control accepts drops.
Editable  
Enabled   Indicates that the control is enabled.
Expand   Returns or sets if a control will expand if included in a container that arranges its contents.
Font   Returns or sets the font used to draw text in the control.
Foreground   Returns or sets the foreground color used by the control.
H  
Handle  
HasFocus  
Height  
Highlight   Return or set if the item under the mouse cursor is highlighted.
Hovered  
Id  
Ignore  
Indent   Return the size of tree indentation in pixels.
Item  
Key  
Keys   Return a list of all items keys
Left  
Mode  
Mouse   Returns or sets the appearence of the cursor when it points inside the control.
Name  
Next  
NoTabFocus  
Parent  
PopupMenu  
Previous  
Proxy  
ProxyFor  
Renaming  
RightToLeft  
ScreenX  
ScreenY  
ScrollBar  
ScrollH  
ScrollHeight  
ScrollW  
ScrollWidth  
ScrollX  
ScrollY  
Selected  
Selection  
ShowCheck   Return or set if selection is indicated by check boxes and radio buttons, or by highlighting the items.
Sorted  
Tag  
Tooltip  
Top  
Tracking  
Visible  
W  
Width  
Window  
X  
Y  

Methods
Add  

Inherited methods
Clear  
CollapseAll   Collapse all tree items recursively.
Delete  
Drag  
Exist  
ExpandAll   Expand all tree items recursively.
Filter   Filter the items according to the Filter event.
FindAt  
FindChild  
Grab  
Hide  
Lower  
Move  
MoveAbove  
MoveBack  
MoveBelow  
MoveChild  
MoveCurrent  
MoveFirst  
MoveLast  
MoveNext  
MoveParent  
MovePrevious  
MoveScaled  
MoveTo  
Raise  
Refresh  
Remove  
Reparent  
Resize  
ResizeScaled  
Scroll  
SelectAll  
SetFocus  
Show  
UnSelectAll  

Inherited events
Activate  
Arrange  
BeforeArrange  
BeforeSort   This event is raised before automatically sorting the items
Cancel  
Click  
Collapse  
Compare  
DblClick  
Drag  
DragLeave  
DragMove  
Draw   This event allows to customize the drawing of a specific item.
Drop  
Enter  
Expand  
Filter   This event is raised to filter a specific item.
GotFocus  
KeyPress  
KeyRelease  
Leave  
LostFocus  
Menu  
MouseDown  
MouseDrag  
MouseMove  
MouseUp  
MouseWheel  
NewChild  
Rename  
Scroll   This event is raised when the view scrolls.
Select