Raptor:Display Menu Definition
Jump to navigation
Jump to search
Return to the main Raptor page
Description
This block is used to define a menu screen on the Veecan display. The output functions are called automatically when the screen is loaded or active.
Ensure the SelectedItem output of this block is not connected to the Item input of a SelectedItem block. This will cause the menu selector to revert to the initial row every time the button to move the selector is pressed.
Outputs
Output | Type | Description |
---|---|---|
CreateMenu() | FnCall | This function is called once when the menu is entered. It should setup all the static elements. |
UpdateMenu() | FnCall | This function is called regularly when the screen is active to update the dynamic elements of the menu. |
ItemSelected() | FnCall | This function is called when a menu item is selected. |
SelectedItem | uint32 | This is the index of the menu item which was selected. |
IsCurrentScreen | boolean | Output indicates if this screen is the current screen. |
Parameters
Parameter | Type | Description |
---|---|---|
Menu Name | String | Name of screen being defined. |
Number of Items | Number | Defines the number of items in this menu. |
Supported Versions
- Raptor 2013a_0.0.1 and newer