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

~IListBoxSizeItemEvent

      public:
      virtual ~IListBoxSizeItemEvent()

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

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.

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

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

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

  -     virtual ~IControlEvent()

  -     virtual unsigned long controlId() const

  -     IControlEvent(const IEvent& event)

  -     IControlEvent(const IControlEvent& event)

  IEvent

  -     virtual ~IEvent()

  -     IWindowHandle controlHandle() const

  -     virtual IWindow* controlWindow() const

  -     IEvent& decrementOwnerLevels()

  -     virtual IWindow* dispatchingWindow() const

  -     unsigned long eventId() const

  -     IWindowHandle handle() const

  -     IEvent(const IEvent& event)

  -     IEvent( IWindow* window,
                unsigned long eventId,
                const IEventParameter1& parameter1,
                const IEventParameter2& parameter2 )

  -     IEvent( const IWindowHandle& handle,
                unsigned long eventId,
                const IEventParameter1& parameter1,
                const IEventParameter2& parameter2 )

  -     IEvent& operator =(const IEvent& event)

  -     IEventParameter1 parameter1() const

  -     IEventParameter2 parameter2() const

  -     bool passToOwner() const

  -     IEventResult result() const

  -     IEvent& setControlHandle(const IWindowHandle& handle)

  -     IEvent& setDispatchingHandle(const IWindowHandle& handle)

  -     IEvent& setDispatchingWindow(IWindow* window)

  -     IEvent& setHandle(const IWindowHandle& handle)

  -     IEvent& setNumberOfLevels(int levels = - 1)

  -     IEvent& setPassToOwner(bool passOn = true)

  -     IEvent& setResult(bool eventResult)

  -     virtual IWindow* window() const

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None