Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MFXComboBoxIcon Class Reference

ComboBox with icon. More...

#include <MFXComboBoxIcon.h>

Inheritance diagram for MFXComboBoxIcon:
[legend]
Collaboration diagram for MFXComboBoxIcon:
[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
 
void clearItems ()
 Remove all items from the list.
 
virtual void create ()
 Create server-side resources.
 
virtual void destroy ()
 Destroy server-side resources.
 
virtual void detach ()
 Detach server-side resources.
 
virtual void disable ()
 Disable combo box.
 
virtual void enable ()
 Enable combo box.
 
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.
 
FXuint getComboStyle () const
 Get the combobox style.
 
FXint getCurrentItem () const
 Get the current item's index.
 
virtual FXint getDefaultHeight ()
 Return default height.
 
virtual FXint getDefaultWidth ()
 Return default width.
 
FXFont * getFont () const
 Get text font.
 
const FXString & getHelpText () const
 Get the combobox help text.
 
FXString getItem (FXint index) const
 Return the item at the given index.
 
void * getItemData (FXint index) const
 Get data pointer for specified item.
 
FXString getItemText (FXint index) const
 Get text for specified item.
 
FXuint getJustify () const
 Return text justification mode.
 
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.
 
FXColor getSelBackColor () const
 Return selected background color.
 
FXColor getSelTextColor () const
 Return selected text color.
 
FXListSortFunc getSortFunc () const
 Return sort function.
 
FXString getText () const
 Get the text.
 
FXColor getTextColor () const
 Return text color.
 
const FXString & getTipText () const
 Get the tool tip message for this combobox.
 
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.
 
FXbool isEditable () const
 Return true if combobox is editable.
 
FXbool isItemCurrent (FXint index) const
 Return true if current item.
 
FXbool isPaneShown () const
 Is the pane shown.
 
virtual void layout ()
 Perform layout.
 
 MFXComboBoxIcon (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.
 
FXint moveItem (FXint newindex, FXint oldindex)
 Move item from oldindex to newindex.
 
FXint prependItem (const FXString &text, void *ptr=NULL)
 Prepend an item to the list.
 
void removeItem (FXint index)
 Remove this item from the list.
 
virtual void setBackColor (FXColor clr)
 Set window background color.
 
void setComboStyle (FXuint mode)
 Set the combobox style.
 
void setCurrentItem (FXint index, FXbool notify=FALSE)
 Set the current item (index is zero-based)
 
void setCustomText (const FXString text)
 set custom text
 
void setEditable (FXbool edit=TRUE)
 Set editable state.
 
void setFont (FXFont *fnt)
 Set text font.
 
void setHelpText (const FXString &txt)
 Set the combobox help text.
 
FXint setIconItem (FXint index, const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr)
 Replace the item at index.
 
bool setItem (const FXString &text, FXIcon *icon)
 set Item
 
void setItemData (FXint index, void *ptr) const
 Set data pointer for specified item.
 
void setJustify (FXuint mode)
 Change text justification mode; default is JUSTIFY_LEFT.
 
void setNumColumns (FXint cols)
 Set the number of columns.
 
void setNumVisible (FXint nvis)
 Set the number of visible items in the drop down list.
 
void setSelBackColor (FXColor clr)
 Change selected background color.
 
void setSelTextColor (FXColor clr)
 Change selected text color.
 
void setSortFunc (FXListSortFunc func)
 Change sort function.
 
void setText (FXString text)
 Set text.
 
void setTextColor (FXColor clr)
 Change text color.
 
void setTipText (const FXString &txt)
 Set the tool tip message for this combobox.
 
void sortItems ()
 Sort items using current sort function.
 
virtual ~MFXComboBoxIcon ()
 Destructor.
 
long onFocusUp (FXObject *, FXSelector, void *)
 Commands.
 
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

 MFXComboBoxIcon ()
 FOX need this.
 

Protected Attributes

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

Private Member Functions

 MFXComboBoxIcon (const MFXComboBoxIcon &)
 invalidate copy constructor
 
MFXComboBoxIconoperator= (const MFXComboBoxIcon &)=delete
 invalidate assignment operator
 

Detailed Description

ComboBox with icon.

Definition at line 30 of file MFXComboBoxIcon.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

FOX declaration.

enum for ID

Enumerator
ID_LIST 
ID_TEXT 
ID_LAST 

Definition at line 36 of file MFXComboBoxIcon.h.

Constructor & Destructor Documentation

◆ MFXComboBoxIcon() [1/3]

MFXComboBoxIcon::MFXComboBoxIcon ( 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 65 of file MFXComboBoxIcon.cpp.

References ID_LIST, and ID_TEXT.

◆ ~MFXComboBoxIcon()

MFXComboBoxIcon::~MFXComboBoxIcon ( )
virtual

Destructor.

Definition at line 91 of file MFXComboBoxIcon.cpp.

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

◆ MFXComboBoxIcon() [2/3]

MFXComboBoxIcon::MFXComboBoxIcon ( )
protected

FOX need this.

Definition at line 767 of file MFXComboBoxIcon.cpp.

◆ MFXComboBoxIcon() [3/3]

MFXComboBoxIcon::MFXComboBoxIcon ( const MFXComboBoxIcon )
private

invalidate copy constructor

Member Function Documentation

◆ appendIconItem()

◆ clearItems()

void MFXComboBoxIcon::clearItems ( )

Remove all items from the list.

Definition at line 419 of file MFXComboBoxIcon.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 MFXComboBoxIcon::create ( )
virtual

Create server-side resources.

Definition at line 102 of file MFXComboBoxIcon.cpp.

References myPane.

◆ destroy()

void MFXComboBoxIcon::destroy ( )
virtual

Destroy server-side resources.

Definition at line 116 of file MFXComboBoxIcon.cpp.

References myPane.

◆ detach()

void MFXComboBoxIcon::detach ( )
virtual

Detach server-side resources.

Definition at line 109 of file MFXComboBoxIcon.cpp.

References myPane.

◆ disable()

void MFXComboBoxIcon::disable ( )
virtual

Disable combo box.

Definition at line 134 of file MFXComboBoxIcon.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 MFXComboBoxIcon::enable ( )
virtual

Enable combo box.

Definition at line 123 of file MFXComboBoxIcon.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 MFXComboBoxIcon::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 427 of file MFXComboBoxIcon.cpp.

References myList.

◆ findItemByData()

FXint MFXComboBoxIcon::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 433 of file MFXComboBoxIcon.cpp.

References myList.

◆ getBackColor()

FXColor MFXComboBoxIcon::getBackColor ( ) const

Get background color.

Definition at line 523 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ getComboStyle()

FXuint MFXComboBoxIcon::getComboStyle ( ) const

Get the combobox style.

Definition at line 497 of file MFXComboBoxIcon.cpp.

References COMBOBOX_MASK.

◆ getCurrentItem()

FXint MFXComboBoxIcon::getCurrentItem ( ) const

Get the current item's index.

Definition at line 279 of file MFXComboBoxIcon.cpp.

References myList.

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

Here is the caller graph for this function:

◆ getDefaultHeight()

FXint MFXComboBoxIcon::getDefaultHeight ( )
virtual

Return default height.

Definition at line 158 of file MFXComboBoxIcon.cpp.

References myButton, and myTextFieldIcon.

◆ getDefaultWidth()

FXint MFXComboBoxIcon::getDefaultWidth ( )
virtual

Return default width.

Definition at line 145 of file MFXComboBoxIcon.cpp.

References myButton, myIconLabel, myPane, and myTextFieldIcon.

◆ getFont()

FXFont * MFXComboBoxIcon::getFont ( ) const

Get text font.

Definition at line 474 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ getHelpText()

const FXString & MFXComboBoxIcon::getHelpText ( ) const

Get the combobox help text.

Definition at line 592 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ getItem()

FXString MFXComboBoxIcon::getItem ( FXint  index) const

Return the item at the given index.

Definition at line 285 of file MFXComboBoxIcon.cpp.

References myList.

Referenced by DemandElementSelector::refreshDemandElementSelector().

Here is the caller graph for this function:

◆ getItemData()

void * MFXComboBoxIcon::getItemData ( FXint  index) const

Get data pointer for specified item.

Definition at line 451 of file MFXComboBoxIcon.cpp.

References myList.

Referenced by onTextCommand().

Here is the caller graph for this function:

◆ getItemText()

FXString MFXComboBoxIcon::getItemText ( FXint  index) const

Get text for specified item.

Definition at line 439 of file MFXComboBoxIcon.cpp.

References myList.

◆ getJustify()

FXuint MFXComboBoxIcon::getJustify ( ) const

Return text justification mode.

Definition at line 509 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ getNumColumns()

FXint MFXComboBoxIcon::getNumColumns ( ) const

Get the number of columns.

Definition at line 212 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ getNumItems()

◆ getNumVisible()

FXint MFXComboBoxIcon::getNumVisible ( ) const

Return the number of visible items.

Definition at line 224 of file MFXComboBoxIcon.cpp.

References myList.

◆ getSelBackColor()

FXColor MFXComboBoxIcon::getSelBackColor ( ) const

Return selected background color.

Definition at line 549 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ getSelTextColor()

FXColor MFXComboBoxIcon::getSelTextColor ( ) const

Return selected text color.

Definition at line 562 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ getSortFunc()

FXListSortFunc MFXComboBoxIcon::getSortFunc ( ) const

Return sort function.

Definition at line 574 of file MFXComboBoxIcon.cpp.

References myList.

◆ getText()

FXString MFXComboBoxIcon::getText ( ) const

◆ getTextColor()

FXColor MFXComboBoxIcon::getTextColor ( ) const

Return text color.

Definition at line 536 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ getTipText()

const FXString & MFXComboBoxIcon::getTipText ( ) const

Get the tool tip message for this combobox.

Definition at line 604 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ insertIconItem()

FXint MFXComboBoxIcon::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 308 of file MFXComboBoxIcon.cpp.

References getNumItems(), isItemCurrent(), myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().

Referenced by onTextCommand().

Here is the caller graph for this function:

◆ isEditable()

FXbool MFXComboBoxIcon::isEditable ( ) const

Return true if combobox is editable.

Definition at line 188 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ isItemCurrent()

FXbool MFXComboBoxIcon::isItemCurrent ( FXint  index) const

Return true if current item.

Definition at line 242 of file MFXComboBoxIcon.cpp.

References myList.

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

Here is the caller graph for this function:

◆ isPaneShown()

FXbool MFXComboBoxIcon::isPaneShown ( ) const

Is the pane shown.

Definition at line 457 of file MFXComboBoxIcon.cpp.

References myPane.

Referenced by onUpdFmText().

Here is the caller graph for this function:

◆ layout()

void MFXComboBoxIcon::layout ( )
virtual

Perform layout.

Definition at line 167 of file MFXComboBoxIcon.cpp.

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

◆ moveItem()

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

Move item from oldindex to newindex.

Definition at line 379 of file MFXComboBoxIcon.cpp.

References getNumItems(), myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().

◆ onFocusDown()

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

Definition at line 724 of file MFXComboBoxIcon.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onFocusSelf()

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

Definition at line 700 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onFocusUp()

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

Commands.

Definition at line 706 of file MFXComboBoxIcon.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onFwdToText()

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

Definition at line 616 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onListClicked()

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

Definition at line 622 of file MFXComboBoxIcon.cpp.

References MFXListItemIcon::getBackGroundColor(), getText(), myButton, myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMouseWheel()

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

Definition at line 741 of file MFXComboBoxIcon.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onTextButton()

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

Definition at line 647 of file MFXComboBoxIcon.cpp.

References myButton.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onTextChanged()

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

Definition at line 658 of file MFXComboBoxIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onTextCommand()

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

Definition at line 664 of file MFXComboBoxIcon.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdFmText()

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

Definition at line 610 of file MFXComboBoxIcon.cpp.

References isPaneShown().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

invalidate assignment operator

◆ prependItem()

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

Prepend an item to the list.

Definition at line 365 of file MFXComboBoxIcon.cpp.

References isItemCurrent(), myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().

◆ removeItem()

void MFXComboBoxIcon::removeItem ( FXint  index)

Remove this item from the list.

Definition at line 401 of file MFXComboBoxIcon.cpp.

References myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().

◆ setBackColor()

void MFXComboBoxIcon::setBackColor ( FXColor  clr)
virtual

Set window background color.

Definition at line 515 of file MFXComboBoxIcon.cpp.

References myIconLabel, myList, and myTextFieldIcon.

◆ setComboStyle()

void MFXComboBoxIcon::setComboStyle ( FXuint  mode)

Set the combobox style.

Definition at line 480 of file MFXComboBoxIcon.cpp.

References COMBOBOX_MASK, myList, and myTextFieldIcon.

◆ setCurrentItem()

◆ setCustomText()

void MFXComboBoxIcon::setCustomText ( const FXString  text)

set custom text

Definition at line 358 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

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

Here is the caller graph for this function:

◆ setEditable()

void MFXComboBoxIcon::setEditable ( FXbool  edit = TRUE)

Set editable state.

Definition at line 194 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ setFont()

void MFXComboBoxIcon::setFont ( FXFont *  fnt)

Set text font.

Definition at line 463 of file MFXComboBoxIcon.cpp.

References myList, and myTextFieldIcon.

◆ setHelpText()

void MFXComboBoxIcon::setHelpText ( const FXString &  txt)

Set the combobox help text.

Definition at line 586 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ setIconItem()

FXint MFXComboBoxIcon::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 291 of file MFXComboBoxIcon.cpp.

References getNumItems(), isItemCurrent(), myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().

Referenced by onTextCommand().

Here is the caller graph for this function:

◆ setItem()

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

set Item

Definition at line 339 of file MFXComboBoxIcon.cpp.

References MFXListItemIcon::getBackGroundColor(), myIconLabel, myList, myTextFieldIcon, and MFXTextFieldIcon::setIcon().

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

Here is the caller graph for this function:

◆ setItemData()

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

Set data pointer for specified item.

Definition at line 445 of file MFXComboBoxIcon.cpp.

References myList.

◆ setJustify()

void MFXComboBoxIcon::setJustify ( FXuint  mode)

Change text justification mode; default is JUSTIFY_LEFT.

Definition at line 503 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ setNumColumns()

void MFXComboBoxIcon::setNumColumns ( FXint  cols)

Set the number of columns.

Definition at line 206 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ setNumVisible()

◆ setSelBackColor()

void MFXComboBoxIcon::setSelBackColor ( FXColor  clr)

Change selected background color.

Definition at line 542 of file MFXComboBoxIcon.cpp.

References myList, and myTextFieldIcon.

◆ setSelTextColor()

void MFXComboBoxIcon::setSelTextColor ( FXColor  clr)

Change selected text color.

Definition at line 555 of file MFXComboBoxIcon.cpp.

References myList, and myTextFieldIcon.

◆ setSortFunc()

void MFXComboBoxIcon::setSortFunc ( FXListSortFunc  func)

Change sort function.

Definition at line 580 of file MFXComboBoxIcon.cpp.

References myList.

◆ setText()

void MFXComboBoxIcon::setText ( FXString  text)

Set text.

Definition at line 230 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ setTextColor()

◆ setTipText()

void MFXComboBoxIcon::setTipText ( const FXString &  txt)

Set the tool tip message for this combobox.

Definition at line 598 of file MFXComboBoxIcon.cpp.

References myTextFieldIcon.

◆ sortItems()

void MFXComboBoxIcon::sortItems ( )

Sort items using current sort function.

Definition at line 568 of file MFXComboBoxIcon.cpp.

References myList.

Field Documentation

◆ myButton

FXMenuButton* MFXComboBoxIcon::myButton = nullptr
protected

◆ myHaveIcons

const bool MFXComboBoxIcon::myHaveIcons
protected

check if this iconComboBox have icons

Definition at line 268 of file MFXComboBoxIcon.h.

Referenced by layout().

◆ myIconLabel

FXLabel* MFXComboBoxIcon::myIconLabel = nullptr
protected

◆ myList

◆ myPane

FXPopup* MFXComboBoxIcon::myPane = nullptr
protected

popup

Definition at line 265 of file MFXComboBoxIcon.h.

Referenced by create(), destroy(), detach(), getDefaultWidth(), isPaneShown(), layout(), and ~MFXComboBoxIcon().

◆ myTextFieldIcon


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