Raptor:Display Menu Definition: Difference between revisions
Jump to navigation
Jump to search
(Created page with 'Return to the main Raptor page Return to Menu page right|frame|Raptor™ Display Menu Definition…') |
No edit summary |
||
Line 8: | Line 8: | ||
<p>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.</p> | <p>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.</p> | ||
<p>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.</p> | |||
== Outputs == | == Outputs == |
Latest revision as of 15:07, 13 September 2023
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