lights FAQ Forum github.com/luapower/winapi

Native OS APIs
winapi
objc
syscall
xlib
shm

listboxclass

list boxes


require'winapi.listboxclass'

This module implements the ListBox class for creating list boxes.

ListBox

Hierarchy

Initial fields and properties

NOTE: in the table below i means initial field, r means property which can be read, w means property which can be set.

field/property irw description default reference
w, h irw size 100, 100
border irw TODO false WS_BORDER
sort irw sort items false LBS_SORT
select irw 'single', 'multiple', 'extended' 'single' LBS_MULTIPLE/EXTENDEDSEL
tabstops irw focus on tab false LBS_USETABSTOPS
free_height irw TODO true LBS_NOINTEGRALHEIGHT
multicolumn irw TODO false LBS_MULTICOLUMN
vscroll irw show vertical scrollbar true WS_VSCROLL
hscroll irw show horizontal scrollbar true WS_HSCROLL
always_show_scrollbars irw always show scrollbars true LBS_DISABLENOSCROLL
hextent irw horizontal extent 0 LB_GET/SETHORIZONTALEXTENT
allow_select irw allow select true LBS_NOSEL
client_edge irw bordered true WS_EX_CLIENTEDGE

Events

event description reference
on_memory_error() TODO LBN_ERRSPACE
on_select() TODO LBN_SELCHANGE
on_double_click() TODO LBN_DBLCLK
on_cancel() TODO LBN_SELCANCEL
on_focus() TODO LBN_SETFOCUS
on_blur() TODO LBN_KILLFOCUS

Last updated: 22 months ago | Edit on GitHub

Pkg type:Lua+ffi
Version: r3-8-g8ecae71
Last commit:
License: PD
Requires: cairo  glue  luajit  opengl  sg  eq  path2d  pp 
Required by: cairo  cplayer  nw  opengl  sg 

Top