| Did you know ... | Search Documentation: |
| graphical->draw_text |
.0 and
hadjust/vadjust center/center may be used to center text around a point.
Multiple lines are aligned according to hadjust (default: left).
The redraw-method below draws a text-box:
'_redraw_area'(TB, _Area:area) :->
"Redraw text-box"::
get_object(TB, area, area(X,Y,W,H)),
send(TB, draw_box, X, Y, W, H),
get(TB, font, Font),
get(TB, string, String),
send(TB, draw_text, String, Font,
X, Y, W, H, center, center).
This method is part of the user-defined graphics infra-structure
described with graphical->_redraw_area
and should not be called outside this context.