long result;
// configure one User-Layout Data Mask with 10 User-Layout Soft Keys
VTIL_SetNodeProperty("numberOfUserLayoutDataMasks", 1);
VTIL_SetNodeProperty("numberOfUserLayoutSoftKeys", 10);
// add Window Mask 3000 of implement with address 21 at position (0|0)
result = VTIL_AddWindowMask(0, 0, 0, 21, 3000);
if (result != 0)
{
write("Failed to add Window Mask 3000 (error %i)", result);
}
// add Key Group 3100 of implement with address 21 at position 0
result = VTIL_AddKeyGroup(0, 0, 21, 3100);
if (result != 0)
{
write("Failed to add Key Group 3100 (error %i)", result);
}
// remove all Window Masks and Key Groups
result = VTIL_ClearUserLayoutMask(0, 1);
if (result != 0)
{
write("Failed to clear User-Layout mask (error %i)", result);
}