Eclipse SUMO - Simulation of Urban MObility
MFXIconComboBox Class Reference

ComboBox with icon. More...

#include <MFXIconComboBox.h>

Inheritance diagram for MFXIconComboBox:
[legend]
Collaboration diagram for MFXIconComboBox:
[legend]

Public Types

enum  { ID_LIST = FXPacker::ID_LAST , ID_TEXT , ID_LAST }
 FOX declaration. More...
 

Public Member Functions

FXint appendIconItem (const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr)
 append icon More...
 
void clearItems ()
 Remove all items from the list. More...
 
virtual void create ()
 Create server-side resources. More...
 
virtual void destroy ()
 Destroy server-side resources. More...
 
virtual void detach ()
 Detach server-side resources. More...
 
virtual void disable ()
 Disable combo box. More...
 
virtual void enable ()
 Enable combo box. More...
 
FXint findItem (const FXString &text, FXint start=-1, FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const
 
FXint findItemByData (const void *ptr, FXint start=-1, FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const
 
FXColor getBackColor () const
 Get background color. More...
 
FXuint getComboStyle () const
 Get the combobox style. More...
 
FXint getCurrentItem () const
 Get the current item's index. More...
 
virtual FXint getDefaultHeight ()
 Return default height. More...
 
virtual FXint getDefaultWidth ()
 Return default width. More...
 
FXFont * getFont () const
 Get text font. More...
 
const FXString & getHelpText () const
 Get the combobox help text. More...
 
FXString getItem (FXint index) const
 Return the item at the given index. More...
 
void * getItemData (FXint index) const
 Get data pointer for specified item. More...
 
FXString getItemText (FXint index) const
 Get text for specified item. More...
 
FXuint getJustify () const
 Return text justification mode. More...
 
FXint getNumColumns () const
 Get the number of columns. More...
 
FXint getNumItems () const
 Return the number of items in the list. More...
 
FXint getNumVisible () const
 Return the number of visible items. More...
 
FXColor getSelBackColor () const
 Return selected background color. More...
 
FXColor getSelTextColor () const
 Return selected text color. More...
 
FXListSortFunc getSortFunc () const
 Return sort function. More...
 
FXString getText () const
 Get the text. More...
 
FXColor getTextColor () const
 Return text color. More...
 
const FXString & getTipText () const
 Get the tool tip message for this combobox. More...
 
FXint insertIconItem (FXint index, const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr)
 Insert a new item at index. More...
 
FXbool isEditable () const
 Return true if combobox is editable. More...
 
FXbool isItemCurrent (FXint index) const
 Return true if current item. More...
 
FXbool isPaneShown () const
 Is the pane shown. More...
 
virtual void layout ()
 Perform layout. More...
 
 MFXIconComboBox (FXComposite *p, FXint cols, const bool haveIcons, 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)
 Construct a Combo Box widget with room to display cols columns of text. More...
 
FXint moveItem (FXint newindex, FXint oldindex)
 Move item from oldindex to newindex. More...
 
FXint prependItem (const FXString &text, void *ptr=NULL)
 Prepend an item to the list. More...
 
void removeItem (FXint index)
 Remove this item from the list. More...
 
virtual void setBackColor (FXColor clr)
 Set window background color. More...
 
void setComboStyle (FXuint mode)
 Set the combobox style. More...
 
void setCurrentItem (FXint index, FXbool notify=FALSE)
 Set the current item (index is zero-based) More...
 
void setCustomText (const FXString text)
 set custom text More...
 
void setEditable (FXbool edit=TRUE)
 Set editable state. More...
 
void setFont (FXFont *fnt)
 Set text font. More...
 
void setHelpText (const FXString &txt)
 Set the combobox help text. More...
 
FXint setIconItem (FXint index, const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr)
 Replace the item at index. More...
 
bool setItem (const FXString &text, FXIcon *icon)
 set Item More...
 
void setItemData (FXint index, void *ptr) const
 Set data pointer for specified item. More...
 
void setJustify (FXuint mode)
 Change text justification mode; default is JUSTIFY_LEFT. More...
 
void setNumColumns (FXint cols)
 Set the number of columns. More...
 
void setNumVisible (FXint nvis)
 Set the number of visible items in the drop down list. More...
 
void setSelBackColor (FXColor clr)
 Change selected background color. More...
 
void setSelTextColor (FXColor clr)
 Change selected text color. More...
 
void setSortFunc (FXListSortFunc func)
 Change sort function. More...
 
void setText (FXString text)
 Set text. More...
 
void setTextColor (FXColor clr)
 Change text color. More...
 
void setTipText (const FXString &txt)
 Set the tool tip message for this combobox. More...
 
void sortItems ()
 Sort items using current sort function. More...
 
virtual ~MFXIconComboBox ()
 Destructor. More...
 
long onFocusUp (FXObject *, FXSelector, void *)
 Commands. More...
 
long onFocusDown (FXObject *, FXSelector, void *)
 
long onFocusSelf (FXObject *, FXSelector, void *)
 
long onMouseWheel (FXObject *, FXSelector, void *)
 
long onTextButton (FXObject *, FXSelector, void *)
 
long onTextChanged (FXObject *, FXSelector, void *)
 
long onTextCommand (FXObject *, FXSelector, void *)
 
long onListClicked (FXObject *, FXSelector, void *)
 
long onFwdToText (FXObject *, FXSelector, void *)
 
long onUpdFmText (FXObject *, FXSelector, void *)
 

Protected Member Functions

 MFXIconComboBox ()
 FOX need this. More...
 

Protected Attributes

FXMenuButton * myButton = nullptr
 myButton More...
 
const bool myHaveIcons
 check if this iconComboBox have icons More...
 
FXLabel * myIconLabel = nullptr
 label for icon More...
 
FXList * myList = nullptr
 list More...
 
FXPopup * myPane = nullptr
 popup More...
 
MFXTextFieldIconmyTextFieldIcon = nullptr
 textField with icon More...
 

Private Member Functions

 MFXIconComboBox (const MFXIconComboBox &)
 invalidate copy constructor More...
 
MFXIconComboBoxoperator= (const MFXIconComboBox &)=delete
 invalidate assignment operator More...
 

Detailed Description

ComboBox with icon.

Definition at line 53 of file MFXIconComboBox.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

FOX declaration.

enum for ID

Enumerator
ID_LIST 
ID_TEXT 
ID_LAST 

Definition at line 59 of file MFXIconComboBox.h.

Constructor & Destructor Documentation

◆ MFXIconComboBox() [1/3]

MFXIconComboBox::MFXIconComboBox ( FXComposite *  p,
FXint  cols,
const bool  haveIcons,
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 
)

Construct a Combo Box widget with room to display cols columns of text.

Definition at line 125 of file MFXIconComboBox.cpp.

References ID_LIST, ID_TEXT, myButton, myHaveIcons, myIconLabel, myList, myPane, and myTextFieldIcon.

◆ ~MFXIconComboBox()

MFXIconComboBox::~MFXIconComboBox ( )
virtual

Destructor.

Definition at line 151 of file MFXIconComboBox.cpp.

References myButton, myIconLabel, myList, myPane, and myTextFieldIcon.

◆ MFXIconComboBox() [2/3]

MFXIconComboBox::MFXIconComboBox ( )
protected

FOX need this.

Definition at line 829 of file MFXIconComboBox.cpp.

◆ MFXIconComboBox() [3/3]

MFXIconComboBox::MFXIconComboBox ( const MFXIconComboBox )
private

invalidate copy constructor

Member Function Documentation

◆ appendIconItem()

◆ clearItems()

void MFXIconComboBox::clearItems ( )

Remove all items from the list.

Definition at line 481 of file MFXIconComboBox.cpp.

References myList, myTextFieldIcon, and MFXTextFieldIcon::resetTextField().

Referenced by GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), DemandElementSelector::refreshDemandElementSelector(), GNETagSelector::setCurrentTagType(), DemandElementSelector::setDemandElements(), and GNEMatchAttribute::updateTag().

Here is the caller graph for this function:

◆ create()

void MFXIconComboBox::create ( )
virtual

Create server-side resources.

Definition at line 162 of file MFXIconComboBox.cpp.

References myPane.

◆ destroy()

void MFXIconComboBox::destroy ( )
virtual

Destroy server-side resources.

Definition at line 176 of file MFXIconComboBox.cpp.

References myPane.

◆ detach()

void MFXIconComboBox::detach ( )
virtual

Detach server-side resources.

Definition at line 169 of file MFXIconComboBox.cpp.

References myPane.

◆ disable()

void MFXIconComboBox::disable ( )
virtual

Disable combo box.

Definition at line 194 of file MFXIconComboBox.cpp.

References myButton, myIconLabel, and myTextFieldIcon.

Referenced by GNEMatchAttribute::disableMatchAttribute(), GNEMatchGenericDataAttribute::disableMatchGenericDataAttribute(), GNEMatchGenericDataAttribute::onCmdSetBegin(), and GNEMatchGenericDataAttribute::onCmdSetEnd().

Here is the caller graph for this function:

◆ enable()

void MFXIconComboBox::enable ( )
virtual

Enable combo box.

Definition at line 183 of file MFXIconComboBox.cpp.

References myButton, myIconLabel, and myTextFieldIcon.

Referenced by GNEMatchAttribute::enableMatchAttribute(), GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), GNEMatchGenericDataAttribute::onCmdSetBegin(), and GNEMatchGenericDataAttribute::onCmdSetEnd().

Here is the caller graph for this function:

◆ findItem()

FXint MFXIconComboBox::findItem ( const FXString &  text,
FXint  start = -1,
FXuint  flags = SEARCH_FORWARD | SEARCH_WRAP 
) const

Search items by name, beginning from item start. If the start item is -1 the search will start at the first item in the list. Flags may be SEARCH_FORWARD or SEARCH_BACKWARD to control the search direction; this can be combined with SEARCH_NOWRAP or SEARCH_WRAP to control whether the search wraps at the start or end of the list. The option SEARCH_IGNORECASE causes a case-insensitive match. Finally, passing SEARCH_PREFIX causes searching for a prefix of the item name. Return -1 if no matching item is found.

Definition at line 489 of file MFXIconComboBox.cpp.

References myList.

◆ findItemByData()

FXint MFXIconComboBox::findItemByData ( const void *  ptr,
FXint  start = -1,
FXuint  flags = SEARCH_FORWARD | SEARCH_WRAP 
) const

Search items by associated user data, beginning from item start. If the start item is -1 the search will start at the first item in the list. Flags may be SEARCH_FORWARD or SEARCH_BACKWARD to control the search direction; this can be combined with SEARCH_NOWRAP or SEARCH_WRAP to control whether the search wraps at the start or end of the list.

Definition at line 495 of file MFXIconComboBox.cpp.

References myList.

◆ getBackColor()

FXColor MFXIconComboBox::getBackColor ( ) const

Get background color.

Definition at line 585 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ getComboStyle()

FXuint MFXIconComboBox::getComboStyle ( ) const

Get the combobox style.

Definition at line 559 of file MFXIconComboBox.cpp.

References COMBOBOX_MASK.

◆ getCurrentItem()

FXint MFXIconComboBox::getCurrentItem ( ) const

Get the current item's index.

Definition at line 341 of file MFXIconComboBox.cpp.

References myList.

Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GNEMatchGenericDataAttribute::onCmdSetInterval(), onFocusDown(), onFocusUp(), and onMouseWheel().

Here is the caller graph for this function:

◆ getDefaultHeight()

FXint MFXIconComboBox::getDefaultHeight ( )
virtual

Return default height.

Definition at line 218 of file MFXIconComboBox.cpp.

References myButton, and myTextFieldIcon.

◆ getDefaultWidth()

FXint MFXIconComboBox::getDefaultWidth ( )
virtual

Return default width.

Definition at line 205 of file MFXIconComboBox.cpp.

References myButton, myIconLabel, myPane, and myTextFieldIcon.

◆ getFont()

FXFont * MFXIconComboBox::getFont ( ) const

Get text font.

Definition at line 536 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ getHelpText()

const FXString & MFXIconComboBox::getHelpText ( ) const

Get the combobox help text.

Definition at line 654 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ getItem()

FXString MFXIconComboBox::getItem ( FXint  index) const

Return the item at the given index.

Definition at line 347 of file MFXIconComboBox.cpp.

References myList.

Referenced by DemandElementSelector::refreshDemandElementSelector().

Here is the caller graph for this function:

◆ getItemData()

void * MFXIconComboBox::getItemData ( FXint  index) const

Get data pointer for specified item.

Definition at line 513 of file MFXIconComboBox.cpp.

References myList.

Referenced by onTextCommand().

Here is the caller graph for this function:

◆ getItemText()

FXString MFXIconComboBox::getItemText ( FXint  index) const

Get text for specified item.

Definition at line 501 of file MFXIconComboBox.cpp.

References myList.

◆ getJustify()

FXuint MFXIconComboBox::getJustify ( ) const

Return text justification mode.

Definition at line 571 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ getNumColumns()

FXint MFXIconComboBox::getNumColumns ( ) const

Get the number of columns.

Definition at line 272 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ getNumItems()

FXint MFXIconComboBox::getNumItems ( ) const

◆ getNumVisible()

FXint MFXIconComboBox::getNumVisible ( ) const

Return the number of visible items.

Definition at line 284 of file MFXIconComboBox.cpp.

References myList.

◆ getSelBackColor()

FXColor MFXIconComboBox::getSelBackColor ( ) const

Return selected background color.

Definition at line 611 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ getSelTextColor()

FXColor MFXIconComboBox::getSelTextColor ( ) const

Return selected text color.

Definition at line 624 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ getSortFunc()

FXListSortFunc MFXIconComboBox::getSortFunc ( ) const

Return sort function.

Definition at line 636 of file MFXIconComboBox.cpp.

References myList.

◆ getText()

FXString MFXIconComboBox::getText ( ) const

◆ getTextColor()

FXColor MFXIconComboBox::getTextColor ( ) const

Return text color.

Definition at line 598 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ getTipText()

const FXString & MFXIconComboBox::getTipText ( ) const

Get the tool tip message for this combobox.

Definition at line 666 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ insertIconItem()

FXint MFXIconComboBox::insertIconItem ( FXint  index,
const FXString &  text,
FXIcon *  icon = nullptr,
FXColor  bgColor = FXRGB(255, 255, 255),
void *  ptr = nullptr 
)

Insert a new item at index.

Definition at line 370 of file MFXIconComboBox.cpp.

References getNumItems(), isItemCurrent(), myIconLabel, myList, and myTextFieldIcon.

Referenced by onTextCommand().

Here is the caller graph for this function:

◆ isEditable()

FXbool MFXIconComboBox::isEditable ( ) const

Return true if combobox is editable.

Definition at line 248 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ isItemCurrent()

FXbool MFXIconComboBox::isItemCurrent ( FXint  index) const

Return true if current item.

Definition at line 304 of file MFXIconComboBox.cpp.

References myList.

Referenced by appendIconItem(), insertIconItem(), prependItem(), and setIconItem().

Here is the caller graph for this function:

◆ isPaneShown()

FXbool MFXIconComboBox::isPaneShown ( ) const

Is the pane shown.

Definition at line 519 of file MFXIconComboBox.cpp.

References myPane.

Referenced by onUpdFmText().

Here is the caller graph for this function:

◆ layout()

void MFXIconComboBox::layout ( )
virtual

Perform layout.

Definition at line 227 of file MFXIconComboBox.cpp.

References myButton, myHaveIcons, myIconLabel, myList, myPane, and myTextFieldIcon.

◆ moveItem()

FXint MFXIconComboBox::moveItem ( FXint  newindex,
FXint  oldindex 
)

Move item from oldindex to newindex.

Definition at line 441 of file MFXIconComboBox.cpp.

References getNumItems(), myIconLabel, myList, and myTextFieldIcon.

◆ onFocusDown()

long MFXIconComboBox::onFocusDown ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 786 of file MFXIconComboBox.cpp.

References getCurrentItem(), getNumItems(), and setCurrentItem().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onFocusSelf()

long MFXIconComboBox::onFocusSelf ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Definition at line 762 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onFocusUp()

long MFXIconComboBox::onFocusUp ( FXObject *  ,
FXSelector  ,
void *   
)

Commands.

Definition at line 768 of file MFXIconComboBox.cpp.

References getCurrentItem(), getNumItems(), and setCurrentItem().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onFwdToText()

long MFXIconComboBox::onFwdToText ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 678 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onListClicked()

long MFXIconComboBox::onListClicked ( FXObject *  ,
FXSelector  sel,
void *  ptr 
)

Definition at line 684 of file MFXIconComboBox.cpp.

References MFXListItem::getBackGroundColor(), getText(), myButton, myIconLabel, myList, and myTextFieldIcon.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMouseWheel()

long MFXIconComboBox::onMouseWheel ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 803 of file MFXIconComboBox.cpp.

References getCurrentItem(), getNumItems(), and setCurrentItem().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onTextButton()

long MFXIconComboBox::onTextButton ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 709 of file MFXIconComboBox.cpp.

References myButton.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onTextChanged()

long MFXIconComboBox::onTextChanged ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 720 of file MFXIconComboBox.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onTextCommand()

long MFXIconComboBox::onTextCommand ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 726 of file MFXIconComboBox.cpp.

References appendIconItem(), COMBOBOX_INS_MASK, getItemData(), insertIconItem(), myIconLabel, myList, myTextFieldIcon, and setIconItem().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdFmText()

long MFXIconComboBox::onUpdFmText ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 672 of file MFXIconComboBox.cpp.

References isPaneShown().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

MFXIconComboBox & MFXIconComboBox::operator= ( const MFXIconComboBox )
privatedelete

invalidate assignment operator

◆ prependItem()

FXint MFXIconComboBox::prependItem ( const FXString &  text,
void *  ptr = NULL 
)

Prepend an item to the list.

Definition at line 427 of file MFXIconComboBox.cpp.

References isItemCurrent(), myIconLabel, myList, and myTextFieldIcon.

◆ removeItem()

void MFXIconComboBox::removeItem ( FXint  index)

Remove this item from the list.

Definition at line 463 of file MFXIconComboBox.cpp.

References myIconLabel, myList, and myTextFieldIcon.

◆ setBackColor()

void MFXIconComboBox::setBackColor ( FXColor  clr)
virtual

Set window background color.

Definition at line 577 of file MFXIconComboBox.cpp.

References myIconLabel, myList, and myTextFieldIcon.

◆ setComboStyle()

void MFXIconComboBox::setComboStyle ( FXuint  mode)

Set the combobox style.

Definition at line 542 of file MFXIconComboBox.cpp.

References COMBOBOX_MASK, myList, and myTextFieldIcon.

◆ setCurrentItem()

◆ setCustomText()

void MFXIconComboBox::setCustomText ( const FXString  text)

set custom text

Definition at line 420 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

Referenced by DemandElementSelector::setDemandElement(), and DemandElementSelector::setDemandElements().

Here is the caller graph for this function:

◆ setEditable()

void MFXIconComboBox::setEditable ( FXbool  edit = TRUE)

Set editable state.

Definition at line 254 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ setFont()

void MFXIconComboBox::setFont ( FXFont *  fnt)

Set text font.

Definition at line 525 of file MFXIconComboBox.cpp.

References myList, and myTextFieldIcon.

◆ setHelpText()

void MFXIconComboBox::setHelpText ( const FXString &  txt)

Set the combobox help text.

Definition at line 648 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ setIconItem()

FXint MFXIconComboBox::setIconItem ( FXint  index,
const FXString &  text,
FXIcon *  icon = nullptr,
FXColor  bgColor = FXRGB(255, 255, 255),
void *  ptr = nullptr 
)

Replace the item at index.

Definition at line 353 of file MFXIconComboBox.cpp.

References getNumItems(), isItemCurrent(), myIconLabel, myList, and myTextFieldIcon.

Referenced by onTextCommand().

Here is the caller graph for this function:

◆ setItem()

bool MFXIconComboBox::setItem ( const FXString &  text,
FXIcon *  icon 
)

set Item

Definition at line 401 of file MFXIconComboBox.cpp.

References MFXListItem::getBackGroundColor(), myIconLabel, myList, and myTextFieldIcon.

Referenced by DemandElementSelector::setDemandElement(), and DemandElementSelector::showDemandElementSelector().

Here is the caller graph for this function:

◆ setItemData()

void MFXIconComboBox::setItemData ( FXint  index,
void *  ptr 
) const

Set data pointer for specified item.

Definition at line 507 of file MFXIconComboBox.cpp.

References myList.

◆ setJustify()

void MFXIconComboBox::setJustify ( FXuint  mode)

Change text justification mode; default is JUSTIFY_LEFT.

Definition at line 565 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ setNumColumns()

void MFXIconComboBox::setNumColumns ( FXint  cols)

Set the number of columns.

Definition at line 266 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ setNumVisible()

◆ setSelBackColor()

void MFXIconComboBox::setSelBackColor ( FXColor  clr)

Change selected background color.

Definition at line 604 of file MFXIconComboBox.cpp.

References myList, and myTextFieldIcon.

◆ setSelTextColor()

void MFXIconComboBox::setSelTextColor ( FXColor  clr)

Change selected text color.

Definition at line 617 of file MFXIconComboBox.cpp.

References myList, and myTextFieldIcon.

◆ setSortFunc()

void MFXIconComboBox::setSortFunc ( FXListSortFunc  func)

Change sort function.

Definition at line 642 of file MFXIconComboBox.cpp.

References myList.

◆ setText()

void MFXIconComboBox::setText ( FXString  text)

Set text.

Definition at line 290 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ setTextColor()

◆ setTipText()

void MFXIconComboBox::setTipText ( const FXString &  txt)

Set the tool tip message for this combobox.

Definition at line 660 of file MFXIconComboBox.cpp.

References myTextFieldIcon.

◆ sortItems()

void MFXIconComboBox::sortItems ( )

Sort items using current sort function.

Definition at line 630 of file MFXIconComboBox.cpp.

References myList.

Field Documentation

◆ myButton

FXMenuButton* MFXIconComboBox::myButton = nullptr
protected

◆ myHaveIcons

const bool MFXIconComboBox::myHaveIcons
protected

check if this iconComboBox have icons

Definition at line 291 of file MFXIconComboBox.h.

Referenced by layout(), and MFXIconComboBox().

◆ myIconLabel

◆ myList

◆ myPane

FXPopup* MFXIconComboBox::myPane = nullptr
protected

◆ myTextFieldIcon


The documentation for this class was generated from the following files: