#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.