Posts: 2
Joined: Mar 2005
Reputation:
0
hi,
i would like to know the difference between seticonimage(...) and setthumbnailimage(...) , what graphically make the difference ?
could someone provide a constructor sample of such a listitem ?
regards,
Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
alright i just looked at the cvs c++ code...
basically in the renderer there is code that says..
if (item.hasthumbnail)
{
item.seticon(item.thumbnail)
}
so its just a priority thing where the thumbnail image will trump the icon one. otherwise its the same.
the constructor is
listitem([string label, string label2, string iconimage, string thumbnailimage])
Posts: 2
Joined: Mar 2005
Reputation:
0
thank you for those details !
it works with my script, results are very interesting! , i think this is a great feature for futur scripts.
Posts: 53
Joined: Sep 2010
Reputation:
0
Are there any more details on the difference between iconImage and thumbnailImage?
If both are set, is only thumbnailImage used? or are they used for different things?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Where do you think this fits best in the documentation, and I'll add the answer there.
The answer is: listitem.iconimage and listitem.thumbnailImage are distinct. If you have a thumbnail you should set it as the thumbnailImage. If you have an icon you should set it as the iconImage. If you have both set both. If you don't have one, don't set it.
What is displayed in the skin is up to the skinner. Usually they request a combination of the two via the ListItem.Icon function which will return the thumbnailimage if it is non-empty, else the iconimage. They can, however, display the icon directly using ListItem.ActualIcon or the thumb directly using ListItem.Thumb.
Cheers,
Jonathan