发表于:2004-03-04 14:54:00
1楼
目前组态王6。5版本支持二级菜单,6。5之前的版本只支持一级菜单,命令语言参考如下:
if(MenuIndex==0&&ChildMenuIndex==0)
ShowPicture("棒图画面");
if(MenuIndex==0&&ChildMenuIndex==1)
ReportPageSetup("Report5");
if(MenuIndex==0&&ChildMenuIndex==3)
ShowPicture("历史趋势曲线画面");
if(MenuIndex==1&&ChildMenuIndex==0)
ShowPicture("棒图画面");
if(MenuIndex==1&&ChildMenuIndex==1)
ShowPicture("历史趋势曲线画面");
if(MenuIndex==0&&ChildMenuIndex==0)
ShowPicture("棒图画面");
if(MenuIndex==0&&ChildMenuIndex==1)
ReportPageSetup("Report5");
if(MenuIndex==0&&ChildMenuIndex==3)
ReportPageSetup("Report5");