PushButton.Press
From Xojo Documentation
Method
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