New Forum | Previous | Next | (P-PDF) Developers
Topic: Detecting when contents of form field has changed
Conf: (P-PDF) Developers, Msg: 52777
Date: 5/29/2002 04:54 PM
I wish to register my own callback for when a user has changed the contents of a field on a PDF form (e.g. by typing in it).
I have tried trapping the KeyDown event with the following code:
static DoKeyDownProcType gKeyDownReplacement = NULL;
ACCB1 ASBool ACCB2 DoKeyDownOverride (AVTool tool, ASUns16 key, ASInt16 flags); // Prototype for my callback
AVTool tool = AVAppGetToolByName (ASAtomFromString("Hand"));
gKeyDownReplacement = ASCallbackCreateProto (DoKeyDownProcType, DoKeyDownOverride);
tool->DoKeyDown = gKeyDownReplacement;
I am finding that my registered callback routine only gets called when a user attempts to type outside of a edit field, but not whilst typing inside of an edit field. The later functionality is required.
Thanks once again in anticipation of any assistance in this matter.