Rabbit OP7100 User Manual Page 81

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 80
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);
Page view 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 171 172

Comments to this Manuals

No comments