I'd like to ask for two new commands for ListIconGadget and such.
On Windows, you may use API-commands, but I don't use Windows anymore.
All functions should be cross platform

GetGadgetColumnCount(GadgetID) ; Count the Columns of a ListIconGadget
CountGadgetSelectedItems(GadgetID) ; Count the selected Lines (!) of a ListIconGadget
We can do both using PB already, but it would be great to have these commands.
Example for GetGadgetColumnCount (yes, could do better, but I needed the names of the columns

Code: Select all
j = 0
Repeat
temp$ = GetGadgetItemText(GadgetID,-1,j)
If temp$ <> ""
j + 1
EndIf
Until temp$ = ""