Other, Prc_menu_color – Argox PA-20 Programming Guide User Manual
Page 105

PT-20 Programming Guide
103
Purpose: Create a menu-driven interface.
Syntax: void prc_menu_color(MENU_COLOR *menu);
Example call: void FuncMenu_01(void)
{
/*to do :add your own program code here*/
}
void FuncMenu_02(void)
{
/*to do :add your own program code here*/
}
void FuncMenu_03(void)
{
/*to do :add your own program code here*/
}
MENU_ENTRY_COLOR Menu_01 = {0,1,"1.Test Menu
01",&FuncMenu_01,0};
MENU_ENTRY_COLOR Menu_02 = {0,2,"2.Test Menu
02",&FuncMenu_02,0};
MENU_ENTRY_COLOR Menu_03 = {0,3,"3.Test Menu
03",&FuncMenu_03,0};
void prc_menu_Test(void)
{
MENU_COLOR Menu_Test = {3,1,0,"Menu Test!!", COLOR_BROWN,
COLOR_BLACK, COLOR_LIGHTBLUE, {&Menu_01, &Menu_02,
&Menu_03}};
prc_menu_color (&Menu_Test);
}
Includes:
#include “SDK.h ”
Description: The prc_menu_color function is used to create a user-defined menu.
SMENU_COLOR and SMENU_ENTRY_COLOR structures are defined
in
”SDK.h”. Users can just fill the SMENU_ENTRY_COLOR structure and