Argox PA-20 Programming Guide Instrukcja Użytkownika Strona 105

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 130
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 129 130

Komentarze do niniejszej Instrukcji

Brak uwag