Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

OpenDialogMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Navigation MBS Util Plugin 4.2 Yes Yes Yes No No
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.AbsolutePath
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.

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:


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


OpenDialogFileTypeMBS   -   OpenSSLExceptionMBS




Links
MBS FileMaker Plugins