Platforms to show: All Mac Windows Linux Cross-Platform

/Picture/Directory Listings with Icons


Required plugins for this example: MBS Picture Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Picture/Directory Listings with Icons

This example is the version from Sun, 17th Mar 2012.

Project "Directory Listings with Icons.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control List Inherits Listbox
ControlInstance List Inherits Listbox
EventHandler Sub ExpandRow(row As Integer) dim f as FolderItem = me.RowTag(row) if f.Directory then dim c as integer = f.Count for i as integer = 1 to c dim file as FolderItem = f.TrueItem(i) if file<>nil then if file.Visible then add file end if end if next end if End EventHandler
End Control
EventHandler Sub Open() add SpecialFolder.Desktop End EventHandler
Sub Add(f as FolderItem) if f.directory then list.AddFolder "" else List.AddRow "" end if List.Cell(List.LastIndex,0) = f.DisplayName List.RowPicture(List.LastIndex) = f.IconMBS(16) List.RowTag(List.LastIndex) = f End Sub
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
End Project

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


The biggest plugin in space...