User’s Manual
75
4.5.6 Graphic Display Functions
4.5.6.1 On-Screen Menus
The
GLMENU.LIB
library in the
LIB\DISPLAYS\GRAPHIC
directory provides function
calls to display menus on the OP7200 LCD display. When
x
and
y
coordinates on the
display screen are specified,
x
can range from 0 to 319, and
y
can range from 0 to 239.
These numbers represent pixels counted from the top left corner of the display.
Initializes a menu structure with the required parameters to automatically build and display a text menu
when the
glMenu
function is executed.
PARAMETERS
menu
is a pointer to the
windowMenu
descriptor
pFont
is a pointer to the
fontInfo
descriptor
border
describes the menu border options:
0 =
NO_BORDER
, no border drawn
1 =
SINGLE_LINE
, draw a single-line border around the text menu
2 =
DOUBLE_LINE
, draw a double-line border around the text menu
shadow
describes the menu shadow options:
0 =
NO_SHADOW
, no shadowing provided
1 =
SHADOWING
, shadowing is provided on the menu
menu_options
is a pointer to the list of menu options—here is an example of a list of options for the
menu system:
// Menu options........set as needed for your application
const char *main_menu [] =
{
"1.Increase Menu size",
"2.Decrease Menu size",
"3.Backlight menu",
""
};
It is possible to insert or delete menu options. The highlight bar is set up to start with the first menu
option and stop at the last menu option in the menu.
When adding or deleting menu options you must match up the case statements to the menu option number.
title
is the menu title
ASCII string = title
null string = no title
maxOptDisplayed
indicates the maximum number of options to be displayed by the menu:
-1 = forces all options to be displayed
>0 = menu box will only display the number of options indicated, which will require the user to use
the scroll keys to bring an option into the menu box view area for the selection
int glMenuInit(windowMenu *menu, fontInfo *pFont,
int border, int shadow, char **menu_options,
char* title, maxOptDisplayed);
Summary of Contents for eDisplay
Page 1: ...eDisplay OP7200 VGA Operator Control Panel User s Manual 019 0116 081115 L...
Page 6: ...eDisplay OP7200...
Page 14: ...8 eDisplay OP7200...
Page 22: ...16 eDisplay OP7200...
Page 52: ...46 eDisplay OP7200...
Page 126: ...120 eDisplay OP7200...
Page 132: ...126 eDisplay OP7200...
Page 152: ...146 eDisplay OP7200...
Page 170: ...164 eDisplay OP7200...
Page 172: ......