Rogue Wave Views Gadgets Package API Reference Guide |
Rogue Wave Views Documentation Home |
#include <ilviews/gadgets/combo.h>
Public Member Functions | |
virtual PopupMenu * | createPopup (IlvComboBox *combo, IlUShort count=0, const char *const *labels=0, IlUShort thick=IlvDefaultGadgetThickness, IlvPalette *palette=0) const =0 |
Creates an populates a popup menu for a combo box. More... | |
Library: ilvgadgt
This class provides a way to replace the creation of a default popup menu in the constructor of IlvComboBox
. To do so, you must define your own subclass of IlvComboBox::PopupMenuFactory
and override the method createPopup()
.
Then you create an instance of this factory and call SetPopupMenuFactory()
. Until the factory is unset, all instances of IlvComboBox()
will use your version of createPopup()
to create the combo box popup menu.
IlvScrolledComboBox
and its subclasses do not use the factory because they use an IlvStringList
instead of a popup menu.IlvComboBox::PopupMenu
|
pure virtual |
Creates an populates a popup menu for a combo box.
When the factory is set by SetPopupMenuFactory()
, the IlvComboBox
constructor calls this method with the same arguments.
IlvComboBox::PopupMenu
or a subclass.combo | The combo box. |
count | The number of labels in the array labels. |
labels | An array of count strings. |
thick | The thickness of the combo box. |
palette | The palette used by the combo box. |
IlvComboBox::PopupMenu
or a subclass. © Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.