This shows you the differences between two versions of the page.
built_in:set_menu [2016/09/04 13:44] 197.211.58.39 |
built_in:set_menu [2016/09/04 22:33] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====SetMenu===== | ||
- | |||
- | // | ||
- | |||
- | ====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. | ||
- | |||
- | < | ||
- | |||
- | ---- | ||
- | |||
- | ====Example - No Images==== | ||
- | |||
- | <code javascript> | ||
- | |||
- | function OnStart() | ||
- | { | ||
- | app.SetMenu( " | ||
- | } | ||
- | |||
- | |||
- | function OnMenu( item ) | ||
- | { | ||
- | app.ShowPopup(bsbsns item, " | ||
- | } | ||
- | |||
- | </ | ||