et_getfp()

Returns a pointer to the event function associated with the event code

Call
#include <vv_sys.h>
EVENTFP et_getfp(eventcode, etp)

USHORT eventcode

Event code for which to find the associated function

ETPTR etp Pointer to the event table to search
Description of Parameters

etp: Specify a pointer to an event table. The Vermont Views event tables are as follows:

CLETP Choice list event table
FLDETP Field event table
FMETP Form event table
DRAGETP Draw and drag event table
HELPETP Help event table
MEMOETP Memo event table
MNETP Menu event table
PUSHETP Pushbutton event table
RADIOETP Radio button event table
SRETP Scrollable region event table
SYSETP System event table
TTMEMOETP Tickertape memo event table
VIEWETP Viewing event table
LBOXETP List box event table
Returns  
POINTER A pointer to the event function associated with the specified event code in the event table.
NULLFP One of the following has occurred: (1) the event code is 0, (2) the event table pointer is NULLP, or (3) there is no function associated with this event code
Description

If either the event code or event table pointer is a NULLP, et_getfp() immediately returns 0. Otherwise, et_getfp() searches the event table for the specified event code. If a match is found, et_getfp() returns the pointer to the corresponding event function.

Related Functions

et_def(), et_delfp(), et_free(), et_rplevnt()


Home Contents Previous Next