Button

Xojo provides a Button control for desktop, mobile and web projects:

Common members

These events, methods and properties are both common amongst the desktop, mobile and web versions of the control and are the most commonly used. See the individual controls for more members and details.

Events

Name

Description

Pressed

The button has been pressed/tapped/clicked.

Methods

Name

Description

Press

Causes the button to animate as if the user pressed it. This is not supported for MobileButton.

Properties

Name

Description

Caption

The text that appears on the button.

Default

Dictates whether or not the button is the default button. This is only applicable to desktop and web apps.

Enabled

Indicates if the button is clickable/tappable or not.