You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_OpenFileInfo object:
Cvo_OpenFileInfo
#include
<Cvo/OpenFile.h++>
new
Cvo_OpenFileInfo ( char *resource )
This object is used to set data for the Cvo__OpenFile object. As the Cvo__OpenFile object is generally created from a menu, such as the Cvo_Menu object, it is difficult to specify attributes for that Cvo__OpenFile object. A Cvo_OpenFileInfo object may be created, and a pointer to it passed to the Cvo__OpenFile object during construction. Then, Cvo__OpenFile will obtain various data information from the Cvo_OpenFileInfo object. This data includes:
void *
data element to be passed with the CvoOpenFileEvent
.
This object defines the following member functions.
SetData (
void *data )
The Cvo_OpenFileEvent
structure has a void *
element,
data. This member function is used to provide the pointer,
data which will be passed in the Cvo_OpenFileEvent
structure.
SetEntry (
char *path )
This member function sets the file path which will appear in the Cvo__OpenFile object's window. The file path, path, may include a filename as well as a directory. The Cvo__OpenFile object will use the directory specified in path to find files and directories to be displayed in the appropriate lists.
SetFilter (
char *filter )
This member function sets the regular expression which will be used to filter filenames displayed in the Cvo__OpenFile object's window. The string filter will be displayed in the window as well.
See the example source code for an example of how to use this object.
See the legend for information about the conventions used in this documentation.