Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

palm/repeathandler.c File Reference

utility code for repeat handlers More...

#include <PalmOS.h>
#include <StringMgr.h>
#include <Form.h>
#include <MemoryMgr.h>
#include <Field.h>
#include <repeathandler.h>
#include <palmutils.h>
#include <mem_compat.h>

Go to the source code of this file.

Functions

buttonmapping_tgetSpinnerFieldIndex (buttonmapping_t *mapping, UInt16 buttonControl, Boolean isButton)
 get a spinner field index

buttonmapping_tprocessRepeater (buttonmapping_t *map, UInt16 control, Boolean isButton, bmPostHandler post_handle)
 process a repeat button being pressed


Detailed Description

utility code for repeat handlers

Code to deal with the spinners and the fields that they relate to.

Definition in file repeathandler.c.


Function Documentation

buttonmapping_t* getSpinnerFieldIndex buttonmapping_t   map,
UInt16    buttonControl,
Boolean    isButton
 

get a spinner field index

Parameters:
map  the list of mapping items
buttonControl  the button/spinner that was checked
isButton  is it a button (or a spinner)
Returns:
the item that was found or null.

Definition at line 19 of file repeathandler.c.

References buttonmapping_tag::down, buttonmapping_tag::field, UInt16, and buttonmapping_tag::up.

Referenced by processRepeater().

buttonmapping_t* processRepeater buttonmapping_t   map,
UInt16    control,
Boolean    isButton,
bmPostHandler    post_handle
 

process a repeat button being pressed

Parameters:
map  the list of items to process
control  the control that was clicked
isButton  is it a button
post_handle  function to call after processing value change
Returns:
the map item that was picked.

Definition at line 39 of file repeathandler.c.

References bmPostHandler, buttonmapping_tag::down, buttonmapping_tag::field, GetObjectPtr(), getSpinnerFieldIndex(), Int32, buttonmapping_tag::max, buttonmapping_tag::min, and UInt16.

Referenced by cnFieldContentChanged(), cnRepeatPressed(), dealFieldContentChange(), and dealRepeats().


Generated on Mon Aug 30 19:44:17 2004 for pocketcity by doxygen1.2.18