FolderItemDialog.CancelButtonCaption

From Xojo Documentation


Property (As String )
aFolderItemDialog.CancelButtonCaption = newStringValue
or
StringValue = aFolderItemDialog.CancelButtonCaption

Supported for all project types and targets.

Text of the label for the Cancel button.

Notes

Supported only on Windows.

This property is ignored on macOS and Linux, since changing the caption is not supported on those operating systems.

Example

This example illustrates all the labelling properties of a FolderItemDialog.

Var dlg As OpenDialog
Var f As FolderItem
dlg = New OpenDialog
dlg.ActionButtonCaption = "Action Button"
dlg.CancelButtonCaption = "Cancel Button"
dlg.SuggestedFileName = "Suggested Filename"
dlg.Title = "Title bar text"
dlg.PromptText = "Prompt Text"
dlg.Left = 50
dlg.Top = 50

#If Not TargetLinux Then
dlg.InitialFolder = SpecialFolder.Documents
#Else // open Home Folder on linux
dlg.InitialFolder = SpecialFolder.home
#Endif
f = dlg.ShowModal
If f <> Nil Then
MessageBox("You selected: " + f.NativePath)
Else
// User Cancelled
End If

See Also

OpenDialog, SaveAsDialog