Page 1 of 1

Getting the number of lines visible in normal ListIconGadget

Posted: Mon Mar 25, 2024 9:33 am
by marcoagpinto
Heya,

If I have a ListIconGadget with hundreds of entries, is there a way to know how many lines are fitting (displayed) in its current view?
(font size and name may be changed).

Thanks!

Re: Getting the number of lines visible in normal ListIconGadget

Posted: Mon Mar 25, 2024 9:39 am
by dige

Code: Select all

SendMessage_(GadgetID(#Gadget_ListIcon),#LVM_GETCOUNTPERPAGE,0,0)

Re: Getting the number of lines visible in normal ListIconGadget

Posted: Mon Mar 25, 2024 11:03 am
by marcoagpinto
dige wrote: Mon Mar 25, 2024 9:39 am

Code: Select all

SendMessage_(GadgetID(#Gadget_ListIcon),#LVM_GETCOUNTPERPAGE,0,0)
Heya, thanks.

I believe that is for Windows only?

Do you know how to do it on Linux and Mac?

Thanks!