ubit::UCombobox Class Reference

Combo box gadget. More...

#include <ulistbox.hpp>

Inheritance diagram for ubit::UCombobox:

ubit::UTextfield ubit::UTextbox ubit::UBox ubit::UGroup ubit::UControl ubit::UBrick ubit::UObject List of all members.

Public Member Functions

 UCombobox (UListbox &, const UArgs &=UArgs::none)
virtual bool isEditable () const
virtual UCombobox & setEditable (bool state=true)
 gets/set editing status.
bool isTextMode () const
UCombobox & setTextMode (bool=true)
 the textfield only contains the textual part of the selected item in text mode.
UListbox & list ()
UChoice & choice ()
UGroup & entry ()
UEdit & edit ()
UMenu & menu ()
 gives access to combobox subcomponents.

Static Public Member Functions

static UStyle * createStyle ()
 < important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!).

Protected Member Functions

virtual void changed (class UEvent &)
virtual void action (class UEvent &)
virtual void openMenu (UEvent &)
virtual void syncText ()

Friends

class UCombobox::Class
UCombobox & ucombobox (UListbox &, const UArgs &a=UArgs::none)

Detailed Description

Combo box gadget.

Geometry:

List and Selection:

Callbacks

Exemple

    XXX* obj = new XXX();
    UListbox& list = ulistbox( ... );   // see UList
    UCombobox& combo = ucombobox(list, 
                                 UOn::action / ucall(obj, &XXX::actionCB)
                                 + UOn::change / ucall(obj, &XXX::changeCB));
 


Member Function Documentation

UStyle * ubit::UCombobox::createStyle (  )  [static]

< important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!).

this macro defines the UClass that corresponds to this class and:

Reimplemented from ubit::UTextfield.


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:52 2007 for Ubit by  doxygen 1.4.7