Put this into your form resize function. 

Int16 horizontalOffset, verticalOffset;
Coord x, y;
UInt16 index;

CollapseResizeForm(frmP, false, &horizontalOffset, &verticalOffset);

index = FrmGetNumberOfObjects(frmP);
while (index--)
{
    if (FrmGetObjectType(frmP, index) == frmGraffitiStateObj)
    {
        FrmGetObjectPosition (frmP, index, &x, &y);
        x += horizontalOffset;
        y += verticalOffset;
        FrmSetObjectPosition (frmP, index, x, y);
        break;
    }
}



Regards,
Benjamin Stadin
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to