DesktopButton.Press

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

DesktopButton.Press()

New in 2021r3

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 Button1. It is called from another control.

Button1.Press