DesktopToolbar.AddButton

From Xojo Documentation

Method

DesktopToolbar.AddButton(button as DesktopToolbarItem)

New in 2021r3

Supported for all project types and targets.

Adds the passed DesktopToolbarItem as the last element of the DesktopToolbar.