We create a file browser with a "new" call to the class constructor
            GLUI_FileBrowser
and store the returned pointer in fileBrowser. The constructor requires five parameters, the first of which is the pointer to the panel in which the browser is placed. The second and third parameters style the browser. In particular, when using the panel style GLUI_PANEL_EMBOSSED (or GLUI_PANEL_RAISED), we can add a text string that is written on the browser panel. We use this styling in our example. The fourth parameter is an integer that serves as the Id for the control element and is passed to our control handler. Since we have no need for the id, we can set the integer to any value such as -1. The fifth and final parameter is the name of the handler for our file browser control element.

The names that the GLUI file browser provides to the user are displayed in a scrollable list box. We set the folder that hold the files that are listed with the call
     fileBrowser->fbreaddir(imageMapDirectory);
where we have established the imageMapDirectory value in our function setPaths.

One of the names that is listed is "../", which we know means the parent directory. Since we do not want our user to move from the folder that holds the available obj files, we remove the option with the call
    fileBrowser->set_allow_change_dir(false);
It should be noted that even if the option is set to true, our handler must carry out the task of changing the directory.