Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

OpenDialogMBS.accessoryView as Variant
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 14.0 Yes No No No No
Function: Customizes the panel for the application by adding a custom view to the panel.
Notes:
Only for Cocoa target. Must be a NSViewMBS or subclass.

The custom object that is added appears just above the OK and Cancel buttons at the bottom of the panel. The open panel automatically resizes itself to accommodate the view. You can invoke this method repeatedly to change the accessory view as needed. If view is nil, the panel removes the current accessory view.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.ActionButtonLabel as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes No No No No
Function: The label of the action button.
Example:
dim o as new OpenDialogMBS

o.ActionButtonLabel = "Hello"
o.ShowDialog
Notes:
Used only on Mac OS.
For RB 4.5 and earlier you need to make sure the encoding is set correctly.
Can be set to "" to use the default value.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.AllowFolderSelection as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 7.5 Yes No No No No
Function: Whether folders can be selected.
Example:
dim o as OpenDialogMBS
dim i,c as Integer
dim f as FolderItem

o=new OpenDialogMBS
o.ShowHiddenFiles=true
o.PromptText="Select one or more files/folders:"
o.MultipleSelection=true
o.ActionButtonLabel="Open files/folders"
o.CancelButtonLabel="no, thanks."
o.WindowTitle="This is a window title."
o.ClientName="Client Name?"
o.AllowFolderSelection=true
o.ShowDialog

c=o.FileCount
if c>0 then
for i=0 to c-1
f=o.Files(i)

Listbox1.AddRow f.AbsolutePath
next
end if
Notes:
Default is false.
Setting this to true on Windows or Linux has no effect there.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.CancelButtonLabel as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes No No No No
Function: The text for the cancel button.
Example:
dim o as new OpenDialogMBS

o.CancelButtonLabel = "Hello"
o.ShowDialog
Notes:
Used only on Mac OS.
For RB 4.5 and earlier you need to make sure the encoding is set correctly.
Can be set to "" to use the default value.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.ClientName as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes No No No No
Function: The name of the client.
Example:
dim o as new OpenDialogMBS
o.ClientName = "Hello"
o.ShowDialog
Notes:
Used only on Mac OS.
For RB 4.5 and earlier you need to make sure the encoding is set correctly.
Can be set to "" to use the default value.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.Creator as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes No No No No
Function: The creator code of your application.
Notes:
This property is only used Mac OS if you specify one or more file types.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.CustomPicture as Picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 11.0 No Yes No No No
Function: The custom picture content.
Notes:
You need to call RefreshCustomImage to refresh the picture visible to the user.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.File as Folderitem
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes Yes Yes No No
Function: The first file selected.
Example:
dim o as new OpenDialogMBS
o.MultipleSelection = true
o.ShowDialog

MsgBox o.File.displaypathmbs
Notes:
file = files(0)
Just for the cases where you only need the first file.
(Read only property)

Feedback, Comments & Corrections

OpenDialogMBS.FileCount as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes Yes Yes No No
Function: The number of files selected.
Example:
dim o as new OpenDialogMBS
o.MultipleSelection = true
o.ShowDialog

MsgBox str(o.FileCount)
Notes: (Read only property)

Feedback, Comments & Corrections

OpenDialogMBS.InitialDirectory as Folderitem
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes Yes No No No
Function: The initial directory.
Example:
dim o as new OpenDialogMBS
o.InitialDirectory = SpecialFolder.Desktop
o.ShowDialog
Notes:
Set to nil to get the last directory used.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.Lasterror as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes Yes Yes No No
Function: The last error code reported.
Notes: (Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.Left as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes No No No No
Function: The horizontal position of the dialog.
Notes:
-1 is for the default position.
Used only on the Mac side.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.MultipleSelection as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes Yes Yes No No
Function: Whether you want to allow multiple file selection.
Example:
dim o as new OpenDialogMBS
o.MultipleSelection = true
o.ShowDialog
Notes: (Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.ParentWindow as Window
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 6.3 No Yes Yes No No
Function: The parent window of the dialog.
Example:
dim o as new OpenDialogMBS
o.ParentWindow = window1
o.ShowDialog
Notes:
Only implemented for Windows and Linux.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.PromptText as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes No No No No
Function: The prompt text.
Example:
dim o as new OpenDialogMBS

o.PromptText = "Hello"
o.ShowDialog
Notes:
For RB 4.5 and earlier you need to make sure the encoding is set correctly.
Can be set to "" to use the default value.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.ResolveAliases as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 10.1 Yes Yes Yes No No
Function: Whether aliases should be resolved.
Example:
dim o as new OpenDialogMBS
o.ResolveAliases = false
o.ShowDialog
Notes:
This property is only used on Mac OS X.
Default is true.

Flag seems to be broken on Mac OS X 10.7.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.ShowHiddenFiles as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes Yes Yes No No
Function: Whether hidden files should be shown.
Example:
dim o as new OpenDialogMBS
o.ShowHiddenFiles = true
o.ShowDialog
Notes:
Default is false.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.Top as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes No No No No
Function: The vertical position of the dialog.
Notes:
-1 is for the default position.
Used only on the Mac side.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.TreatFilePackagesAsDirectories as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 14.0 Yes No No No No
Function: Sets the panel's behavior for displaying file packages (for example, MyApp.app) to the user.
Notes:
If true, the panel will display file packages as directories; if false, it will not.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.UseCustomPicture as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 11.0 No Yes No No No
Function: Whether to add a custom picture control.
Notes:
Specify the size of the area you want. As the size is relative to the font size of the system font on windows, the results can be interesting. For example a value of 50 gives here a 72 pixel height area. Value can be from 1 to 100. Or zero to disable.

This method was added for a client who needed to show a small preview of a project file in the open dialog on Windows.
For Mac OS X you can use the NSSavePanelMBS/NSOpenPanelMBS with an accessory view.
(Read and Write property)

Feedback, Comments & Corrections

OpenDialogMBS.WindowTitle as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS Util Plugin 4.2 Yes Yes Yes No No
Function: The window title to use.
Example:
dim o as new OpenDialogMBS

o.WindowTitle = "Hello World"
o.ShowDialog
Notes:
For RB 4.5 and earlier you need to make sure the encoding is set correctly.
Can be set to "" to use the default value.
(Read and Write property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Util Plugin.





Links
MBS Xojo PDF Plugins