From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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

New in 2020r1

Supported for all project types and targets.

If True, the default button indicator is added to the button and the Return and Enter keys will trigger the Pressed event.


Because there can logically only be one default button per page, only the first WebButton on a page with the Default property set to True will be honored.

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

Sample Code

This code sets the WebButton as the default button. It is in the Opening event of the control.

Me.Default = True