Sorry, a mistyped key sent the last email before I was done composing it.
The code that brings up the form is
MenuEraseStatus(0);
FrmPopupForm(ID_FORM_MYPOPUP);
return 1;
--Mark
----- Original Message -----
From: "Mark Nudelman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 19, 2003 11:27 AM
Subject: Strange positioning problem with popup form
> Form A, a 160x160 form, is on screen. A menu item calls FrmPopupForm to
> bring up form B, which is a 160x103 form positioned near the bottom of the
> screen (it is positioned at 0,56). Everything works fine, except if I tap
> on the unobscured part of form A while form B is up, it acts like form B
has
> suddenly been repositioned at the top of the screen (0,0). For example, I
> can tap an unobscured part of form A and suddenly a form B button appears
> there, acts like it was tapped, but it is 56 (probably) pixels above where
> it should be in form B.
>
> Any ideas on what might be causing this? I've simplified the popup form
to
> the point where it does almost nothing but it still happens. Here's the
> popup form's event handler:
>
> Boolean HandleEvent_Number(EventPtr event)
> {
> switch (event->eType)
> {
> case frmOpenEvent:
> case frmUpdateEvent:
> FrmDrawForm(FrmGetActiveForm());
> return 1;
> case ctlSelectEvent:
> FrmReturnToForm(0);
> return 1;
> default:
> break;
> }
> return 0;
> }
>
> And the code that brings it up in form A's event handler is just:
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/