I've been at it all day, and nothing works. Here is my latest attempt: FormPtr tmp; tmp = FrmInitForm(frmPopup); FrmSetActiveForm(tmp); // So it will receive the pendowns FrmSetEventHandler(tmp, (FormEventHandlerPtr) frmPopupMsgEventH); // Since we won't be going through the EventLoop(), this is required FrmDrawForm(msgForm); // So it will physically be shown on the screen PerformLongOperation(); // During this operation I hit the screen a few times with the pen EventType evt; evt.eType = frmCloseEvent; evt.data.frmClose.formId = FrmGetFormId(tmp); FrmDispatchEvent(&evt); // Dispatch close event. The should be handled by the handler after all the pendowns, but somehow doesn't
On frmPopupMsgEventH I'm returning true for penDownEvent, penUpEvent, keyDownEvent and keyUpEvent, in order to indicate that the form handled them. I tried setting a breakpoint on the pens and keys events in this handler, but the breakpoint was never hit. I even tried to put Luc's FlushPenDownEvents() from the post above after PerformLongOperation() and even in the form's frmCloseEvent, but still all the pen hits were handled by the form behind it. Did I get too deep into it? Because it really seems like a simple task to achieve... At times like this I wish for Microsoft's Me.Enabled = False... Thanks 2008/1/30, Lionscribe <[EMAIL PROTECTED]>: > > The best thing to do it is to create a new form, which does not respond to > any penDowns, show the form, and then do the long function. When done, post > a frmCloseEvent, which should be handled after all the penDown events. > Once you have this form, you can add a progress bar to it, as the previous > post mentioned, and maybe a 'Cancel' button (just remember to check for > events if you add the c > Cancel button). > Lionscribe > > -- > For information on using the ACCESS Developer Forums, or to unsubscribe, > please see http://www.access-company.com/developers/forums/ > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
