Hi Andy,
1. EvtEnqueueKey takes the character code as the first parameter, and
the key code as the second. The key code should always be zero
currently, so calls like:
> EvtEnqueueKey (0x0030, chrDigitZero, 0);
should actually be
> EvtEnqueueKey (chrDigitZero, 0, 0);
2. The delete button should be generating a backspace keydown event
(chrBackspace = 0x0008), not chrDelete.
3. Handling the next and previous field keydown events is the
responsibility of your app - it isn't done for you by the form code,
for example.
-- Ken
At 12:00am -0700 00-06-26, Palm Developer Forum digest wrote:
>Subject: Enqueuing virtual keycodes
>From: Andy Black <[EMAIL PROTECTED]>
>Date: Sun, 25 Jun 2000 18:24:46 -0400
>X-Message-Number: 6
>
>Hello,
>
>I am using the following code for my numeric keypad in my program and am
>having some problems.
>
> case ctlSelectEvent:
> switch (eventP->data.ctlSelect.controlID)
> {
> //------code removed-----------//
> case MainZeroButton:
> EvtEnqueueKey (0x0030, chrDigitZero, 0);
> break;
> case MainDecimalButton:
> EvtEnqueueKey (0x002E, chrFullStop, 0);
> break;
>
> case MainDeleteButton:
> EvtEnqueueKey (0x007F, chrDelete, 0);
> break;
>
> case MainNextButton: //move to next editable text field
> EvtEnqueueKey (0x0103, vchrNextField, commandKeyMask);
> break;
>
> case MainPreviousButton: //move to previous text field
> EvtEnqueueKey (0x010C, vchrPrevField, commandKeyMask);
> break;
> }
> handled = false;
> break;
>
>Everything works except the chrDelete, vchrNextField, vchrPrevField. I tap
>the buttons on my keypad and nothing. Do I need to handle these (chrDelete,
>etc...) differently than the rest of the keycodes?
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/