Yes, "Pen" event can be normally created in the emulator. However, when
the application includes the SerReceiveWait() and SerReceiveCheck()
functions, the "Pen" events only for the 7 hardware buttons can be
created, but not for other, such as the Menu icon and the command
buttons on the application's user interface. Which method or function
can I use to get such "Pen" events in the emulator? I have tried the
EvtGetEvent() function and it is same situation. If the SerReceiveWait()
and SerReceiveCheck() functions are deleted, all "Pen" events are there.
Thanks lot for your help,
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 15, 2000 11:10 PM
To: Palm Developer Forum
Subject: Re: Help... How to get low-level system event
>From the release notes for 3.0a5:
* "Pen" events are essentially created as needed and inserted into
the Palm OS on demand from mouse events by way of a patch on the
SysEventGet function. However, until now, there was no
corresponding patch to EvtSysEventAvail to make that function
return
true if the host mouse was down. Now there is. [Michael
Nordstrom]
-- Keith Rollin
-- Palm OS Emulator engineer
Feng Wang <[EMAIL PROTECTED]> on 03/15/2000 02:20:18 PM
Please respond to "Palm Developer Forum"
<[EMAIL PROTECTED]>
Sent by: Feng Wang <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Keith Rollin/HQ/3Com)
Subject: Help... How to get low-level system event
Hello,
I run my application with serial communication on the emulator, in
which a do-while loop is used to read and write data by the serial
port. It
looks like working. However, all the icons and the command button on the
screen are disabled, that is, when I click the icons and the command
button,
nothing happens. The following is my code,
do{
err = SerReceiveWait(eSerialRefNum, sizeof(theData), 30);
if(err == serErrLineErr)
{
SerReceiveFlush(eSerialRefNum, 1);
continue;
}
err = SerReceiveCheck(eSerialRefNum, &numBytesPending);
if(err == serErrLineErr)
{
SerReceiveFlush(eSerialRefNum, 1);
continue;
}
ErrFatalDisplayIf(err != 0, "SerReceiveCheckFail");
if(numBytesPending > 12)
{
numBytes = SerReceive(eSerialRefNum, theData,
numBytesPending, 0, &err);
if(err == serErrLineErr)
{
SerReceiveFlush(eSerialRefNum, 1);
continue;
}
//processing the data
correctReading = true;
}
}while(!correctReading && !EvtSysEventAvail(false));
and I tried to use EvtSysEventAvail() to get the icon or command button
event, but it does not work.
If I comment this do-while loop, the icon and button work.
I use Code Warrior R6, the Palm OS v3.1 that is uploaded from my Palm
IIIe
and the Emulator 3.0a4 Win.
Could you give me your idea to resolve the problem?
Feng Wang
Email: [EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe,
please
see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html