Logo

17.5.4 Label presentation

A Label Presentation displays a non-interactive label as a piece of text that should fit on one line. To specify, simply use a piece of code along the lines of:

  a label display: [ :entity | 'A label example' ].

Labels typically go well with a fix-size pane. For example:

| browser |
browser := GLMTabulator new.
browser row: #variable; row: #fix size: 20.
browser transmit to: #fix; andShow: [ :a | a label display: 'Fix size'].
browser showOn: #variable; using: [browser text display: 'Variable size'].
browser openOn: 1

Add a Note