ToolButton.Pushed

From Xojo Documentation

Property (As Boolean )
aToolButton.Pushed = newBooleanValue
or
BooleanValue = aToolButton.Pushed

Supported for all project types and targets.

True if the ToolButton was pushed. It can be used to set the toggled state of a toggle-style ToolButton at runtime.