iOSToolButton.Enabled

From Xojo Documentation

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

Property (As Boolean )
aiOSToolButton.Enabled = newBooleanValue
or
BooleanValue = aiOSToolButton.Enabled

Supported on Mobile (iOS).

Enables or disables the button.

Sample Code

Add a disabled "Save" button to the toolbar:

Var saveButton As iOSToolbutton
saveButton = iOSToolButton.NewSystemItem(iOSToolbutton.Types.SystemSave)
saveButton.Enabled = False
Self.Toolbar.Add(saveButton)