Platforms to show: All Mac Windows Linux Cross-Platform

OpenDialogMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Navigation MBS Util Plugin 4.2 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Function: A class for a multiple selection open dialog.
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:"
o.MultipleSelection=true
o.ActionButtonLabel="Open files"
o.CancelButtonLabel="no, thanks."
o.WindowTitle="This is a window title."
o.ClientName="Client Name?"
o.ShowDialog

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

Listbox1.AddRow f.NativePath
next

else
// MsgBox "no file was selected."
quit
end if
Notes: OpenDialogMBS does not yet use NSOpenPanel yet. So for Cocoa applications you can use NSOpenPanelMBS class directly. For the Mac App Store, you must use NSOpenPanelMBS and avoid OpenDialogMBS.

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine


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


OpenDialogItemMBS   -   OpenSSLExceptionMBS


💬 Ask a question or report a problem
The biggest plugin in space...


Start Chat