Forum Discussion
sarya
15 years agoFrequent Contributor
Hi Pavel,
Actually I was not able to fully understand the below code where we need to look +- 5 pixels..I looked at the object properties and saw that for one folder,the value for the 'Top' property for the icon is 162 and for the very next icon is 178 which is more tan 5 pixels.
// checking each element, if its Top value equal to "demo" folder's Top value +-5 pixels then its the icon you need
if ((icons.Top>a.Top-5)&&(icons.Top<a.Top+5))
{icon = icons; break}
I now understood how to find the particular icon by looping through Top's value +-5 pixels .
thanks,
Sumedha
Actually I was not able to fully understand the below code where we need to look +- 5 pixels..I looked at the object properties and saw that for one folder,the value for the 'Top' property for the icon is 162 and for the very next icon is 178 which is more tan 5 pixels.
// checking each element, if its Top value equal to "demo" folder's Top value +-5 pixels then its the icon you need
if ((icons.Top>a.Top-5)&&(icons.Top<a.Top+5))
{icon = icons; break}
I now understood how to find the particular icon by looping through Top's value +-5 pixels .
thanks,
Sumedha
Related Content
Recent Discussions
- 13 hours ago
- 19 hours ago