FolderItemDialog.ActionButtonCaption
From Xojo Documentation
Supported Platforms Project Types: Desktop Platforms: macOS, Windows |
Property (As String )
aFolderItemDialog.ActionButtonCaption = newStringValue
or
StringValue = aFolderItemDialog.ActionButtonCaption
Supported for all project types and targets.
or
StringValue = aFolderItemDialog.ActionButtonCaption
Supported for all project types and targets.
Text of the label for the Action button (e.g., Choose, Save, Open, etc., depending on context). It is not necessarily the default button for the dialog.
Notes
This property is not supported on Linux.
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
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