Create a label

label text size

Creates a label in the graphics output window with text as a content. Size is a two- or four-element collection; 1st and 2nd element is the position with respect to the left and top borders of the window, respectively; 3rd and 4th element (if present) is the width and the height of the label, respectively. Size and location are given in pixels and do not depend on the drawing scales.


"l := label "position {30 10 200 24}
to onmousemove :mousepos
  settext :l :mousepos

The label in the graphics window. Move the mouse over the graphics window to see changes.

See also:

Table of Content