IListBoxSizeItemEvent

The IListBoxSizeItemEvent class provides event information for setting the sizes of items in a list box.


IListBoxSizeItemEvent - Member Functions and Data by Group

Constructors & Destructor

You can construct and destruct objects of this class.

Although you can construct objects of this class, typically IListBoxDrawItemHandler::dispatchHandlerEvent constructs objects of this class from an object of the class IEvent.


[view class]
~IListBoxSizeItemEvent
public:
virtual ~IListBoxSizeItemEvent()

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
IListBoxSizeItemEvent
public:
IListBoxSizeItemEvent(IEvent& event)

The only way to construct an object of this class is from an object of the class IEvent.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


Event Information

Use these members to query and set information about the event. This information is used to identify and size a list box item for drawing.


[view class]
itemIndex
public:
unsigned long itemIndex() const

Returns the 0-based index of the item in the list box that needs sizing. This value can be 0 even without any entries in the list box.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
itemSize
public:
ISize itemSize() const

Returns the value set by the function setItemSize for the size required to draw the list box item.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
setItemSize
public:
IListBoxSizeItemEvent& setItemSize(const ISize& itemSize)

Sets the size required to draw a list box item. All items in the list box are sized to the height specified. The list box also draws all items to the same width, taken from the longest one needed by the items being displayed. Note that the width is only processed if the list box has a horizontal scroll bar.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


IListBoxSizeItemEvent - Inherited Member Functions and Data

Inherited Public Functions

IControlEvent
IEvent

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data