Appendix A - anchorx and anchory Values

The anchorx/y values describe where text will appear in the given area. You may define a rectangle that is much larger than usual amounts of text that go in it (i.e. mm2 window), but want the newest text always to appear at the top, or the bottom, and left or right justified.

ValueComment
ANCHOR_NONENo special anchoring, text appears starting at rect co-ords
ANCHOR_AUTOSIZE_WIDTHAuto-size the item depending on the width of the text (anchorx)
ANCHOR_AUTOSIZE_HEIGHTAuto-size the item depending on the height of the text (anchory)
ANCHOR_RIGHTAnchor text to the right side of the area when it isn't the full width of the rectangle (anchorx)
ANCHOR_BOTTOMAnchor text to the bottom of the area when it isn't the full height of the rectangle (anchory)
ANCHOR_CENTERCenter text in the width of the rectangle when it isn't the full width (anchorx)
ANCHOR_MIDDLECenter text in the middle of the rectangle when it isn't the full height (anchory)