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