// -*- C++ -*- /* * Combox: A combination of two objects (a button and a browser) is * encapsulated to get a combobox-like object. All XForms * functions are hidden. * * GNU Copyleft (C) 1996 Alejandro Aguilar Sierra <asierra@servidor.unam.mx> * and the LyX Team. * * Dependencies: Only XForms, but created to be used with LyX. *
*/
/* Change log: * * 2/06/1996, Alejandro Aguilar Sierra * Created and tested. * * 4/06/1996, Alejandro Aguilar Sierra * Added droplist mode (a button with a black down arrow at right) * and support for middle and right buttons, as XForms choice object.
*/
/// callback prototype typedefvoid (*FL_COMBO_CB) (int, void*); /// pre post prototype typedefvoid (*FL_COMBO_PRE_POST) ();
/// class Combox { public: ///
Combox(combox_type t=FL_COMBOX_NORMAL); ///
~Combox();
/** To add this object to a form. Note that there are two heights
for normal (button) and expanded (browser) mode each. */ void add(int x, int y, int w, int hmin, int hmax);
/// Add lines. Same as for fl_browser object void addline(charconst*); /// Add lines. Same as for fl_browser object void addto(charconst*);
/// Returns the selected item int get();
/// Returns a pointer to the selected line of text charconst*getline();
/// Select an arbitrary item void select(int); /// bool select_text(charconst*);
/// Clear all the list void clear();
/// Is the combox cleared (empty) bool empty() { return is_empty; }
/// Remove the objects from the form they are in. void remove();
/** Assign a callback to this object. The callback should be a void
function with a int and a void pointer as parameters. */ void setcallback(FL_COMBO_CB, void *);
/// Pre handler void setpre(FL_COMBO_PRE_POST); /// Post handler void setpost(FL_COMBO_PRE_POST);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.