Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages | Examples

fgl::FGListBox Class Reference

#include <listbox.h>

Inheritance diagram for fgl::FGListBox:

Inheritance graph
[legend]
Collaboration diagram for fgl::FGListBox:

Collaboration graph
[legend]
List of all members.

Detailed Description

A LISTBOX (visual container) of the ordinary "C" strings (up to 63 chars length). It is used for a FileDialog object to show files and directories.
Examples:

listbox.cpp.


Public Member Functions

 FGListBox (int xs, int ys, int w, int h, int DropDown, FGWindow *wind, FGListBoxCallBack show_cb=0, void *user_data=0)
const char * GetString (int i) const
virtual const char * ToString () const


Constructor & Destructor Documentation

fgl::FGListBox::FGListBox int  xs,
int  ys,
int  w,
int  h,
int  DropDown,
FGWindow wind,
FGListBoxCallBack  show_cb = 0,
void *  user_data = 0
[inline]
 

Creates and adds a LISTBOX container of type <char str[64]> with specified size to the FGWindow.

Parameters:
xs x coordinate of object in the FGWindow
ys y coordinate of object in the FGWindow
w a width of the one line (item)
h a height of the one line (item)
DropDown a number of lines of the object
wind a pointer to the parent FGWindow
show_cb an optional callback to show an item (default is simply print string).
user_data pointer to the user defined data


Generated on Wed Feb 9 11:31:57 2005 for OpenGUI by  doxygen 1.4.0