Getting the number of lines visible in normal ListIconGadget

Just starting out? Need help? Post your questions and find answers here.
User avatar
marcoagpinto
Addict
Addict
Posts: 1076
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Getting the number of lines visible in normal ListIconGadget

Post 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!
dige
Addict
Addict
Posts: 1417
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: Getting the number of lines visible in normal ListIconGadget

Post by dige »

Code: Select all

SendMessage_(GadgetID(#Gadget_ListIcon),#LVM_GETCOUNTPERPAGE,0,0)
"Daddy, I'll run faster, then it is not so far..."
User avatar
marcoagpinto
Addict
Addict
Posts: 1076
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: Getting the number of lines visible in normal ListIconGadget

Post 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!
Post Reply