Sorry, a stupid mistake.  I was trying to use the field index like a field
ID.

Jamie
----- Original Message -----
From: "Jamie Macleod" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Saturday, January 29, 2000 1:44 PM
Subject: Creating Events


> I am trying to create an event which will tell me when the text of a field
> has changed.  I want to update a bitmap depending on the value of the text
> in a field.  I catch the keyDownEvent in the event handler and than try to
> issue a fldChangedEvent.  The fldChangedEvent never seems to be caught
> though.  Can anyone help me out here.  Thanks.
>
>
>  case keyDownEvent: // Get key Event
>    fldIndex = FrmGetFocus(frm);  // Get Index of the field currently
having
> focus
>    if (fldIndex == EditWordWordField)
>     {
>     EvtCopyEvent(event,&eNewEvent);
>       eNewEvent.eType = fldChangedEvent;
>       eNewEvent.data.fldChanged.fieldID = EditWordWordField;
>       eNewEvent.data.fldChanged.pField = FrmGetObjectPtr(frm,
> FrmGetObjectIndex(frm,EditWordWordField));
>       EvtAddEventToQueue(&eNewEvent);
>       }
>    break;
>
>  case fldChangedEvent:
>    if (event->data.fldChanged.fieldID == EditWordWordField)
>     DrawBitmap(2,20,FldGetTextHandle(FrmGetObjectPtr(frm,
> FrmGetObjectIndex(frm,EditWordWordField))));
>    break;
>
>
>
> Jamie Macleod
>
>
>
> __________________________________________________
>
> Do You Yahoo!?
>
> Talk to your friends online with Yahoo! Messenger.
>
> http://im.yahoo.com
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>



__________________________________________________

Do You Yahoo!?

Talk to your friends online with Yahoo! Messenger.

http://im.yahoo.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to