Page 1 of 1

ListIcon, detect first and last visible items. Is possible?

Posted: Sat Jan 30, 2010 2:05 pm
by zikitrake
Hi,

I want to make some hard calc with some values, but only with visible items from a ListIcon gadget.
Is possible retrieve this data?..

A 'fake' of results will be this
Image


Thank you in advance

Re: ListIcon, detect first and last visible items. Is possible?

Posted: Sat Jan 30, 2010 4:08 pm
by netmaestro
On Windows you can use the LVM_HITTEST message for a point such as 5,5 and it will return the item found there, which will be your first visible item. For the last one, you can use a point such as 5, GadgetHeight(listicon)-5. For other OS's, dunno.

Re: ListIcon, detect first and last visible items. Is possible?

Posted: Sat Jan 30, 2010 7:52 pm
by srod
There's also the #LVM_GETTOPINDEX and #LVM_GETCOUNTPERPAGE messages.

Re: ListIcon, detect first and last visible items. Is possible?

Posted: Sun Jan 31, 2010 10:32 am
by zikitrake
Netmaestro, Srod, very thank you. But, for now, I would like to make my app for Windows/Linux, so I'm thinking to remake the frontend of my app.

Again, thankyou for answers.