Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ComboBox.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 #ifndef ComboBOX_H
00005 #define ComboBOX_H
00006 
00007 #include "Control.h"
00008 
00009 namespace wkgl {
00013 #define END -1
00014 
00072 class ComboBox : public Control
00073 {
00074   public:
00078     ComboBox( int x, int y, int w, int h, 
00079                 String *data = NULL, int ndata = 0 );
00080     
00084     void addString( String text, int index = END );
00085 
00089     void addStrings( String text[], int ntext, int index = END );
00090 
00094     void removeString( int index );
00095 
00099     String getString( int index );
00100 
00104     String operator[]( int index );
00105 
00109     int getNumberOfItems();
00110 
00114     String getSelectedString();
00115 
00119     int getSelectedIndex();
00120 
00121     virtual BOOL create( Control *parent );
00122 };
00123 
00124 }
00125 #endif

Generated on Tue Apr 29 03:18:49 2003 for GuiLib by doxygen1.2.18