Difference between revisions of "WebButton.Cancel"

From Xojo Documentation

(Notes)
 
Line 9: Line 9:
  
 
==Notes==
 
==Notes==
The [[WebButton.Cancel|Cancel]] property can only be set to [[True]] for a single button each per page at any given moment.
+
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 [[WebUIControl.Indicator|Indicator]] property is ignored as Cancel buttons have a default indicator.
  
 
== Sample Code ==
 
== Sample Code ==

Latest revision as of 19:20, 25 October 2021

Property (As Boolean )
aWebButton.Cancel = newBooleanValue
or
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.

Notes

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