User Tools

Site Tools


built_in:set_menu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:set_menu [2015/03/04 17:24]
octazid created
built_in:set_menu [2016/09/04 22:33]
Line 1: Line 1:
-=====SetMenu===== 
- 
-//(Information and examples taken from the DroidScript documentation)// 
- 
-====Description==== 
- 
-The **SetMenu** method sets the app menus given a comma seperated list of menu items. When a menu item is selected, the **OnMenu** function is called. 
- 
-Note: On some Android devices, a menu button is not provided, so if you require them, you will need to create a button to launch the menus yourself using the app.ShowMenu() method. 
- 
-<code> app.SetMenu( menuList );</code> 
- 
----- 
- 
-====Example - No Images==== 
- 
-<code javascript> 
- 
-function OnStart() 
-{ 
-  app.SetMenu( "Start,Stop,Pause" ); 
-} 
- 
-function OnMenu( item ) 
-{ 
-  app.ShowPopup( item, "Short" ); 
-} 
- 
-</code> 
  
built_in/set_menu.txt ยท Last modified: 2016/09/04 22:33 (external edit)