FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuButtonModifyText.c
Go to the documentation of this file.
1#include <string.h>
2#include "FBLib_TMSOSDMenu.h"
3
4void OSDMenuButtonModifyText (dword ButtonIndex, const char *Text)
5{
6 tMenu *pMenu;
7
9
10 pMenu = &Menu[CurrentMenuLevel];
11
12 if (Text && (ButtonIndex < pMenu->NrButtons))
13 {
14 strncpy(pMenu->Buttons[ButtonIndex].Text, Text, STDSTRINGSIZE);
15 pMenu->Buttons[ButtonIndex].Text[STDSTRINGSIZE - 1] = 0;
16
17 ButtonsDirty = TRUE;
18 }
19
20 TRACEEXIT();
21}
tMenu Menu[NRMENULEVELS]
Definition: OSDMenuInit.c:6
#define STDSTRINGSIZE
dword CurrentMenuLevel
Definition: OSDMenuInit.c:7
bool ButtonsDirty
void OSDMenuButtonModifyText(dword ButtonIndex, const char *Text)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243
char Text[STDSTRINGSIZE]
tButtons Buttons[MAXBUTTONS]