Platforms to show: All Mac Windows Linux Cross-Platform

/Win/Display File Information


Required plugins for this example: MBS Win Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/Display File Information

This example is the version from Thu, 31th Jul 2019.

Project "Display File Information.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control StaticText4 Inherits Label
ControlInstance StaticText4 Inherits Label
End Control
Control StaticText5 Inherits Label
ControlInstance StaticText5 Inherits Label
End Control
Control StaticText6 Inherits Label
ControlInstance StaticText6 Inherits Label
End Control
Control StaticText7 Inherits Label
ControlInstance StaticText7 Inherits Label
End Control
Control StaticText8 Inherits Label
ControlInstance StaticText8 Inherits Label
End Control
Control StaticText9 Inherits Label
ControlInstance StaticText9 Inherits Label
End Control
Control StaticText10 Inherits Label
ControlInstance StaticText10 Inherits Label
End Control
Control StaticText11 Inherits Label
ControlInstance StaticText11 Inherits Label
End Control
Control StaticText12 Inherits Label
ControlInstance StaticText12 Inherits Label
End Control
Control StaticText13 Inherits Label
ControlInstance StaticText13 Inherits Label
End Control
Control StaticText14 Inherits Label
ControlInstance StaticText14 Inherits Label
End Control
Control StaticText15 Inherits Label
ControlInstance StaticText15 Inherits Label
End Control
Control StaticText16 Inherits Label
ControlInstance StaticText16 Inherits Label
End Control
Control StaticText17 Inherits Label
ControlInstance StaticText17 Inherits Label
End Control
Control StaticText18 Inherits Label
ControlInstance StaticText18 Inherits Label
End Control
Control StaticText19 Inherits Label
ControlInstance StaticText19 Inherits Label
End Control
Control StaticText20 Inherits Label
ControlInstance StaticText20 Inherits Label
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action() dim f as FolderItem = GetOpenFolderItem(MyFileTypes.Any) if f<>Nil then dim w as new WindowsFileInfoMBS(f.NativePath) showinfo w, f.NativePath end if End EventHandler
End Control
Control PushButton2 Inherits PushButton
ControlInstance PushButton2 Inherits PushButton
EventHandler Sub Action() dim f as FolderItem = GetOpenFolderItem(MyFileTypes.Any) if f<>Nil then dim w as new WindowsFileInfoMBS(f) showinfo w, f.NativePath end if End EventHandler
End Control
Control PushButton3 Inherits PushButton
ControlInstance PushButton3 Inherits PushButton
EventHandler Sub Action() dim f as FolderItem = GetOpenFolderItem(MyFileTypes.Any) if f<>Nil then dim b as BinaryStream = f.OpenAsBinaryFile(false) if b<>Nil then dim w as new WindowsFileInfoMBS(b.Handle(b.HandleTypeWin32Handle)) showinfo w, f.NativePath end if end if End EventHandler
End Control
Control PushButton4 Inherits PushButton
ControlInstance PushButton4 Inherits PushButton
EventHandler Sub Action() dim f as FolderItem = GetOpenFolderItem(MyFileTypes.Any) if f<>Nil then dim b as BinaryStream = f.OpenAsBinaryFile(false) if b<>Nil then dim w as new WindowsFileInfoMBS(b) showinfo w, f.NativePath end if end if End EventHandler
End Control
Control StaticText21 Inherits Label
ControlInstance StaticText21 Inherits Label
End Control
Control PushButton5 Inherits PushButton
ControlInstance PushButton5 Inherits PushButton
EventHandler Sub Action() dim f as FolderItem = SelectFolder if f<>Nil then dim w as new WindowsFileInfoMBS(f.NativePath) showinfo w, f.NativePath end if End EventHandler
End Control
Control PushButton6 Inherits PushButton
ControlInstance PushButton6 Inherits PushButton
EventHandler Sub Action() dim f as FolderItem = SelectFolder if f<>Nil then dim w as new WindowsFileInfoMBS(f) showinfo w, f.NativePath end if End EventHandler
End Control
Control StaticText22 Inherits Label
ControlInstance StaticText22 Inherits Label
End Control
Protected Sub showinfo(w as WindowsFileInfoMBS, path as string) StaticText11.text = path StaticText12.text = str(w.valid) StaticText13.text = str(w.NumberOfLinks) StaticText14.text = str(w.VolumeSerialNumber) StaticText15.text = str(w.FileAttributes) StaticText16.text = str(w.CreationTime) StaticText17.text = str(w.LastAccessTime) StaticText18.text = str(w.LastWriteTime) StaticText19.text = str(w.FileSize) StaticText20.text = str(w.FileIndex) End Sub
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar
MyFileTypes
Filetype special/any
End MyFileTypes
End Project

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


The biggest plugin in space...