3
"$Id: Fl_Combobox.H,v 1.4 2000/02/13 04:43:56 dhfreese Exp $"
5
Copyright 1999-2010 by the Dave Freese.
7
This library is free software; you can redistribute it and/or
8
modify it under the terms of the GNU Library General Public
9
License as published by the Free Software Foundation; either
10
version 2 of the License, or (at your option) any later version.
12
This library is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
Library General Public License for more details.
17
You should have received a copy of the GNU Library General Public
18
License along with this library; if not, write to the Free Software
19
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22
Please report all bugs and problems to "flek-devel@sourceforge.net".
26
#ifndef _FL_COMBOBOX_H
27
#define _FL_COMBOBOX_H
29
#include <FL/Fl_Window.H>
30
#include <FL/Fl_Group.H>
31
#include <FL/Fl_Button.H>
32
#include <FL/Fl_Select_Browser.H>
33
#include <FL/Fl_Input.H>
35
#define FL_COMBO_UNIQUE 1
36
#define FL_COMBO_UNIQUE_NOCASE 2
37
#define FL_COMBO_LIST_INCR 100
51
class Fl_PopBrowser : public Fl_Window {
53
friend void popbrwsr_cb(Fl_Widget *, long);
56
Fl_Select_Browser *popbrwsr;
61
Fl_PopBrowser (int x, int y, int w, int h, retvals R);
63
void popshow (int, int);
65
void popbrwsr_cb_i (Fl_Widget *, long);
67
void add (char *s, void *d = 0);
76
class Fl_ComboBox : public Fl_Group {
77
friend int DataCompare (const void *, const void *);
78
friend class Fl_PopBrowser;
100
Fl_ComboBox (int x, int y, int w, int h, const char * = 0);
103
const char *value ();
104
void value (const char *);
105
void put_value( const char *);
106
void fl_popbrwsr(Fl_Widget *);
109
void add (const char *s, void *d = 0);
116
void textsize (uchar);
117
void textcolor (Fl_Color c);
118
void color (Fl_Color c);
120
int numrows() { return numrows_; }
121
void numrows(int n) { numrows_ = n; }
122
int lsize() { return listsize; }