Forms.c
#include <PalmCompatibility.h>
Word
are now UInt16
or Int16
.
To compile existing applications, need to make these changes in your code or include the header file PalmOSCompatibility.h
.
case ctlRepeatEvent:
tREP
), it sends a ctlRepeatEvent.
When CtlHandleEvent
receives a ctlRepeatEvent
in a repeating button, it sends another ctlRepeatEvent
if the pen remains down within the bounds of the control for 1/2 second beyond the last ctlRepeatEvent
.
If you return true
in response to a ctlRepeatEvent
, it stops the ctlRepeatEvent
loop.
No further ctlRepeatEvents
are sent.
For this event, the data
field contains the following structure:
struct ctlRepeat { UInt16 controlID; struct ControlType *pControl; UInt32 time; UInt16 value; } ctlRepeat;
controlID
: Developer-defined ID of the control
pControl
: Pointer to a control structure (ControlType)
time
: System-ticks count when the event is added to the queue
value
: Current value if the control is a feedback slider
obj = FrmGetObjectIndex( frm, Form3Count );
frmInvalidObjectId
if the supplied object ID is invalid.
formP
: Pointer to the form object (FormType structure)
objID
: ID of an object in the form