Mini Explorer
Mini database explorer based on Telelogic’s global function fnMiniExplorer. Includes a fix for the fnMiniExplorer problem where it allows the user to select a folder even when the item filter is set to return a module. The OK button is now inactive until an item matching the filter is selected.
miniExplorer is intended to be used as a replacement for fnMiniExplorer where you want more control over what the user can select. The function is overloaded to give you a fexible range of parameter options.
Usage:
string miniExplorer([[DB dbParent,] [Folder fStart,] [int itemMask]])
Example:
DB db
DBE dbeBrowse
DBE dbeModule
void doBrowse(DBE dbe)
{
string mName = miniExplorer(db,
current Folder,
MINI_EXP_FORMAL_MODS)
set(dbeModule, mName)
}
db = create("Demonstrate Mini Explorer")
dbeModule = field(db, "Module", "", 50, true)
beside db
dbeBrowse = button(db, "Browse...", doBrowse)
realize db
show db