要写12864中英文菜单,有相关资料的请推荐下,嘿嘿

2019-12-26 18:56发布

想写个12864的中英文菜单的程序,   之前都是自己写的,感觉不是很好,不知道有没有什么开源的,比较好的菜单程序,请推荐下,嘿嘿

zlggui不知道怎样
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
24条回答
gongxd
2019-12-26 19:23

1.gif (292.76 KB, 下载次数: 0)

下载附件

2016-8-30 21:07 上传


中英文菜单,可方便添加更多语言
菜单定义方式方便

#include "Menu_Function.h"


MenuItemStruct code MenuMain[]= {
    {"1.校准","1.Adjustment",1,Null},
    {"2.仪器设置","2.Instrument",2,Null},
    {"3.语言","3.Language",3,Null},
    {"4.关于","4.About",MenuHasFunction,weldisplay},
};

MenuItemStruct code MenuSub1[]= {
    {"1.偏差值","1.Offset",MenuHasFunction,Null},
};

MenuItemStruct code MenuSub2[]= {
    {"1.温度单位","1.Temp. unit",MenuHasFunction,Null},
    {"2.AO范围","2.AO scaling",MenuHasFunction,Null},
    {"3.高低限报警","3.Limit setting",MenuHasFunction,Null},
    {"4.亮度设置","4.Display(Hi,Lo)",MenuHasFunction,Null},
    {"5.温度校准","5.Temp.offset",MenuHasFunction,Null},

};

MenuItemStruct code MenuSub3[]= {
    {"1.English","1.中文",MenuHasFunction,dateset},
};

//菜单板列表
MenuPanelStruct code MenuPanel[]= {
    {MenuPanelID(MenuMain)},
    {MenuPanelID(MenuSub1)},
    {MenuPanelID(MenuSub2)},
    {MenuPanelID(MenuSub3)},
};

一周热门 更多>