PushButton.Press

From Xojo Documentation

Method

PushButton.Press()

New in 2019r2

Supported for all project types and targets.

Causes the button to be visually pressed, as well as triggering the Pressed event.

Notes

Call Press when the user has pressed the keyboard equivalent for the button to give the appropriate visual feedback.

Example

This example presses PushButton1. It is called from another control.

PushButton1.Press