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
4
void
OSDMenuButtonModifyText
(dword ButtonIndex,
const
char
*Text)
5
{
6
tMenu
*pMenu;
7
8
TRACEENTER
();
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
}
FBLib_TMSOSDMenu.h
Menu
tMenu Menu[NRMENULEVELS]
Definition:
OSDMenuInit.c:6
STDSTRINGSIZE
#define STDSTRINGSIZE
Definition:
FBLib_TMSOSDMenu.h:8
CurrentMenuLevel
dword CurrentMenuLevel
Definition:
OSDMenuInit.c:7
ButtonsDirty
bool ButtonsDirty
Definition:
FBLib_TMSOSDMenu.h:223
OSDMenuButtonModifyText
void OSDMenuButtonModifyText(dword ButtonIndex, const char *Text)
Definition:
OSDMenuButtonModifyText.c:4
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tButtons::Text
char Text[STDSTRINGSIZE]
Definition:
FBLib_TMSOSDMenu.h:55
tMenu
Definition:
FBLib_TMSOSDMenu.h:67
tMenu::Buttons
tButtons Buttons[MAXBUTTONS]
Definition:
FBLib_TMSOSDMenu.h:83
TMSOSDMenu
OSDMenuButtonModifyText.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3