DesktopButton.Pressed

From Xojo Documentation

Revision as of 18:22, 23 July 2021 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Event


DesktopButton.Pressed()

New in 2021r3

Supported on Desktop.

The button has been clicked. A right- or middle-click does not trigger the Pressed event.

Sample Code

This code in the Pressed event handler displays a message when the button is clicked:

MessageBox("You clicked the button.")