comp • gb.form • stock • list

Stock.List (gb.form)

Static Property Read List As String[]

Return a string array of all possible stock icon names.

This property is deprecated and replaced by the Icons property since Gambas 3.3.

Example

This procedure will display all the stock icons in an IconView control. Each icon is sized to a 24x24 picture.

Private Sub DisplayIcons()
  Dim iconKey As String
  Dim iconName As String
  IconViewIcons.Clear()
  For Each iconKey In Stock.List
    iconName = "icon:/24/" & iconKey
    IconViewIcons.Add(iconKey, iconKey, Picture[iconName])
  Next
End