Joke Collection Website - Public benefit messages - How to Implement Button Drop-down Menu in Kingview

How to Implement Button Drop-down Menu in Kingview

1) Use the Menu icon in the Toolbox to generate menu images on the screen;

2) Double-click the icon to pop up the menu definition window. For example, make a "screen switching" menu.

Enter "Screen Switching" in the menu text, and add "Alarm Information", "Help Information" and "Monitor Home Screen" to the menu item.

Click Command Language to write the following script.

if(menu index = = 0)

{ShowPicture ("alert information"); }

if(MenuIndex = = 1)

{ShowPicture ("help information"); }

if(MenuIndex = = 2)

{ShowPicture ("monitor home screen"); }