Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXComboBox Class Reference

#include <FXComboBox.h>

Inheritance diagram for FX::FXComboBox:

FX::FXPacker FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Methods

 FXComboBox (FXComposite *p, FXint cols, FXint nvis, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=COMBOBOX_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
 Constructor.

virtual void create ()
 Create server-side resources.

virtual void detach ()
 Detach server-side resources.

virtual void destroy ()
 Destroy server-side resources.

virtual void enable ()
 Enable combo box.

virtual void disable ()
 Disable combo box.

virtual FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

FXbool isEditable () const
 Return true if combobox is editable.

void setEditable (FXbool edit=TRUE)
 Set editable state.

void setText (const FXString &text)
 Set the text.

FXString getText () const
 Get the text.

void setNumColumns (FXint cols)
 Set the number of columns.

FXint getNumColumns () const
 Get the number of columns.

FXint getNumItems () const
 Return the number of items in the list.

FXint getNumVisible () const
 Return the number of visible items.

void setNumVisible (FXint nvis)
 Set the number of visible items.

FXbool isItemCurrent (FXint index) const
 Return true if current item.

void setCurrentItem (FXint indexz)
 Set the current item (index is zero-based).

FXint getCurrentItem () const
 Get the current item's index.

FXString getItem (FXint index) const
 Return the item at the given index.

void setItem (FXint index, const FXString &text, void *ptr=NULL)
 Replace the item at index.

void insertItem (FXint index, const FXString &text, void *ptr=NULL)
 Insert a new item at index.

void appendItem (const FXString &text, void *ptr=NULL)
 Append an item to the list.

void prependItem (const FXString &text, void *ptr=NULL)
 Prepend an item to the list.

void removeItem (FXint index)
 Remove this item from the list.

void clearItems ()
 Remove all items from the list.

void setItemText (FXint index, const FXString &text)
 Set text for specified item.

FXString getItemText (FXint index) const
 Get text for specified item.

void setItemData (FXint index, void *ptr) const
 Set data pointer for specified item.

void * getItemData (FXint index) const
 Get data pointer for specified item.

FXbool isPaneShown () const
 Is the pane shown.

void sortItems ()
 Sort items using current sort function.

void setFont (FXFont *fnt)
 Set text font.

FXFontgetFont () const
 Get text font.

void setComboStyle (FXuint mode)
 Set the combobox style.

FXuint getComboStyle () const
 Get the combobox style.

virtual void setBackColor (FXColor clr)
 Set window background color.

FXColor getBackColor () const
 Get background color.

void setTextColor (FXColor clr)
 Change text color.

FXColor getTextColor () const
 Return text color.

void setSelBackColor (FXColor clr)
 Change selected background color.

FXColor getSelBackColor () const
 Return selected background color.

void setSelTextColor (FXColor clr)
 Change selected text color.

FXColor getSelTextColor () const
 Return selected text color.

FXListSortFunc getSortFunc () const
 Return sort function.

void setSortFunc (FXListSortFunc func)
 Change sort function.

void setHelpText (const FXString &txt)
 Set the combobox help text.

const FXStringgetHelpText () const
 Get the combobox help text.

void setTipText (const FXString &txt)
 Set the tool tip message for this combobox.

const FXStringgetTipText () const
 Get the tool tip message for this combobox.

virtual void save (FXStream &store) const
 Save combobox to a stream.

virtual void load (FXStream &store)
 Load combobox from a stream.

virtual ~FXComboBox ()
 Destructor.


Detailed Description

Combobox

See also: