SP6 Listview

gray

Registered User.
Local time
Today, 17:03
Joined
Mar 19, 2007
Messages
578
Hi

Access 2007
WinXpPro Sp3

I've set up an SP6 Listview. I have two imagelist controls associated with it, one for small icons and one for large; thay are associated using

normal = my_imagelist_large
small = my_imagelist_small

I have added the icons for small and large so that they have the same index nos in their respective lists.

Whether my_lv.view = 1 / 2 or 3 I only ever get small icons?

I somehow made the assumption that the call to
Lv.ListItems.add which has 'Small_Icon' & 'Large_Icon' parameters would place icons from the small & normal imagelist controls?

Does anyone know how to connect these up please?

On a general note, what does one reliably search for to find microsoft's programming references? In the good old days we would call these a 'Command reference' where all the parameters, keywords, options (arguments in the u.S.) are listed ... sometimes I see them, sometimes I don't...

Thanks
 
Figured this out... so if you too are trying this...

1) Do as above, 2 image lists (1 x small icons, 1 x large icons)
2) Associate listview image lists as: normal=your_large_imagelist_name, small=your_small_imagelist_name
3) Add your list items as:
your_lv_name.ListItems.add(, yourKey, your_text, Your_Large_Icon_Name, Your_Small_Icon_Name) - where Your_Small_Icon_Name & Your_Large_Icon_Name are strings

The large icons are only shown in your_lv.view = 0 .... the other views, 1/2/3, use the small icons.
 

Users who are viewing this thread

Back
Top Bottom