Here's my code:
void MoveFormHorizontal(FormType *frmP, UInt16 x)
{
RectangleType rect;
WinHandle winH = FrmGetWindowHandle(frmP);
WinGetBounds (winH, &rect);
rect.topLeft.x = x;
WinSetWindowBounds(winH, &rect);
}
RectangleType frmBounds;
FormType* frmLookupP = FrmInitForm(LookupForm);
FrmSetActiveForm(frmLookupP);
//Position the form
FrmGetFormBounds(frmLookupP, &frmBounds);
MoveFormHorizontal(frmLookupP, GetScreenWidth() -frmBounds.extent.x); //move
to right side of screen
MoveFormVertical(frmLookupP, (GetScreenHeight() - frmBounds.extent.y) / 2);
//center vertically
// Set Title
FrmSetTitle(frmLookupP, lookupFormTitleStr);
//set the active form back to the question form
FrmSetActiveForm(frmP);
buttonTapped = FrmDoDialog(frmLookupP);
The problem is that the form moves to the right side of the screen like it
should, but the button text and form title don't move with it. I know the
buttons have moved because I can click on them but the text is not lined up
with the position of the buttons.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/