Vault 7: Projects

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

Syntax
uint16_t GFX_GOL_RadioButtonCheckGet(GFX_GOL_RADIOBUTTON * pObject);
Returns
The ID of the member of the group with the check.
Description
This function returns the ID of the currently checked radio button in the group. When there is only one member of the group,
then that member will have the check.
When no member of the group is checked, then the id returned is (-1 or 0xFFFF).
Preconditions
Object must exist in memory.
Example
static GFX_XCHAR label0[] = "RB1";
static GFX_XCHAR label1[] = "RB2";
static GFX_XCHAR label2[] = "RB3";
uint16_t state;
GFX_GOL_OBJ_SCHEME *pScheme;
RADIOBUTTON *pRb[3];
uint16_t ID;
pScheme = GFX_GOL_ObjectSchemeCreate();
// Object will be drawn after creation
// Object will be first button in the group
state = GFX_GOL_RADIOBUTTON_DRAW_STATE |
GFX_GOL_RADIOBUTTON_CHECKED_STATE;
pRb[0] = GFX_GOL_RadioButtonCreate(ID_RADIOBUTTON1,
255,40,310,80,
state,
label0,
GFX_ALIGN_CENTER,
pScheme);
// Object will be drawn after creation
state = GFX_GOL_RADIOBUTTON_DRAW_STATE;
pRb[1] = GFX_GOL_RadioButtonCreate(ID_RADIOBUTTON2,
255,85,310,125,
state,
label1,
GFX_ALIGN_CENTER,
pScheme);
// Object will be drawn after creation
state = GFX_GOL_RADIOBUTTON_DRAW_STATE;
pRb[2] = GFX_GOL_RadioButtonCreate(ID_RADIOBUTTON3,
255,130,310,170,
state,
label2,
GFX_ALIGN_CENTER,
pScheme);
// draw the objects
while(GFX_GOL_ObjectListDraw() != GFX_STATUS_SUCCESS);
// can also use pRb[1] or pRb[0] to search the checked
// radio button of the group. ID here should be ID_RADIOBUTTON1
ID = GFX_GOL_RadioButtonCheckGet(pRb[2]);
if (ID == ID_RADIOBUTTON1)
{
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
248

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh