Vault 7: Projects

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

Function
void GFX_GOL_ListBoxActionSet(
GFX_GOL_TRANSLATED_ACTION translatedMsg,
void *pObject,
GFX_GOL_MESSAGE *pMessage)
1.6.2.1.6.11 GFX_GOL_ListBoxCreate Function
This function creates a GFX_GOL_LISTBOX object with the parameters given. It automatically attaches the new object into
a global linked list of objects and returns the address of the object.
File
gfx_gol_list_box.h
Syntax
GFX_GOL_LISTBOX * GFX_GOL_ListBoxCreate(uint16_t ID, uint16_t left, uint16_t top, uint16_t
right, uint16_t bottom, uint16_t state, GFX_XCHAR * pText, GFX_ALIGNMENT alignment,
GFX_GOL_OBJ_SCHEME * pScheme);
Returns
Pointer to the newly created object.
Description
This function creates a GFX_GOL_LISTBOX object with the parameters given. It automatically attaches the new object into
a global linked list of objects and returns the address of the object.
This function returns the pointer to the newly created object. If the object is not successfully created, it returns NULL.
The behavior of GFX_GOL_ListBoxCreate() will be undefined if one of the following is true:
left >= right
top >= bottom
pScheme is not pointing to a GFX_GOL_OBJ_SCHEME
pText is an unterminated string
Preconditions
None.
Example
#define LISTBOX_ID 10
const XCHAR ItemList[] = "Line1n" "Line2n";
GFX_GOL_OBJ_SCHEME *pScheme;
GFX_GOL_LISTBOX *pLb;
GFX_XCHAR *pTemp;
uint16_t state, counter;
//assume scheme is a valid style scheme in memory
pScheme = &scheme;
state = GFX_GOL_LISTBOX_DRAW_STATE;
// create an empty listbox with default style scheme
pLb = GFX_GOL_ListBoxCreate( LISTBOX_ID, // ID number
10,10,150,200, // dimension
state, // initial state
NULL, // set items to be empty
GFX_ALIGN_CENTER,
NULL); // use default style scheme
// check if Listbox was created
if (pLb == NULL)
return 0;
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
209

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh