FileBrowser
FileBrowser
A simple finder-like file browser to be dropped into a GUI or project. Has various little customizations that can be added.
FileBrowser::usage="A finder-like file browser";
Code
Code
Testing
Testing
Basic example
Basic example
The default file browser is about 500 wide, 250 tall, has a purple border
FileBrowser@$UserBaseDirectory
Pared down
Pared down
It can also be used without the side and top bars or with a different frame width/ background
FileBrowser[$UserBaseDirectory,BackgroundGray,FrameMarginsNone,FrameStyleNone,ImageSize{150,150},"SideBar"False,"FrameWidth"150,"BarSize"100]
Browser palette
Browser palette
It can work well in a palette too
CreatePalette@FileBrowser[$InstallationDirectory,BackgroundGray,FrameMarginsNone,FrameStyleNone,ImageSize{500,300},"FrameWidth"200]
File chooser
File chooser
It can also be used as a file name chooser by using the function bound to the double click
fileName="";FileBrowser[$InstallationDirectory,BackgroundGray,FrameMarginsNone,FrameStyleNone,ImageSize{400,200},"FrameWidth"150,Function(fileName=#;NotebookWrite[EvaluationCell[],Cell[fileName,"Text"]];&)]