Accessors for class IlvGadgetItem

Properties

Methods

Description

IlvGadgetItem is the base class for items used in gadgets, such as IlvAbstractMenu, IlvStringList, IlvTreeGadget, and IlvMatrix. An IlvGadgetItem can display a text and a picture. The picture can be an IlvGraphic or a bitmap. If it is a bitmap, you can specify several bitmaps corresponding to different item states, such as selected or highlighted.

TypeNameDescriptionNotes
Voidactivate()Activates the item. The default implementation calls the holder method IlvGadgetItemHolder::itemActivated.
DirectionalignmentSets or returns the alignment of the item's label.
BitmapbitmapSets or returns the bitmap that is associated with the sensitive state.
Voidedit()Edits the item if editing is allowed.
BooleaneditableSpecifies whether the item is editable (true) or not (false).
ObjectgraphicSets or returns the graphic associated with the item.
BooleanhighlightedSpecifies whether the item is highlighted (true) or not (false).
BitmaphighlightedBitmapSets or returns the bitmap that is associated with the highlighted state.
BitmapinsensitiveBitmapSets or returns the bitmap that is associated with the insensitive state.
StringlabelSets or returns the label associated with the gadget item.
DirectionlabelPositionSets or returns the position of the label relative to the picture.
BooleanopaqueSpecifies whether the item is opaque (true) or not (false).
BooleanselectedSpecifies whether the item is selected (true) or not (false).
BitmapselectedBitmapSets or returns the bitmap that is associated with the selected state.
BooleansensitiveSpecifies whether the item is sensitive (true) or not (false).
BooleanshowLabelSpecifies whether the label associated with the item is displayed (true) or hidden (false).
BooleanshowPictureSpecifies whether the picture associated with the item is displayed (true) or hidden (false).
UIntspacingSets or returns the spacing between the label part and the picture part of the item.