Count number of selected items

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Phoenix
Enthusiast
Enthusiast
Posts: 141
Joined: Sun Sep 04, 2005 2:25 am

Count number of selected items

Post by Phoenix »

Would be nice to have a command that counts or returns the number of selected listviewgadget and listicongadget items, so we don't have to use the API (good for cross platform applications). Currently I have to do it like this, but it's not cross platform........

Code: Select all

totalItemsSelected = SendMessage_(GadgetID(#ListIconGadget), #LVM_GETSELECTEDCOUNT, 0, 0)
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I didn't know about this API command, I'll be using that instead of a routine now. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply