Just call the following function to center the object. You will have to call FrmDrawForm when done.
void CenterObject(FormType * formP, UInt16 objectID) { RectangleType rect, rectForm; UInt16 objIndex = FrmGetObjectIndex(formP, objectID); FrmGetObjectBounds(formP, objIndex, &rect); FrmGetFormBounds(formP, &rectForm); rect.topLeft.x = (rectForm.extent.x - rect.extent.x) / 2; FrmSetObjectBounds(formP, objIndex, &rect); } Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/