1 USING: ui.gadgets.controls help.markup
2 help.syntax strings ui.gadgets models ;
6 { $class-description "A label displays a piece of text, either a single line string or an array of line strings. Labels are created by calling " { $link <label> } "." } ;
9 { $values { "string" string } { "label" "a new " { $link label } } }
10 { $description "Creates a new " { $link label } " gadget. The string is permitted to contain line breaks." } ;
13 { $values { "label" label } { "string" string } }
14 { $description "Outputs the string currently displayed by the label." } ;
16 HELP: set-label-string
17 { $values { "label" label } { "string" string } }
18 { $description "Sets the string currently displayed by the label. The string is permitted to contain line breaks. After calling this word, you must also call " { $link relayout } " on the label." } ;
21 { $values { "model" model } { "gadget" "a new " { $link gadget } } }
22 { $description "Creates a " { $link control } " which displays the value of " { $snippet "model" } ", which is required to be a string. The label control is automatically updated when the model value changes." } ;
24 { label-string set-label-string } related-words
25 { <label> <label-control> } related-words
27 ARTICLE: "ui.gadgets.labels" "Label gadgets"
28 "A label displays a piece of text, either a single line string or an array of line strings."
30 { $subsection <label> }
31 { $subsection <label-control> }
32 { $subsection label-string }
33 { $subsection set-label-string } ;
35 ABOUT: "ui.gadgets.labels"