Argox PA-20 Programming Guide Manual de usuario Pagina 105

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 130
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 104
PT-20 Programming Guide
103
Other
prc_menu_color
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
Vista de pagina 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 129 130

Comentarios a estos manuales

Sin comentarios