|
|
@ -3928,11 +3928,14 @@ It has the following attributes:
|
|
|
|
:auto_width: Sets self.frame.w from the text width.
|
|
|
|
:auto_width: Sets self.frame.w from the text width.
|
|
|
|
:on_click: A callback called when the label is clicked (optional)
|
|
|
|
:on_click: A callback called when the label is clicked (optional)
|
|
|
|
:on_rclick: A callback called when the label is right-clicked (optional)
|
|
|
|
:on_rclick: A callback called when the label is right-clicked (optional)
|
|
|
|
:scroll_keys: Specifies which keys the label should react to as a table. Default is ``STANDARDSCROLL`` (up or down arrows, page up or down).
|
|
|
|
:scroll_keys: Specifies which keys the label should react to as a table. The table should map
|
|
|
|
|
|
|
|
keys to the number of lines to scroll as positive or negative integers or one of the keywords
|
|
|
|
|
|
|
|
supported by the ``scroll`` method. The default is up/down arrows scrolling by one line and page
|
|
|
|
|
|
|
|
up/down scrolling by one page.
|
|
|
|
:show_scroll_icons: Controls scroll icons' behaviour: ``false`` for no icons, ``'right'`` or ``'left'`` for
|
|
|
|
:show_scroll_icons: Controls scroll icons' behaviour: ``false`` for no icons, ``'right'`` or ``'left'`` for
|
|
|
|
icons next to the text in an additional column (``frame_inset`` is adjusted to have ``.r`` or ``.l`` greater than ``0``),
|
|
|
|
icons next to the text in an additional column (``frame_inset`` is adjusted to have ``.r`` or ``.l`` greater than ``0``),
|
|
|
|
``nil`` same as ``'right'`` but changes ``frame_inset`` only if a scroll icon is actually necessary
|
|
|
|
``nil`` same as ``'right'`` but changes ``frame_inset`` only if a scroll icon is actually necessary
|
|
|
|
(if ``getTextHeight()`` is greater than ``frame_body.height``). Default is ``nil``.
|
|
|
|
(if ``getTextHeight()`` is greater than ``frame_body.height``). Default is ``nil``.
|
|
|
|
:up_arrow_icon: The symbol for scroll up arrow. Default is ``string.char(24)`` (``↑``).
|
|
|
|
:up_arrow_icon: The symbol for scroll up arrow. Default is ``string.char(24)`` (``↑``).
|
|
|
|
:down_arrow_icon: The symbol for scroll down arrow. Default is ``string.char(25)`` (``↓``).
|
|
|
|
:down_arrow_icon: The symbol for scroll down arrow. Default is ``string.char(25)`` (``↓``).
|
|
|
|
:scroll_icon_pen: Specifies the pen for scroll icons. Default is ``COLOR_LIGHTCYAN``.
|
|
|
|
:scroll_icon_pen: Specifies the pen for scroll icons. Default is ``COLOR_LIGHTCYAN``.
|
|
|
@ -4024,6 +4027,12 @@ The Label widget implements the following methods:
|
|
|
|
|
|
|
|
|
|
|
|
Computes the width of the text.
|
|
|
|
Computes the width of the text.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* ``label:scroll(nlines)``
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This method takes the number of lines to scroll as positive or negative
|
|
|
|
|
|
|
|
integers or one of the following keywords: ``+page``, ``-page``,
|
|
|
|
|
|
|
|
``+halfpage``, or ``-halfpage``.
|
|
|
|
|
|
|
|
|
|
|
|
WrappedLabel class
|
|
|
|
WrappedLabel class
|
|
|
|
------------------
|
|
|
|
------------------
|
|
|
|
|
|
|
|
|
|
|
|