|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2011-8-21 16:53:36
|
显示全部楼层
//---------------------------------------------------
//各个菜单的资源
//命名方式是:
//---------------------------------------------------
//顶层菜单
U8 *const TopItemCN[]=
{
"功能",
"参数",
"测量",
"语言",
"测试"
};
U8 * const TopItemEN[]=
{
"Function",
"Parameter",
"Measure",
"Language",
"Test"
};
//"功能"菜单项的内容和长度
U8 * const FuncItemCN[]=
{
"读出数据",
"背光控制",
"出厂设置",
"修改密码"
};
U8 * const FuncItemEN[]=
{
"Read Data",
"BackLight",
"Factory Set",
"Change CODE"
};
//"参数"菜单项的内容和长度
U8 * const ParaItemCN[]=
{
"阈值",
"死时间T",
"灵敏度K",
"测量时间"
};
U8 * const ParaItemEN[]=
{
"Menu0",
"Menu1",
"Menu2",
"Menu3",
"Menu4",
"Menu5",
"Menu6",
"Menu7"
};
//"语言"菜单项的内容和长度
U8 * const LanguageItemCN[]=
{
"中文",
"English"
};
U8 * const LanguageItemEN[]=
{
"中文",
"English"
};
//测量
U8 * const MeasureItemCN[]=
{
"检测上拉电阻",
"清空出错记录",
"在线命令",
"输入口测试",
"模拟主轴测试",
"轴信号测试",
"继电器测试"
};
U8 * const MeasureItemEN[]=
{
"PushUp Res",
"ClearErrCount",
"OnlineCMD ",
"SysInputTest",
"SVC TEST",
"AXis TEST",
"Relay TEST"
};
//提示键的文本
U8 * const TipCN[]=
{
"Menu",
"选择",
"确认",
"取消",
"?确认?"
};
U8 * const TipEN[]=
{
"Menu",
"Select",
"Ok",
"Cancel",
"? OK ?"
};
//图标层
struct Menu IcoMenu[] =
{
MenuWhat(TopItemCN),
MenuWhat(TopItemEN)
};
上面就是调用宏的地方 |
|