Casio IT-2000D User Manual

Page 169

Advertising
background image

169

Deleting Enhanced Keys

Deletes the data of the specified enhanced key. Only the frame will be remained.

SYNTAX

int KEY_DelExtKey(int keyno, KEYLIST *keylist);

INPUT

keyno = Number of the expansion key

KDC_EXTKEY1(1) Enhanced key 1

KDC_EXTKEY2(2) Enhanced key 2

keylist = list of replaceable keys

typedef struct{

int data_cnt; /*Number of replaced keys*/

KDC_EXTKEYINFO far *keyinfo;

/*Table of replaceable key information */

}KDC_EXTKEYLIST;

typedef struct{

unsigned int keycode; /*Key code to be set*/

int change_position; /*Place of replacement (1 to 48) */

char far *image_adr; /*Button display data (32 x 24 bit)*/

}KDC_EXTKEYINF

O;

OUTPUT

= 0 Normal termination

= -1 Input parameter error

EXAMPLE

#include "padlib.h"

KEYLIST keylist:

int retcode, i;

for (i = 0; i < countof(keydata):i++){

keydata[i].change_position = xxxx;

}

keylist.data_cnt = countof(keydata);

retcode = KEY_DelExtKey(KDC_EXTKEY1, &keylist);

Refer to “ KEY_SetExtKey “ also.

Note:

Deletion of a key which is assigned to a position that has not been registered will not result in error.

Advertising