Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

left >= right
top >= bottom
pScheme is not pointing to a GFX_GOL_OBJ_SCHEME
horizontal key or vertical key count is 0
pText is an unterminated string
pBuffer is initialized to an allocated memory.
Preconditions
None.
Example
#define ID_TEXTENTRY 0x20
#define TEBUFFERSIZE 20 // 20 characters
GFX_XCHAR delKey[] = {'d','e','l',0};
GFX_XCHAR spaceKey[] = {'s','p','c',0};
GFX_XCHAR enterKey[] = {'e','n','t','e','r',0};
GFX_XCHAR exitKey[] = {'M','a','i','n',0};
GFX_XCHAR key1[] = {'1',0};
GFX_XCHAR key2[] = {'2',0};
GFX_XCHAR key3[] = {'3',0};
GFX_XCHAR key4[] = {'4',0};
GFX_XCHAR key5[] = {'5',0};
GFX_XCHAR key6[] = {'6',0};
GFX_XCHAR key7[] = {'7',0};
GFX_XCHAR key8[] = {'8',0};
GFX_XCHAR key9[] = {'9',0};
GFX_XCHAR key0[] = {'0',0};
GFX_XCHAR keystar[] = {'*',0};
GFX_XCHAR keypound[] = {'#',0};
GFX_XCHAR *pKeyNames[] = { key1, key2, key3, delKey,
key4, key5, key6, spaceKey,
key7, key8, key9, enterKey,
keystar, key0, keypound, exitKey
};
// assume pScheme is initialized
// myFont is a font in memory
GFX_GOL_OBJ_SCHEME *pScheme;
GFX_GOL_TEXTENTRY *pTe;
GFX_RESOURCE_HDR *pFont = &myFont;
pTe = GFX_GOL_TextEntryCreate(
ID_TEXTENTRY, // ID
30,80,235,160, // dimension
GFX_GOL_TEXTENTRY_DRAW_STATE, // draw the object
4, // number of horizontal keys
4, // number of vertical keys
pKeyNames, // pointer to the array of key names
"Enter Code", // initial text
GFX_ALIGN_CENTER, // align text on the center
TEBUFFERSIZE, // size of the buffer for text
pFont, // pointer to the font of the
// diplayed text
pScheme); // use given scheme
Parameters
Parameters Description
ID Unique user defined ID for the object instance.
left Left most position of the object.
top Top most position of the object.
right Right most position of the object.
bottom Bottom most position of the object.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
280

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh