Re: ListView item addressing

new topic     » goto parent     » topic index » view thread      » older message » newer message

Antonio Alessi wrote:
> 
> Using the win32lib I learn that:
> 
> ".. each item in a list view has a unique ID number.. no two listview items
> have the same ID value, regardless of which listview it they are in. The item
> ID is not the same as its index value. The index value is where in a list view
> the item is positioned. The ID is used as a way to identify an item without
> referring to its column values or position. When you add an item using
> addLVItem,
> you get the item's ID returned."
> 
> This seems quite clear, but I cannot find any other reference to this ID
> parameter:
> all the described ListView routines seem to make use or refer to the row
> number
> only. 
> 
> Somebody knows a direct mode to access or update a value into a ListView when
> the rows order has been changed?

I see what you saying,

 idx=addLVItem (  ID, iIcon, text )

 ID is the id if the ListView.

 idx is a unique ID number.

and you want to access inx without going though colums and row stuff,

by going directly to the unique ID number .   



I'm sorry but I don't know how to do that. smile

Other than keeping an index of all colums and rows in relationship to
idx.
Look up the idx and going to that col and row.


Don Cole
 A Bug is an un-documented feature.
A Feature is a documented Bug.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu