UpdateItem - cWebToolBar

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

Type: Procedure

Parameters: String sId Boolean bOverwriteSubItems tWebMenuItem NewItem

ParameterDescription
sIdUnique identifier of the menu item that needs to be updated
bOverwriteSubItemsIf True, the sub items of the menu item will be replaced with the children of the NewItem struct
NewItemContents of the new menu item


Syntax
Procedure UpdateItem String sId Boolean bOverwriteSubItems tWebMenuItem NewItem

Call: 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.

See Also

InsertItem | RemoveItem