Thanks ANSII - very simple but effective.
Can't see how the LenX and LenY values might be both changeable by scaling, as interlinking them gives a circular reference !
Presumably the name (nimi?) etc could also be represented as a piece of text in the DC centred on the surface, on it's own layer so you could switch it on/off etc etc...
.