Benoît Minisini ba19f3c1dd * Copy https://gambas.svn.sourceforge.net/svnroot/gambas/2.0 to https://gambas.svn.sourceforge.net/svnroot/gambas/gambas
git-svn-id: svn://localhost/gambas/trunk@893 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2007-12-30 16:41:49 +00:00

34 lines
593 B
C++

#ifndef __GLISTBOX_H
#define __GLISTBOX_H
#include "gtreeview.h"
class gListBox : public gTreeView
{
public:
gListBox(gContainer *parent);
//"Properties"
int index();
bool isItemSelected(int ind);
char* itemText(int ind);
//char** list();
char *text() { return itemText(index()); }
void setIndex(int vl);
void setItemSelected(int ind, bool vl);
void setItemText(int ind, char *txt);
//void setList(char **items);
//"Methods"
void add(char *vl, int pos = -1);
int find(char *text);
void remove(int pos);
private:
char *indexToKey(int index);
int _last_key;
};
#endif