V.3.1
ctlUniListBoxExXP

Unicode Listbox with optionally images and checkbox style
>>Common properties

Some Properties/Methods:
AllowImages Allow images to be displayed (use the OnOwnerDraw event and the ListTag/ListTagObject to save pictures if you want)
BeginUpdate / EndUpdate permits you to start a long-time update on the control (for example by adding 1000 elements) without sending out many and many events. So it is fast!
Columns Specifies a multi-column list box that is scrolled horizontally. The list box automatically calculates the width of the columns and cannot scroll vertically.

The "Columns" property is only supported by the "ctlUniListBox" control (a Windows limitation).
HScroll permits you to assign an horizontal scroll bar to the list
IconDim represents the standard size of the item image
IsInIME You can use this property for knowing if the KeyPress, KeyDown and KeyUp events have been raised by the active IME window associated to your control. By using this property in the KeyPress event you can avoid the IME text. See here.
ListTag / ItemData returns the tag of a specified item (this can be also an object, use the IsObject VB6 internal function to know if it is an object or any other thing)
ManualStart Permits you to start the control manually.
This method is useful when using this control into another usercontrol to prevent bad iterations. See this
page.
ScrollOnMouseWheel should the control scroll vertically when a mousewheel event occurs?
SelCount returns the number of selected items (when using Multi selection)
Sorted / MultiSelect available at runtime ;-)
Style Standard / Check available at run-time
TrapTabKey permits you to trap the tab character
Events:
IMEComposition see here
MouseWheel raised when someone scrolls the mouse wheel
OnOwnerDrawn raised when an element needs to be drawn;
manage this event to set images to list items.
The first pixel (0,0) of the image will be used as transparent color.
How to use the control:
Simply manage the OnOwnerDraw event and set images to items when needed.
Without images (like a normal ListBox)
With images
http://www.hexagora.com
Thu, 20 Oct 2011 07:20:48 UT
Copyright 2003-11 by Lorenzi Davide