From Xojo Documentation

Revision as of 19:20, 25 October 2021 by Gperlman (talk | contribs) (Notes)
(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!

Property (As Boolean )
aWebButton.Cancel = newBooleanValue
BooleanValue = aWebButton.Cancel

Supported for all project types and targets.

If True, the Escape key and Command/Control-Period key sequence trigger the Pressed event.


The Cancel property can only be set to True for a single button each per page at any given moment.

When Cancel is True, the Indicator property is ignored as Cancel buttons have a default indicator.

Sample Code

This example makes the WebButton a cancel button. It is in the Opening event of the control.

Me.Cancel = True