FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuListBoxInitialize.c
Go to the documentation of this file.
1#include "FBLib_TMSOSDMenu.h"
2
3bool OSDMenuListBoxInitialize (bool AllowScrollingOfLongText, bool HasValueColumn, bool NumberedItems, bool ScrollLoop, const char *Title, dword x, dword width, bool OSDUpdate)
4{
5 tMenu *pMenu;
6
8
9 if (width <= (dword) LISTBOX_ADDITIONAL_WIDTH + 20 || x + width > 720)
10 {
11 TRACEEXIT();
12 return FALSE;
13 }
14
16 OSDDirty = OSDUpdate;
17
18 OSDMenuInit(AllowScrollingOfLongText, HasValueColumn, NumberedItems, ScrollLoop, Title, NULL);
19
20 pMenu = &Menu[CurrentMenuLevel];
22 pMenu->XPos = x + LISTBOX_OFFSET_TO_X;
23 pMenu->Width = width - LISTBOX_ADDITIONAL_WIDTH;
24
26
27 TRACEEXIT();
28
29 return TRUE;
30}
#define LISTBOX_OFFSET_TO_X
tMenu Menu[NRMENULEVELS]
Definition: OSDMenuInit.c:6
void OSDMenuInit(bool AllowScrollingOfLongText, bool HasValueColumn, bool NumberedItems, bool ScrollLoop, const char *TitleLeft, const char *TitleRight)
Definition: OSDMenuInit.c:47
bool OSDDirty
Definition: OSDMenuInit.c:5
@ OMDM_ListBox
#define LISTBOX_ADDITIONAL_WIDTH
dword CurrentMenuLevel
Definition: OSDMenuInit.c:7
bool OSDMenuListBoxInitialize(bool AllowScrollingOfLongText, bool HasValueColumn, bool NumberedItems, bool ScrollLoop, const char *Title, dword x, dword width, bool OSDUpdate)
#define TRACEEXIT()
Definition: libFireBird.h:1244
bool OSDMenuPush(void)
Definition: OSDMenuPush.c:3
#define TRACEENTER()
Definition: libFireBird.h:1243
void OSDMenuButtonsClear(void)
dword XPos
dword Width
tOSDMenuDisplayMode OSDMenuDisplayMode