menumeasure.c

来自「Atmega64单片机程序(完整工程)」· C语言 代码 · 共 73 行

C
73
字号
/*这份代码经源码格式软件格式化过
     yang_hx@neusoft.com      */
/******************************************************************************
 * MenuMeasure.C - "测量"菜单

 ******************************************************************************/
#include "SYS_Config.h" 
#include "GUI_Config.h" 
#include "GUI.H" 
#include "Menu.H" 

//测量
//Bar型菜单
void DispMenuMeasureInit()
{
    //----------------------
    GUI_Clear();
    //--------------------
    BarMenu=&MenuMeasure[language];
    //--------------------
    
    ItemNum=(*BarMenu).TextNum ;
    DispItem=(*BarMenu).Text ;
    
    //用户的初始化代码请放在这里
    
    //显示按键对应的文字提示,1-->"选择"
    GUI_DispStringAt(*(Tip[language].Text+1),1,LCD_YSIZE-14);
    //显示按键对应的文字提示,0-->"退出"
	GUI_DispStringAt(*(Tip[language].Text+4),LCD_XSIZE-24,LCD_YSIZE-14);
    
	BarMenuInit();
}



void DispMenuMeasureUp()
{
    //-----------
    PUSH();
    //-------------------
    GUI_Clear();
    switch(Item)
    {
        case 0 : GUI_DispStringAt("Measure 1",20,0);GUI_Delay(500);break ;
        case 1 : GUI_DispStringAt("Measure 2",20,0);GUI_Delay(500);break ;
        case 2 : GUI_DispStringAt("Measure 3",20,0);GUI_Delay(500);break ;
        case 3 : GUI_DispStringAt("Measure 4",20,0);GUI_Delay(500);break ;
        case 4 : GUI_DispStringAt("Measure 5",20,0);GUI_Delay(500);break ;
        case 5 : GUI_DispStringAt("Measure 6",20,0);GUI_Delay(500);break ;
        case 6 : GUI_DispStringAt("Measure 7",20,0);GUI_Delay(500);break ;
        default :GUI_DispStringAt("Measure X",20,0);GUI_Delay(500);break ;
    }
    GUI_Clear();
    //-------------------
    POP();
    //-------------------
}

void DispMenuMeasureDown()
{
    POP();
}

void DispMenuMeasureLeft()
{
    BarMenuLeft();
}
void DispMenuMeasureRight()
{
    BarMenuRight();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?