Skip to content

UpdateItem - cWebMenuBar

Updates a specific dynamic menu item with the menu item passed as a struct

Type: Procedure

Parameters

Parameter Type Description
sId String Unique identifier of the menu item that needs to be updated
bOverwriteSubItems Boolean If True, the sub items of the menu item will be replaced with the children of the NewItem struct
NewItem tWebMenuItem Contents of the new menu item

Syntax

Procedure UpdateItem String sId Boolean bOverwriteSubItems tWebMenuItem NewItem

Call Example

Send UpdateItem sId bOverwriteSubItems NewItem

Description

Updates a specific dynamic menu item with the menu item passed as a struct.

Defining Checkbox Menu Items

This method should be used to manually sync checked states when defining cWebMenuItemCheckbox items, since pbChecked is unavailable when using OnDefineMenu.