Raptor:Display Menu Definition

From NewEagleWiki
Revision as of 15:07, 13 September 2023 by Jwoytsek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Return to the main Raptor page

Return to Menu page

Raptor™ Display Menu Definition

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