-
Notifications
You must be signed in to change notification settings - Fork 88
uiform label
Matthias Görges edited this page Mar 11, 2015
·
5 revisions
The uiform label element shows a label string.
| Parameter | Default | Description |
|---|---|---|
| text | "" | Label string |
| size | normal | Label size (normal, small, big) |
| wrap | #t | Wrap text if it exceeds element width |
| color | White | Font color |
| align | center | Text alignment (center, left, right) |
Example 1: Create a right-aligned label with text "label"
(label text "label" align right)
Example 2: A complete page definition with labels, shortened from apps/WidgetDemo
(ex_labels
"Labels"
("Prev" ex_textentry #f)
("Next" ex_boxes #f)
(spacer)
(label text "Default text")
(spacer)
(label text "Left aligned text" align left)
(spacer)
(label text "Right aligned text" align right)
(spacer)
(label align left color ,Black size small wrap #t text "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")
(spacer)
(label text "BIG TEXT" size big)
(spacer)
)