-
Create the file browser with a call like:
NEW(FileBrowserVBT.T).init()
-
Create a helper and associate it with the file browser.
A helper is a type-in field that displays the path name of the
directory and allows the user to type new path names.
It is created with a call like:
NEW(FileBrowserVBT.Helper).init(hmargin, vmargin, font, sh)
where hmargin
and vmargin
are the horizontal and vertical margins
from left and top boundaries of the helper's domain where the text
of the path name begins, font
is the font for the path name and
sh
is the shadow used by the helper for the background and foreground colors.
The helper is associated with the file browser as follows:
SetHelper(file_browser, helper)
-
Create a directory menu and associate it with the file browser.
A directory menu is the list of directories and files in the current
directory. A directory menu is created by
NEW(FileBrowserVBT.DirMenu).init(font, sh)
where font
is the font used for the contents of the directory and
sh
is the shadow whose background and foreground components are used
for the foreground and background colors of directory menu.
The directory menu is associated with the File Browser by
SetDirMenu(file_browser, directory_menu)
The program