lights FAQ Forum github.com/luapower/winapi

Native OS APIs
winapi
winapi.wglpanel
winapi.cairopanel
objc
xlib

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: 3 years ago | Edit on GitHub

Package:winapi
Pkg type:Lua+ffi
Version: 16101d6
Last commit:
License: Public Domain

Requires: +events  +glue  +luajit 

Required by: cairo  cplayer  hidapi  nw  proc  sock  winapi.cairopanel  winapi.wglpanel  dollar  opengl  testui  ui 


Top