Writing Event Functions for CLETP

A pointer to a choice list structure is passed to the event functions in the CLETP. The choice list structure's first three members are identical to the key control structure—a structure tag, a pointer to a window, and an action code. Additional members in the choice list structure can be accessed using choice list functions.

The tag member of the help structure is initialized to CL_TAG. The window pointed to in the choice list structure is the window used to display the choice list and is set to be associated with the memory file containing the choice list items.

Because the first three members of the structure are the same as the key control structure, the viewing event functions ("kv" event functions) can be and are used to view the memory file within the window.

The action code value is used internally. To achieve the same effect as setting the action code, call the event functions available for the viewing and choice list event tables, VIEWETP and CLETP.


Home Contents Previous Next