Native OS APIs
winapi
winapi.wglpanel
winapi.cairopanel
objc
xlib
|
require'winapi.labelclass'
This module implements the Label class for creating text labels.
Label
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 |
align |
irw |
‘left’, ‘center’, ‘right’, ‘simple’, ‘left_nowrap’ |
‘left’ |
SS_LEFT, SS_CENTER, SS_RIGHT, SS_SIMPLE, SS_LEFTNOWORDWRAP |
accelerator_prefix |
irw |
don’t do “&” character translation |
true |
SS_NOPREFIX |
events |
irw |
enable events |
true |
SS_NOTIFY |
owner_draw |
irw |
owner drawn |
false |
SS_OWNERDRAW |
simulate_edit |
irw |
display text like an edit would |
false |
SS_EDITCONTROL |
ellipsis |
|
false, ‘char’, ‘path’, ‘word’ |
false |
SS_ENDELLIPSIS, SS_PATHELLIPSIS, SS_WORDELLIPSIS |
text |
irw |
the text to display |
‘Text’ |
Get/SetWindowText |
w, h |
irw |
size |
100, 21 |
|
Events
event |
description |
reference |
on_click() |
clicked |
STN_CLICKED |
on_double_click() |
double-clicked |
STN_DBLCLK |
on_enable() |
was enabled |
STN_ENABLE |
on_disable() |
was disabled |
STN_DISABLE |
Last updated:
3 years ago
|
Edit on GitHub
|
|