At 01:08 1/06/00 +0200, you wrote:
>"Scott L. Johnson" wrote:
> > > From: Richard Burmeister [mailto:[EMAIL PROTECTED]]
> > > But when I tap the trigger, the list doesn't open.
> > Does your event loop handle the ctlSelect event (if you have any buttons on
> > the form) and if so, does it return true when you tap this trigger? This
> > would case the problem you are seeing. You must return false to permit the
> > OS to pop up the list.
>Funny. I currently have the same problem. There is a form with a button
>and a trigger, and none of them reacts. Actually there are no
>ctlSelectEvents created, just keyDownEvent and keyUpEvent.
not 100%, you need to do your code for your buttons and if there is an
select event that doesn't match pass it to the default system handler. Try
this :-
switch(event.eType)
{
case ctlSelectEvent: // On selection of an element.
switch(event.data.ctlSelect.controlID)
{
case deletemBTN:
// If it is the
// Delete Button.
break;
default:
goto Dft;
break;
}
break;
default:
Dft: // Leave the rest to standard functions
FrmHandleEvent(FrmGetActiveForm(), &event);
break;
}
Tim
dotWAP Pty. Ltd.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/