Difference between revisions of "WebButton.Cancel"

From Xojo Documentation

Line 6: Line 6:
 
}}
 
}}
 
{{Description
 
{{Description
|text = If [[True]], the Escape key and Command/Control-Period key sequence trigger the [[WebButton.Pressed|Pressed]] event. The default is [[False]]. }}
+
|text = If [[True]], the Escape key and Command/Control-Period key sequence trigger the [[WebButton.Pressed|Pressed]] event.}}
 +
 
 +
==Notes==
 +
The [[WebButton.Cancel|Cancel]] property can only be set to [[True]] for a single button each per page at any given moment.
  
 
== Sample Code ==
 
== Sample Code ==

Revision as of 22:21, 21 July 2020

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.

Sample Code

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

Me.Cancel = True