lights FAQ Forum github.com/luapower/winapi

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

editclass

Edit boxes


require'winapi.editclass'

This module implements the Edit class for creating edit boxes.

Edit

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
text irw text to edit ’’ Get/SetWindowText
w, h irw size 100, 21
tabstop irw focus on tab true WS_TABSTOP
border irw TODO false WS_BORDER
readonly irw TODO false ES_READONLY
multiline irw TODO false ES_MULTILINE
password irw TODO false ES_PASSWORD
autovscroll irw TODO false ES_AUTOVSCROLL
autohscroll irw TODO false ES_AUTOHSCROLL
number irw TODO false ES_NUMBER
dont_hide_selection irw TODO false ES_NOHIDESEL
want_return irw TODO false ES_WANTRETURN
align irw ‘left’, ‘right’, ‘center’ ‘left’ ES_LEFT/RIGHT/CENTER
case irw ‘normal’, ‘uppwer’, ‘lower’ ‘normal’ ES_UPPER/LOWERCASE
client_edge irw double-border true WS_EX_CLIENTEDGE
limit irw TODO
password_char TODO
tabstops TODO
margins TODO
cue TODO

Events

event description reference
on_setfocus() TODO EN_SETFOCUS
on_killfocus() TODO EN_KILLFOCUS
on_change() TODO EN_CHANGE
on_update() TODO EN_UPDATE
on_errspace() TODO EN_ERRSPACE
on_maxtext() TODO EN_MAXTEXT
on_hscroll() TODO EN_HSCROLL
on_vscroll() TODO EN_VSCROLL
on_align_ltr_ec() TODO EN_ALIGN_LTR_EC
on_align_rtl_ec() TODO EN_ALIGN_RTL_EC

Last updated: 3 years ago | Edit on GitHub

Package:winapi
Pkg type:Lua+ffi
Version: 84c32de
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