SetMenu
This function will set the default menu for the current Client device. This is typically used to set an initial menu for an undefined user (i.e., you are bypassing the normal login process.)
The optional parameter ClearStack replaces the existing menu stack with the one specified if its set to True. (True is the default.) False will add the specified menu to the top current menu stack and place the other menus behind it.
App.SetMenu also reinitializes the menu immediately if RFMenu is the active form.
Group: Application-Based Extensions
Syntax: App.SetMenu(sMenuName, [bClearStack])
sMenuName (String) is the default menu name for the connected Client device.
bClearStack (Boolean) Optional. True will replace the existing menu stack with this menu. False will add it to the top of the current menu stack.
Example:
App.SetMenu("Sample", True)
'Will replace the current menu and set the new default menu to "Sample".
Note: RFgen 5.2.4.2 added parameter “ClearStack”.
Version Supported: RFgen 4.0, 4.1, 5.0, 5.1, 5.2 and newer.