mkMessage :: String
-> Int
-> Int
-> Justification
-> CompassDirection
-> Component (Message, DisplayHandle)
A fully configurable interface to the Message abstraction. The
msgString is exampleted and displayed with the help of the following
parameters:
- width - the natural width to use. Since we only break the
message text along word boundaries, the actual width will be the maximum
between the natural width and the width of the longest word.
- aspect - the aspect ratio between width and height, expressed
in Tk style as 100*x/y. The default is 150.
- just - how to justify the message lines, i.e., left, centre or
right.
- anchor - where to place the text within the message bounding
box, e.g., SouthWest anchors the bottom left of the message lines in
the lower lefthand corner of the bounding box, NorthEast anchors the
top righthand corner of the message lines in the top right of the
message bounding box.